473,612 Members | 2,181 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB2005 pro Graphics

Going from VB6 (RAD) to VB2005 (SAD)

The documentation always shows graphics drawing in a paint event like

Private Sub Pictcolor_Paint (ByVal sender As Object, ByVal e _
As System.Windows. Forms.PaintEven tArgs) Handles PictColor.Paint

End Sub

But my VB6 program draws to the picturebox PictColor from many different
subs.
Can I draw to PictColor directly from subs as follows:
Here I am drawing pixels

Dim h As Graphics, g As Graphics, p As New Pen(Color.Black )
'Draws the color squares
g = Me.PictColor.Cr eateGraphics
h = Me.picBW.Create Graphics
For intNumber0 = 0 To 255
For intNumber1 = 0 To 255
p.Color = Color.FromArgb( intNumber0, 255 - intNumber1, 255 -
intNumber0)
g.DrawEllipse(p , intNumber1, intNumber0, 1, 1)
p.Color = Color.FromArgb( intNumber0, intNumber0, intNumber0)
h.DrawEllipse(p , intNumber1, intNumber0, 1, 1)
Next
Next

Here I am drawing lines

Dim Incr, Index As Short, g As Graphics, p As New Pen(Color.Black ), c As
Color
g = Me.PictColor.Cr eateGraphics
c = Color.FromArgb( mlColors(0))
p.Color = c
Incr = 200 / 5
For Index = 0 To 5 Step 1
g.DrawLine(p, X1, Y1, X2, Y2)
X1 = X1 + Incr
If Index = 4 Then X1 = X1 - 1
X2 = X1
Next Index

Or do I have to make a cajillion different Paint events for PictColor ??

If I can do it outside of Paint events, can I declare the CreateGraphics
once after Form load ??
GalenS
Jan 30 '06 #1
10 1930
Galen Somerville wrote:
Going from VB6 (RAD) to VB2005 (SAD)

The documentation always shows graphics drawing in a paint event like

Private Sub Pictcolor_Paint (ByVal sender As Object, ByVal e _
As System.Windows. Forms.PaintEven tArgs) Handles PictColor.Paint

End Sub

But my VB6 program draws to the picturebox PictColor from many different
subs.
Can I draw to PictColor directly from subs as follows:
Here I am drawing pixels

Dim h As Graphics, g As Graphics, p As New Pen(Color.Black )
'Draws the color squares
g = Me.PictColor.Cr eateGraphics
h = Me.picBW.Create Graphics
For intNumber0 = 0 To 255
For intNumber1 = 0 To 255
p.Color = Color.FromArgb( intNumber0, 255 - intNumber1, 255 -
intNumber0)
g.DrawEllipse(p , intNumber1, intNumber0, 1, 1)
p.Color = Color.FromArgb( intNumber0, intNumber0, intNumber0)
h.DrawEllipse(p , intNumber1, intNumber0, 1, 1)
Next
Next

Here I am drawing lines

Dim Incr, Index As Short, g As Graphics, p As New Pen(Color.Black ), c As
Color
g = Me.PictColor.Cr eateGraphics
c = Color.FromArgb( mlColors(0))
p.Color = c
Incr = 200 / 5
For Index = 0 To 5 Step 1
g.DrawLine(p, X1, Y1, X2, Y2)
X1 = X1 + Incr
If Index = 4 Then X1 = X1 - 1
X2 = X1
Next Index

Or do I have to make a cajillion different Paint events for PictColor ??

If I can do it outside of Paint events, can I declare the CreateGraphics
once after Form load ??
GalenS


The reason to do it in the paint method is that event gets called each
time the object needs to refresh. So if a window goes across your form
and it now needs to be repainted. How will you know when to repaint if
you don't capture the PictureBox.Pain t event?

You can call a sub from inside the paint event and pass in the graphics
object.

Hope this helps
Chris
Jan 30 '06 #2

"Chris" <no@spam.com> wrote in message
news:Og******** ******@TK2MSFTN GP09.phx.gbl...
Galen Somerville wrote:
Going from VB6 (RAD) to VB2005 (SAD)

The documentation always shows graphics drawing in a paint event like

Private Sub Pictcolor_Paint (ByVal sender As Object, ByVal e _
As System.Windows. Forms.PaintEven tArgs) Handles PictColor.Paint

End Sub

But my VB6 program draws to the picturebox PictColor from many different
subs.
Can I draw to PictColor directly from subs as follows:
Here I am drawing pixels

Dim h As Graphics, g As Graphics, p As New Pen(Color.Black )
'Draws the color squares
g = Me.PictColor.Cr eateGraphics
h = Me.picBW.Create Graphics
For intNumber0 = 0 To 255
For intNumber1 = 0 To 255
p.Color = Color.FromArgb( intNumber0, 255 - intNumber1, 255 -
intNumber0)
g.DrawEllipse(p , intNumber1, intNumber0, 1, 1)
p.Color = Color.FromArgb( intNumber0, intNumber0, intNumber0)
h.DrawEllipse(p , intNumber1, intNumber0, 1, 1)
Next
Next

Here I am drawing lines

Dim Incr, Index As Short, g As Graphics, p As New Pen(Color.Black ), c As
Color
g = Me.PictColor.Cr eateGraphics
c = Color.FromArgb( mlColors(0))
p.Color = c
Incr = 200 / 5
For Index = 0 To 5 Step 1
g.DrawLine(p, X1, Y1, X2, Y2)
X1 = X1 + Incr
If Index = 4 Then X1 = X1 - 1
X2 = X1
Next Index

Or do I have to make a cajillion different Paint events for PictColor ??

If I can do it outside of Paint events, can I declare the CreateGraphics
once after Form load ??
GalenS


The reason to do it in the paint method is that event gets called each
time the object needs to refresh. So if a window goes across your form
and it now needs to be repainted. How will you know when to repaint if
you don't capture the PictureBox.Pain t event?

You can call a sub from inside the paint event and pass in the graphics
object.

Hope this helps
Chris


ouch. The current program displays Heart sounds in real time. That is it
sweeps across the screen like an oscilloscope with the new data replacing
the old data (with a 5 to 10 pixel gap)

They can freeze the screen to look at the current display. No other program
is allowed to usurp the screen.

Say they want to place a Marker (small vertical line) with the Latency in
milliseconds. The Mouse down, Mouse up and Mouse move displays the Marker
and latency and moves it across the waveform until they are happy with
placement.

Now they can add other Markers (up to six).

This was easy in VB6 but I just can't get it into my mind as to
accomplishing this in VB2005.

GalenS (if I were the other Galen, I would know)


Jan 30 '06 #3
"Galen Somerville" <ga***@SPAM.sur ewest.net> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..


This was easy in VB6 but I just can't get it into my mind as to
accomplishing this in VB2005.
I haven't even attempted drawing anything in .Net but..... can't you create
a sub that does the drawing and call that from "anywhere" plus the paint
event? Sounds like "the VB6 way" I know <g>
GalenS (if I were the other Galen, I would know)


Maybe you *are* the other Galen and no one told you? <g>

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Jan 30 '06 #4

"Ken Halter" <Ken_Halter@Use _Sparingly_Hotm ail.com> wrote in message
news:e2******** ********@TK2MSF TNGP12.phx.gbl. ..
"Galen Somerville" <ga***@SPAM.sur ewest.net> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..


This was easy in VB6 but I just can't get it into my mind as to
accomplishing this in VB2005.


I haven't even attempted drawing anything in .Net but..... can't you
create a sub that does the drawing and call that from "anywhere" plus the
paint event? Sounds like "the VB6 way" I know <g>
GalenS (if I were the other Galen, I would know)


Maybe you *are* the other Galen and no one told you? <g>

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..

Last things first. In nosing around the net groups I saw a Galen and I think
he (she ?) was an MVP

In "the VB6 way" all of my drawing is in subs. Each sub ends by storing the
points and colors of what it just did.

Then, in those cases where I pop a listbox on top of the drawing, I take the
stored info and repaint (actually redraw) what I messed up.

That's why my question included, "can I do this drawing outside of the
picturebox paint event" and gave examples of what I proposed to do. No
answer yet.

I can't run the VB2005 version until I clear 102 errors and a whole slew of
warnings.

Galen S


Jan 31 '06 #5
CMM
First, I have oodles of experience drawing in VB.Classic and quite a bit in
..NET....NET drawing is great... though the x2/y2 pixel offsetting is
confusing sometimes (to me).

Let me guess.... you have AutoRedraw on your VB.Classic picture box set? If
not, what's the problem?
I don't really see it.... What's the problem with doing your drawing inside
the paint event?
Sub ... Paint(...)
DrawLines(g)
DrawSomethingEl se(g)
End Sub

If you wanted to update the canvas (based on some changes in your numbers or
whatever that you'd maintain on the module class level) you'd simply call
..Refresh on the form or control in question.

Drawing in .NET is extremely extraordinarily fast (at least compared to
VB.Classic). Even if your Paint event is called a 30 times in a second you
would never really notice. If flashing becomes a problem turn on
DoubleBuffering .

Am I misunderstandin g your intent somehow? If so, explain further and I'll
try to help.

"Galen Somerville" <ga***@SPAM.sur ewest.net> wrote in message
news:Og******** ******@TK2MSFTN GP10.phx.gbl...

"Ken Halter" <Ken_Halter@Use _Sparingly_Hotm ail.com> wrote in message
news:e2******** ********@TK2MSF TNGP12.phx.gbl. ..
"Galen Somerville" <ga***@SPAM.sur ewest.net> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..


This was easy in VB6 but I just can't get it into my mind as to
accomplishing this in VB2005.


I haven't even attempted drawing anything in .Net but..... can't you
create a sub that does the drawing and call that from "anywhere" plus the
paint event? Sounds like "the VB6 way" I know <g>
GalenS (if I were the other Galen, I would know)


Maybe you *are* the other Galen and no one told you? <g>

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..

Last things first. In nosing around the net groups I saw a Galen and I
think he (she ?) was an MVP

In "the VB6 way" all of my drawing is in subs. Each sub ends by storing
the points and colors of what it just did.

Then, in those cases where I pop a listbox on top of the drawing, I take
the stored info and repaint (actually redraw) what I messed up.

That's why my question included, "can I do this drawing outside of the
picturebox paint event" and gave examples of what I proposed to do. No
answer yet.

I can't run the VB2005 version until I clear 102 errors and a whole slew
of warnings.

Galen S

Jan 31 '06 #6
I've also been reluctant to jump into vb.net graphics, precisely because its
behavior is substantially different from vb classic.

However, getting a similar behavior to the vb classic autoredraw shouldn't
be
all that hard. What you need to do is to do explicitly in vb.net what vb
classic
was doing for you behind the scenes. With autoredraw turned on, drawing
operations
in vb classic were actually being written to an off-screen picture. The
on-screen image
would automatically be repaired as needed from the off-screen picture.

So what you need to do, I think, is to create a global bitmap and do all
your drawing operations
to it. That way you can do your drawing from your subroutines just like you
are used to.
In the paint event, the only thing you have to do is copy the bitmap onto
the screen.
The "refresh" that you did in vb classic is replaced with something that
forces a paint event
(invalidate?)



"CMM" <cm*@nospam.com > wrote in message
news:e4******** ******@TK2MSFTN GP12.phx.gbl...
First, I have oodles of experience drawing in VB.Classic and quite a bit
in .NET....NET drawing is great... though the x2/y2 pixel offsetting is
confusing sometimes (to me).

Let me guess.... you have AutoRedraw on your VB.Classic picture box set?
If not, what's the problem?
I don't really see it.... What's the problem with doing your drawing
inside the paint event?
Sub ... Paint(...)
DrawLines(g)
DrawSomethingEl se(g)
End Sub

If you wanted to update the canvas (based on some changes in your numbers
or whatever that you'd maintain on the module class level) you'd simply
call .Refresh on the form or control in question.

Drawing in .NET is extremely extraordinarily fast (at least compared to
VB.Classic). Even if your Paint event is called a 30 times in a second you
would never really notice. If flashing becomes a problem turn on
DoubleBuffering .

Am I misunderstandin g your intent somehow? If so, explain further and I'll
try to help.

"Galen Somerville" <ga***@SPAM.sur ewest.net> wrote in message
news:Og******** ******@TK2MSFTN GP10.phx.gbl...

"Ken Halter" <Ken_Halter@Use _Sparingly_Hotm ail.com> wrote in message
news:e2******** ********@TK2MSF TNGP12.phx.gbl. ..
"Galen Somerville" <ga***@SPAM.sur ewest.net> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
This was easy in VB6 but I just can't get it into my mind as to
accomplishing this in VB2005.

I haven't even attempted drawing anything in .Net but..... can't you
create a sub that does the drawing and call that from "anywhere" plus
the paint event? Sounds like "the VB6 way" I know <g>

GalenS (if I were the other Galen, I would know)

Maybe you *are* the other Galen and no one told you? <g>

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) -
http://www.vbsight.com
Please keep all discussions in the groups..

Last things first. In nosing around the net groups I saw a Galen and I
think he (she ?) was an MVP

In "the VB6 way" all of my drawing is in subs. Each sub ends by storing
the points and colors of what it just did.

Then, in those cases where I pop a listbox on top of the drawing, I take
the stored info and repaint (actually redraw) what I messed up.

That's why my question included, "can I do this drawing outside of the
picturebox paint event" and gave examples of what I proposed to do. No
answer yet.

I can't run the VB2005 version until I clear 102 errors and a whole slew
of warnings.

Galen S


Jan 31 '06 #7
The reply by James Parsly sounds like what I need.

I draw to the picture box different things at different times and I coudn't
see how I could accomplish that if I put it all in a Paint event. I would
have case or if statements galore trying to separate it all out.

For instance the sweep is drawing a line from the last pixel position to the
next pixel position with X being incremented by 1. Whereas the vertical
lines (and text) are xored so the mouse movement draws it a second time to
erase it then draws the vertical line at the next position. Etc.

Comments?

GalenS
"CMM" <cm*@nospam.com > wrote in message
news:e4******** ******@TK2MSFTN GP12.phx.gbl...
First, I have oodles of experience drawing in VB.Classic and quite a bit
in .NET....NET drawing is great... though the x2/y2 pixel offsetting is
confusing sometimes (to me).

Let me guess.... you have AutoRedraw on your VB.Classic picture box set?
If not, what's the problem?
I don't really see it.... What's the problem with doing your drawing
inside the paint event?
Sub ... Paint(...)
DrawLines(g)
DrawSomethingEl se(g)
End Sub

If you wanted to update the canvas (based on some changes in your numbers
or whatever that you'd maintain on the module class level) you'd simply
call .Refresh on the form or control in question.

Drawing in .NET is extremely extraordinarily fast (at least compared to
VB.Classic). Even if your Paint event is called a 30 times in a second you
would never really notice. If flashing becomes a problem turn on
DoubleBuffering .

Am I misunderstandin g your intent somehow? If so, explain further and I'll
try to help.

"Galen Somerville" <ga***@SPAM.sur ewest.net> wrote in message
news:Og******** ******@TK2MSFTN GP10.phx.gbl...

"Ken Halter" <Ken_Halter@Use _Sparingly_Hotm ail.com> wrote in message
news:e2******** ********@TK2MSF TNGP12.phx.gbl. ..
"Galen Somerville" <ga***@SPAM.sur ewest.net> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
This was easy in VB6 but I just can't get it into my mind as to
accomplishing this in VB2005.

I haven't even attempted drawing anything in .Net but..... can't you
create a sub that does the drawing and call that from "anywhere" plus
the paint event? Sounds like "the VB6 way" I know <g>

GalenS (if I were the other Galen, I would know)

Maybe you *are* the other Galen and no one told you? <g>

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) -
http://www.vbsight.com
Please keep all discussions in the groups..

Last things first. In nosing around the net groups I saw a Galen and I
think he (she ?) was an MVP

In "the VB6 way" all of my drawing is in subs. Each sub ends by storing
the points and colors of what it just did.

Then, in those cases where I pop a listbox on top of the drawing, I take
the stored info and repaint (actually redraw) what I messed up.

That's why my question included, "can I do this drawing outside of the
picturebox paint event" and gave examples of what I proposed to do. No
answer yet.

I can't run the VB2005 version until I clear 102 errors and a whole slew
of warnings.

Galen S


Jan 31 '06 #8

James Parsly wrote:
I've also been reluctant to jump into vb.net graphics, precisely because its
behavior is substantially different from vb classic.

However, getting a similar behavior to the vb classic autoredraw shouldn't
be
all that hard. What you need to do is to do explicitly in vb.net what vb
classic
was doing for you behind the scenes. With autoredraw turned on, drawing
operations
in vb classic were actually being written to an off-screen picture. The
on-screen image
would automatically be repaired as needed from the off-screen picture.

So what you need to do, I think, is to create a global bitmap and do all
your drawing operations
to it. That way you can do your drawing from your subroutines just like you
are used to.
In the paint event, the only thing you have to do is copy the bitmap onto
the screen.
This is exactly what I was going to suggest, after reading the original
post.
The "refresh" that you did in vb classic is replaced with something that
forces a paint event
(invalidate?)


Yes, and we can even be clever and only invalidate that part of the
picture that has just changed - check the various overloads of
Control.Invalid ate.

--
Larry Lard
Replies to group please

Jan 31 '06 #9

"Larry Lard" <la*******@hotm ail.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .

James Parsly wrote:
I've also been reluctant to jump into vb.net graphics, precisely because
its
behavior is substantially different from vb classic.

However, getting a similar behavior to the vb classic autoredraw
shouldn't
be
all that hard. What you need to do is to do explicitly in vb.net what vb
classic
was doing for you behind the scenes. With autoredraw turned on, drawing
operations
in vb classic were actually being written to an off-screen picture. The
on-screen image
would automatically be repaired as needed from the off-screen picture.

So what you need to do, I think, is to create a global bitmap and do all
your drawing operations
to it. That way you can do your drawing from your subroutines just like
you
are used to.
In the paint event, the only thing you have to do is copy the bitmap onto
the screen.


This is exactly what I was going to suggest, after reading the original
post.
The "refresh" that you did in vb classic is replaced with something that
forces a paint event
(invalidate?)


Yes, and we can even be clever and only invalidate that part of the
picture that has just changed - check the various overloads of
Control.Invalid ate.

--
Larry Lard
Replies to group please

Thanks, will look into that. Things are looking up and I'm almost ready to
fly.

GalenS
Jan 31 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5148
by: thomasp | last post by:
I found the following code on MSDN to draw a line in VB2005. Public Sub DrawLinePoint(ByVal e As PaintEventArgs) ' Create pen. Dim blackPen As New Pen(Color.Black, 3) ' Create points that define line. Dim point1 As New Point(100, 100) Dim point2 As New Point(500, 100)
0
961
by: pete | last post by:
When saving a gif file in VB 2005 with a custom brush color the background if the image is dithered. When I save the image as any other type but gif the background is not dithered. What can I do to fix this? Below is my code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim outstr As String = "REDUCED - Ralph Lauren 2T pants new" Dim myfontstyle As FontStyle = FontStyle.Bold...
4
1294
by: Galen Somerville | last post by:
I have a real timing problem. This involves getting data from a USB device via an ActiveX dll and drawing trace lines on the screen via a UserControl. The USB device sends six sets of pixel info so twelve lines have to be drawn on the screen. The first line drawn blacks out a previously drawn line. The second line drawn is from the current data. After this is repeated six times, the program queries the USB device for the next six sets of...
1
1563
by: Hector M Banda | last post by:
Hi all, Need i simple example on how print/preview data from a database. I already have some code but I am lost because the preview does not create multiple pages and only shows the first page and the printing goes over the margins of the page. My problem is that I cannot figure out how to control new page when page is getting full. Another problem is that I would like to have a common place to set headers and footers to be printed every...
7
1621
by: TAVOSOFT | last post by:
Hi friends, I am begginer , I wanna to learn VB2005 ,Which are good book for to learn VB2005 of level -begginer-intermediate. Thanks you friends.
4
1647
by: Galen Somerville | last post by:
My VB2005 app gets real time Heart sounds and an ECG from a USB device. I'm looking for a way to speed up the drawing of the traces on the screen. In the following code the routine GetSounds recieves the USB data for six consequtive horizontal pixels (or 6 sound/ECG samples). The routine FixChns handles the scaling of the data and puts it into the PlotAry for presentation. The variable RptCnt then handles the placement for the 6 sets...
1
1658
by: erickwan88 | last post by:
I am doing a final year project for my school and is going to provide for an organization, so I am asking for some help on here. Indeed, I have no idea on how to get the input from my pen driver and use on vb2005 as when I activate the pen driver, it will run its own program itself and when I deactivate it, it become a mouse. Therefore, I need to find out how to use the pen to write words on the vb2005 program instead of being either a...
7
2863
by: Galen Somerville | last post by:
I have been converting a VB6 project to VB2005 for lo these many months. Most of my problems have been solved thanks to people like WanYuan Wang and Mattias Sjogren. But now the Graphics aspect is the problem. This program gets Heart sounds and ECG trace data from a USB device via an ActiveX thread and an internal DataReciever thread in the main program. The display is like an oscilloscope in that it sweeps across the screen in real...
15
2019
by: Aalaan | last post by:
I am presently a user of classic vb6 and hang out on those newsgroups. Some of you may be aware that there is a very anti MS and vb2005 feeling there. I have tried to get them to tell me which features of vb2005 are actually worse then vb6 in practice, and forget the philosophy of backward compatibility for a moment. I would now like to hear "the other side". Could *anyone who previously used vb6* (only those pleased; I feel the others...
0
8171
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8422
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7044
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6081
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4047
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4110
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2554
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.