Here's my Pen code what i use to write with.
Private Sub PicCharSKin_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles PicCharSKin.MouseMove
If MouseButtons = Windows.Forms.MouseButtons.Left Then 'Check's to see if left mouse is pressed...
Hi their :),
I'm writing a small program that saves the Current background image to file once i have drawn on it too, here's what it does :
once i draw on previous image loaded in picturebox, the program then resizes it and save it at my chosen format, Code Bellow.
Dim bm As New...
I'm Not sure if you can actully delete a button but you can make it go invisible like so
bntNamedButton.Visible = False ' Or True to which desired effect your after
Hope that helps :)
did a bit of sniffing and found this
Control c = this.Controls.Find(yourButtonControl.Name, true)...
Hi look at this you'll need to make a blank form
Components used and Names used
1 x Button = "btnRun"
1 x ListBox = "lstItems"
1 x TextBox = "txtResult"
1 x WebBrowser = "webResult"
Option Explicit On
Option Strict On
Public Class ListItems
Private Sub ListItems_Load(sender As...
ok formum hadn't updated as i was still in post message to here, and had to nip to out for a sec, Right yes this code is good you'll for adding items to a listbox on as Windows Form Application, but then you'll need to get the items back as String() array, which would be easier so you can use...
Bellow VB.NET Code
Private Sub SendButton_Click(sender As Object, e As System.EventArgs) Handles SendButton.Click
Dim smtpServer As New SmtpClient
Dim mail As New MailMessage
smtpServer.Credentials = New Net.NetworkCredential(My.Settings.EmailUser, My.Settings.EmailPW)...
Just to add to the top post here's a ListBox so you can see all items at once.
<select name="select" size="3">
<option value="Song1 Value Here">Song 1</option>
<option value="Song2 Value Here" selected>Song 2</option>
<option value="Song3 Value Here">Song 3</option>
Hi their, In HTML this would be the way to do a Dropdown list box if thats what you mean, if not let me know :)
<option value="Song1 Value Here">Song 1</option>
<option value="Song2 Value Here">Song 2</option>
<option value="Song3 Value Here">Song...
Hi i haven't dissapeared, I've been looking at your code, and yes it works fine untill the "ImgBox" so i tried the msgbox(ImgBox) cut it short Change this line
FROM: Note the ImgBoxUpdate. "Image" to "InitialImage" works ok here Pictured dont dissapere, see if i'm right :)
This is using ImageList just to give you and idea.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' Create a integer and new Random object
Dim intPic As Integer
Dim rand As New Random
' Pick a random number between 0...
i don't mean load the image in to the imgbox 1 at a time, Look at you Tools to the left and scroll down, you'll see a control called ImgList, it' doesn't dispaly them just holds them like the resources, but would be easier to randomize, safer too as you can add other resources which can...
hi firstly i wouldn't code out 52 If Then statements my self, Quite a Silly Idea, Secondly i get what your trying to achive, so ill try and help.
No. 1 are the images named h3.gif and so on or just 3.gif?
No. 2 As i mentioned before ImageControl you can still use the same code you using just...
well to get an image for single use it's quite simple
logo.Image = My.Resources.Button
"Button" being the image, Really you should have used an ImageList Control and Randomized that as if you have any other resources like an "Icon,Executable file, TxTFile" ect.. then the picturebox will be...
Hi i open my mouth then realise that the above code it inaccurate, i didn't really test it too much, and at the speed of the progressbar, it's lightspeed for 30 and 60 seconds, ok i got that over and done with, here's the revised code, some of it mayt be long winded but that's what you get :D...
hi john, thanks for the reply, i have used that method before, i should have thought :embarrassed:, I would like to use the previous code to see if it's possible i'm sure it is, i have the following code:
Dim sGUID As Guid = GetType(Place Item Here).GUID
I have nearly got it cracked, i'm...
I'm using VB.NET 2010 so if you not maybe thats it
If CDbl(ClassTextBox.Text) = nbrValue(I) Then
If ClassTextBox.Text = nbrValue(I).ToString Then
You Might not need to ".ToString" on nbrValue(i)
if your still having problems send me the code your using, as the one on...
Hi all, im workin on a task that will get the current computers Default Gatway, So i chose the easiest option, using the Registry, in most cases i find this with no problem at all, here's the code im using right now,
Public sHost As String = My.Computer.Registry.GetValue _...
Private Sub frmClose_FormClosing(sender As Object, e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
If CBool(CloseReason.UserClosing) 'Then checks to see if user has tried to close form
e.Cancel = True 'and cancels that action here...