Private Sub ClickButotn(ByVal sender as Object, Byval e as EventArgs)
Dim b as New Button = DirectCast(sender,Button)
messagebox.show(b.text)
End Sub
Hope this helps.
Private Sub ClickButotn(ByVal sender as Object, Byval e as EventArgs)
Dim b as New Button = DirectCast(sender,Button)
messagebox.show(b.text)
End Sub
Hope this helps.
I'm not sure how you are including the image in your project but I would use 'Add Existing Item' to add the image to your project and ensure 'Copy Always' or 'Copy If Newer' is in the properties of the file. Also consider using:
ImageList1.Images.Add(new Bitmap("\Program Files\(Your Project Name)\Agip.bmp))
This way you can eliminate other factors such as a problem with the Storage Card... You may need to dispose of the Bitmaps when the form is disposed rather than immediately... Hope this helps.
Right Click your project in Solution Explorer, Add / Component / SQL Database You can then use the database as a file in your project. Kind Regards.
You could try this Dim b as bitmap = new bitmap("image-path") imagelist1.images.add(b) b.Dispose() If you dim a bitmap you must dispose of it when you have finished. Hope this helps.
I am using:
Data Source=190.190.200.100,1433;Initial Catalog=myDatabase;User ID=myUsername;Password=myPassword;
Kind Regards.