The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Attn: VB.net UFies, Re: Textboxes by carthax 2009-04-02 16:08:43
Original post is here.

As was suggested, I modified the code a bit, put breakpoints in and browsed through.

Dim TempISBN as Text
Dim TempTitle as Text

MySqlCommand.CommandText = "SELECT Name FROM Library"
MySqlConnection.Open()
TempTitle = MySqlCommand.ExecuteScalar.ToString()
MySqlCommand.CommandText = "SELECT ISBN FROM Library"
TempISBN = MySqlCommand.ExecuteScalar.ToString()
MySqlConnection.Close()

txtISBN.Text = TempISBN
txtTitle.Text = TempTitle

TempTitle and TempISBN were both assigned the proper values. At the breakpoint where txtISBN.Text is assigned the value of TempISBN, the values of both was what I expected. Same goes for txtTitle.Text and TempTitle.

I made the last step, and there was nothing in the textboxes.

Suggestions?
[ Reply ]
  Force a repaint of the screen. by RetiQlum22009-04-02 16:44:01
    Tried that. Me.Update() does nothing. by carthax2009-04-02 17:08:27
      try application.doevents by Freakazoid2009-04-02 17:17:27

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)