Click here to Skip to main content
16,006,341 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: datagrid Pin
rudy.net17-May-05 18:29
rudy.net17-May-05 18:29 
GeneralRe: datagrid Pin
Josue Avila19-May-05 9:37
Josue Avila19-May-05 9:37 
QuestionPrinting - OWC Pivot Tables Using VB6 ? Pin
J.Jay17-May-05 6:42
J.Jay17-May-05 6:42 
GeneralHelp In switching between forms Pin
GegoTheWizard17-May-05 4:53
GegoTheWizard17-May-05 4:53 
GeneralRe: Help In switching between forms Pin
rudy.net17-May-05 18:48
rudy.net17-May-05 18:48 
Generalmoney masked textBox Pin
hakanaktan17-May-05 3:31
hakanaktan17-May-05 3:31 
GeneralRe: money masked textBox Pin
Christian Graus17-May-05 13:39
protectorChristian Graus17-May-05 13:39 
GeneralException comes in setpixel in VB .Net Pin
meghadwivedi17-May-05 1:44
meghadwivedi17-May-05 1:44 
I am using following code for erasing functionality of freehand drawing.
while excuting this exception comes in system.drawing.dll. Although below code will be working fine but when mouse is moving fast then generate exception.Drawing of lines have been done on paint event.



Private Sub picboard_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles picboard.MouseMove
If SetEraser = True Then
If e.Button = MouseButtons.Left Then ' draw a filled circle if left mouse is down


Dim clr As Integer
Dim xmax As Integer
Dim ymax As Integer
Dim x As Integer
Dim y As Integer

'' Get the bitmap and its dimensions.
Dim bm As Bitmap = picboard.Image

xmax = bm.Width - 1
ymax = bm.Height - 1

bm.MakeTransparent()
For x = e.X To e.X + 10
For y = e.Y To e.Y + 10
' Convert this pixel.
If bm.IsAlphaPixelFormat(PixelFormat.Alpha) = True Then
With bm.GetPixel(x - 3, y - 3).Transparent
bm.SetPixel(x - 2, y - 2, color.FromKnownColor(KnownColor.Transparent))
End With
' Display the results.
picboard.Image = bm


For i As Integer = 0 To 13
path(i) = New GraphicsPath
path(i).Reset()
Next i


Next y
Next x
End If



Else
If e.Button = MouseButtons.Left Then ' draw a filled circle if left mouse is down

Try

mousePath.AddLine(e.X, e.Y, e.X, e.Y) 'Add mouse coordiantes to mousePath
Catch
MsgBox("No way, Hose!")
End Try

End If

picboard.Invalidate() 'Repaint the PictureBox using the PictureBox1 Paint event
End If

End Sub
GeneralMonitor 3rd party app (hooking/subclassing) Pin
Derckie217-May-05 0:53
Derckie217-May-05 0:53 
GeneralRe: Monitor 3rd party app (hooking/subclassing) Pin
rudy.net17-May-05 19:42
rudy.net17-May-05 19:42 
GeneralRe: Monitor 3rd party app (hooking/subclassing) Pin
Derckie217-May-05 21:01
Derckie217-May-05 21:01 
GeneralRe: Monitor 3rd party app (hooking/subclassing) Pin
Tim McCurdy17-May-05 23:27
Tim McCurdy17-May-05 23:27 
GeneralRe: Monitor 3rd party app (hooking/subclassing) Pin
Derckie217-May-05 23:43
Derckie217-May-05 23:43 
GeneralData Grid Control Pin
meetaqadir17-May-05 0:34
meetaqadir17-May-05 0:34 
Generalsimple datagrid code Pin
hakanaktan17-May-05 3:45
hakanaktan17-May-05 3:45 
Generalremote configuration file ??? and why to use vbc compilation Pin
Rizwan Bashir17-May-05 0:02
Rizwan Bashir17-May-05 0:02 
GeneralCrystal Report Landscape Mode Pin
dpagka16-May-05 23:11
dpagka16-May-05 23:11 
GeneralRe: Crystal Report Landscape Mode Pin
Tim McCurdy17-May-05 23:31
Tim McCurdy17-May-05 23:31 
Generalsearch by ID in an arraylist of object Pin
fuel2run16-May-05 21:52
fuel2run16-May-05 21:52 
GeneralRe: search by ID in an arraylist of object Pin
Colin Angus Mackay16-May-05 22:19
Colin Angus Mackay16-May-05 22:19 
GeneralRe: search by ID in an arraylist of object Pin
fuel2run16-May-05 23:05
fuel2run16-May-05 23:05 
Generalcreate a new table Pin
Anonymous16-May-05 20:38
Anonymous16-May-05 20:38 
GeneralRe: create a new table Pin
Colin Angus Mackay16-May-05 22:20
Colin Angus Mackay16-May-05 22:20 
Generaltextbox help Pin
beginnervb.net16-May-05 20:36
beginnervb.net16-May-05 20:36 
GeneralRe: textbox help Pin
Christian Graus17-May-05 12:49
protectorChristian Graus17-May-05 12:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.