Search results

  1. ProtekNickz

    Question Create a exe from within my own APP

    Hi I was woundering if I could from within my own windows app at the click of a button create a executable? with code from with in a module.
  2. ProtekNickz

    Question Need help in saving new adjusted image to File

    thank guy for the response's you's gave me, all fixed now, i guess i needed pointing in the right direction :D.
  3. ProtekNickz

    Question Need help in saving new adjusted image to File

    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...
  4. ProtekNickz

    Question Need help in saving new adjusted image to File

    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...
  5. ProtekNickz

    Question Delete button

    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)[0]...
  6. ProtekNickz

    items listbox to custum html mail

    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...
  7. ProtekNickz

    items listbox to custum html mail

    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...
  8. ProtekNickz

    items listbox to custum html mail

    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)...
  9. ProtekNickz

    items listbox to custum html mail

    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> </select> Pick...
  10. ProtekNickz

    items listbox to custum html mail

    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 :) <select name="select"> <option value="Song1 Value Here">Song 1</option> <option value="Song2 Value Here">Song 2</option> <option value="Song3 Value Here">Song...
  11. ProtekNickz

    How to get an image from my.resources by string name

    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 :) ImgBoxUpdate.Image=...
  12. ProtekNickz

    How to get an image from my.resources by string name

    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...
  13. ProtekNickz

    How to get an image from my.resources by string name

    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...
  14. ProtekNickz

    How to get an image from my.resources by string name

    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...
  15. ProtekNickz

    How to get an image from my.resources by string name

    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...
  16. ProtekNickz

    Display progressbar showing progress of timer counting up to its Timer.interval

    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...
  17. ProtekNickz

    Question Need Help With GUID in Registry

    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...
  18. ProtekNickz

    Using For Each Loops to Different lines in a Textbox

    I'm using VB.NET 2010 so if you not maybe thats it CHANGE THIS: If CDbl(ClassTextBox.Text) = nbrValue(I) Then TO THIS: 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...
  19. ProtekNickz

    Question Need Help With GUID in Registry

    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 _...
  20. ProtekNickz

    Question Detecting X button click of a window in winforms.

    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...
Top Bottom