Click here to Skip to main content
15,909,091 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiontodolist in vb.net Pin
mohsen3325-Sep-09 2:37
mohsen3325-Sep-09 2:37 
AnswerRe: todolist in vb.net Pin
Steven J Jowett25-Sep-09 3:03
Steven J Jowett25-Sep-09 3:03 
Questiongame competition Pin
maybel 25-Sep-09 2:22
maybel 25-Sep-09 2:22 
AnswerRe: game competition Pin
Dave Kreskowiak25-Sep-09 3:48
mveDave Kreskowiak25-Sep-09 3:48 
GeneralRe: game competition Pin
Christian Graus25-Sep-09 11:28
protectorChristian Graus25-Sep-09 11:28 
GeneralRe: game competition Pin
Dave Kreskowiak25-Sep-09 11:45
mveDave Kreskowiak25-Sep-09 11:45 
AnswerRe: game competition Pin
Christian Graus25-Sep-09 11:01
protectorChristian Graus25-Sep-09 11:01 
QuestionParameter is not valid. Pin
Anubhava Dimri24-Sep-09 21:00
Anubhava Dimri24-Sep-09 21:00 
Hello to All,

I have two buttons button1 and button2.

in button1_Click
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
On Error GoTo err
Groupbox3.visible = False
GroupBox1.Visible = True
cmb_barcodefont.Focus()
Exit Sub
err:
MsgBox(Err.Description, MsgBoxStyle.Information, Err.Number)
End Sub


and

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Groupbox1.visible = False
GroupBox3.Visible = True
Dim intimage As Integer
Dim barlist As LinearBarCode.Barcode = Barcode1
ReDim imageArray(ListbarcodeValue.Items.Count)
If ListbarcodeValue.Items.Count > 0 Then
For intimage = 0 To ListbarcodeValue.Items.Count - 1
barlist.DataToEncode = ListbarcodeValue.Items.Item(intimage)
Dim img As System.Drawing.Image = barlist.IndependentEMF
imageArray(intimage) = img
Next
Else
Image = barlist.IndependentEMF
End If
barlist = Nothing
Updowncolumn.Focus()
End Sub


at this time the error is occor


System.ArgumentException was unhandled
  Message="Parameter is not valid."
  Source="System.Drawing"
  StackTrace:
       at System.Drawing.Image.get_FrameDimensionsList()
       at System.Drawing.ImageAnimator.CanAnimate(Image image)
       at System.Drawing.ImageAnimator.ImageInfo..ctor(Image image)
       at System.Drawing.ImageAnimator.Animate(Image image, EventHandler onFrameChangedHandler)
       at System.Windows.Forms.PictureBox.Animate(Boolean animate)
       at System.Windows.Forms.PictureBox.Animate()
       at System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
       at System.Windows.Forms.Control.WmPaint(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.SafeNativeMethods.MessageBox(HandleRef hWnd, String text, String caption, Int32 type)
       at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)
       at System.Windows.Forms.MessageBox.Show(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options)
       at Microsoft.VisualBasic.Interaction.MsgBox(Object Prompt, MsgBoxStyle Buttons, Object Title)
       at Barcode_Software.Form1.Button1_Click(Object sender, EventArgs e) in E:\Barcode_Software\Barcode Software\Form1.vb:line 173
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(ApplicationContext context)
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       at Barcode_Software.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81


If you can think then I Can.

AnswerRe: Parameter is not valid. Pin
Christian Graus24-Sep-09 21:54
protectorChristian Graus24-Sep-09 21:54 
GeneralRe: Parameter is not valid. Pin
Anubhava Dimri24-Sep-09 22:15
Anubhava Dimri24-Sep-09 22:15 
GeneralRe: Parameter is not valid. Pin
Christian Graus24-Sep-09 22:46
protectorChristian Graus24-Sep-09 22:46 
AnswerRe: Parameter is not valid. Pin
Dave Kreskowiak25-Sep-09 3:48
mveDave Kreskowiak25-Sep-09 3:48 
GeneralRe: Parameter is not valid. Pin
Anubhava Dimri25-Sep-09 18:07
Anubhava Dimri25-Sep-09 18:07 
GeneralRe: Parameter is not valid. Pin
Dave Kreskowiak25-Sep-09 18:38
mveDave Kreskowiak25-Sep-09 18:38 
GeneralRe: Parameter is not valid. Pin
Anubhava Dimri25-Sep-09 23:26
Anubhava Dimri25-Sep-09 23:26 
GeneralRe: Parameter is not valid. Pin
Dave Kreskowiak26-Sep-09 7:10
mveDave Kreskowiak26-Sep-09 7:10 
GeneralRe: Parameter is not valid. Pin
Anubhava Dimri27-Sep-09 18:01
Anubhava Dimri27-Sep-09 18:01 
GeneralRe: Parameter is not valid. Pin
Dave Kreskowiak28-Sep-09 0:55
mveDave Kreskowiak28-Sep-09 0:55 
QuestionControversial Topic of Winsck and TCP/IP Connecting Pin
teknozwizard24-Sep-09 20:17
teknozwizard24-Sep-09 20:17 
AnswerRe: Controversial Topic of Winsck and TCP/IP Connecting Pin
Johan Hakkesteegt24-Sep-09 22:53
Johan Hakkesteegt24-Sep-09 22:53 
AnswerRe: Controversial Topic of Winsck and TCP/IP Connecting Pin
Ian Shlasko25-Sep-09 3:36
Ian Shlasko25-Sep-09 3:36 
AnswerRe: Controversial Topic of Winsck and TCP/IP Connecting Pin
Dave Kreskowiak25-Sep-09 3:39
mveDave Kreskowiak25-Sep-09 3:39 
QuestionRe: Controversial Topic of Winsck and TCP/IP Connecting Pin
teknozwizard25-Sep-09 5:12
teknozwizard25-Sep-09 5:12 
AnswerRe: Controversial Topic of Winsck and TCP/IP Connecting Pin
Ian Shlasko25-Sep-09 5:57
Ian Shlasko25-Sep-09 5:57 
GeneralRe: Controversial Topic of Winsck and TCP/IP Connecting Pin
teknozwizard25-Sep-09 9:23
teknozwizard25-Sep-09 9:23 

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.