Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by at51178

  1. at51178

    Problem adding textboxes together and view as currency

    Hi I am creating a form and would like to have the results how up as a currency value but every time I run my code it keeps freezing not sure why. --Code -- Dim Add1 As Decimal Dim Add2 As Decimal Dim Total As Decimal Add1 = Me.Text1.Text Add2 = Me.Text2.Text Total = Me.Text3.Text...
  2. at51178

    Passing textbox text from one form to another

    I found the answer to my last question thanks I think I have a much better handle on how vb.net handles data from one form to another.
  3. at51178

    Passing textbox text from one form to another

    I am using gdi+ to print here is part of the code that I am using on form1 to get some of the attributes of a textbox on form2 the only thing I wasn't able to capture was the text. --Code -- e.Graphics.DrawString(Form2.txtName.Text, _ New Font(Form2.txtName.Font, FontStyle.Regular), _ New...
  4. at51178

    Passing textbox text from one form to another

    Thanks that worked but just one other question related to this what if I had two forms where form1 was the container and form2 was the child On form 1 all I have is the main menu with print capabilities. If I wanted to print the text inside text2 How would I go about pushing the data to...
  5. at51178

    Passing textbox text from one form to another

    this is the code I have so far in the load event of form2 Dim form1 as form1= New Form1 Me.text2.text = Form1.text1.text
  6. at51178

    Passing textbox text from one form to another

    its in vb.net a windows form
  7. at51178

    Passing textbox text from one form to another

    Hi, I looked everywhere for this and it seems to be an easy question. I have two forms each with a textbox on it Form1 has text1 Form2 has text2 When I click on a button on form1 to open form 2 I would like to have any text in form1 to be passed over to text2. I have been able to have it...
  8. at51178

    How to pass a value from one form to another

    Lorey thanks for your help the change I made to my code works fine but I am only able to pass text value of what is in the textboxes property I am not able to type in a value inthe textbox in form1 and then pass that value from form1 to the textbox in form2.
  9. at51178

    How to pass a value from one form to another

    Hi I am new to vb.net but I am trying to pass a value from a textbox in form1 to a textbox in form2 but am not having any luck this is the code that I have on the on load event of form2 Dim Form1 as Form1 Me.Text2.text = Form1.Text1.Text but nothing happens when I open form 2 from a...
  10. at51178

    how to get printdocument to print controls on form

    I understand but I am going by what my bosses want I will try out the draw method thanks for your help
  11. at51178

    how to get printdocument to print controls on form

    I have tried the screen shot code it works fine but the problem is if the users screen setting is too big and cuts the form off then the form will be printed with the form being cut off. I need it so if the whole form can not be visible with out scrolling and the user prints the form I would...
  12. at51178

    how to get printdocument to print controls on form

    Hi RiverGuy I am kind of new to vb.net But from what I have experienced with PrintDocument and PrintPreview I am not able to print what is on my form. I am able to set it up so that I could print the contents of what ever is in the textboxes but I need to have it print up the same way the...
  13. at51178

    how to get printdocument to print controls on form

    Well what can I use to make it into a document I am designing a form for clients to fill out and print I was doing research and was thinking of using crystal reports but not sure how to set it up on vs.net do I need to buy a seperate program for it or does it come with vs.net already. Thanks
  14. at51178

    how to get printdocument to print controls on form

    hi I was woundering if you can use printdocument control to print out all your controls on your form. For example if I have a button on my form it would print out the button control right where it is on my form

Part and Inventory Search

Back
Top