Click here to Skip to main content
15,920,217 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiontextbox Pin
kewyn23-Oct-08 8:58
kewyn23-Oct-08 8:58 
AnswerRe: textbox Pin
Dave Kreskowiak23-Oct-08 9:06
mveDave Kreskowiak23-Oct-08 9:06 
GeneralRe: textbox Pin
kewyn23-Oct-08 9:19
kewyn23-Oct-08 9:19 
GeneralRe: textbox Pin
Dave Kreskowiak23-Oct-08 10:44
mveDave Kreskowiak23-Oct-08 10:44 
GeneralRe: textbox Pin
Guffa23-Oct-08 13:58
Guffa23-Oct-08 13:58 
QuestionHow do you get the rectangular coordinates for Bookmarks in Word 2000 / 2003 ? Pin
Tomb42123-Oct-08 8:09
Tomb42123-Oct-08 8:09 
Questiontext box Pin
kewyn23-Oct-08 7:55
kewyn23-Oct-08 7:55 
AnswerRe: text box Pin
Dave Kreskowiak23-Oct-08 8:24
mveDave Kreskowiak23-Oct-08 8:24 
kewyn wrote:
me.TextBox2().Text()=dr.CashierId.toString


That's not going to work. At best, you'll get "System.Data.DataRow" in the Textbox. You have to write the code that takes each row in the datatable in your dataset and formats the data in each column of that row into whatever form you need. The DataSet class doesn't know anything about how to format your data and doesn't know how to convert it's tables into formatted text strings. It's not supposed to know.

You also don't need to specify Me, and don't need to put the parenthesis after each object or property name.

TextBox2.Text = String.Format("{0} {1}", dr.columnName.Value, dr.columnName.Value)


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




QuestionNeed Despriate Help with LPR printing Pin
Trey549823-Oct-08 7:47
Trey549823-Oct-08 7:47 
AnswerRe: Need Despriate Help with LPR printing Pin
Dave Kreskowiak23-Oct-08 9:03
mveDave Kreskowiak23-Oct-08 9:03 
GeneralRe: Need Despriate Help with LPR printing Pin
Trey549823-Oct-08 9:26
Trey549823-Oct-08 9:26 
QuestionInsert graphic image into PDF Pin
Cory Kimble23-Oct-08 6:34
Cory Kimble23-Oct-08 6:34 
AnswerRe: Insert graphic image into PDF Pin
Dave Kreskowiak23-Oct-08 7:37
mveDave Kreskowiak23-Oct-08 7:37 
QuestionProcess.Start Pin
KreativeKai23-Oct-08 6:30
professionalKreativeKai23-Oct-08 6:30 
AnswerRe: Process.Start Pin
Jon_Boy23-Oct-08 6:39
Jon_Boy23-Oct-08 6:39 
GeneralRe: Process.Start Pin
Jon_Boy23-Oct-08 8:27
Jon_Boy23-Oct-08 8:27 
AnswerRe: Process.Start Pin
Dave Kreskowiak23-Oct-08 7:35
mveDave Kreskowiak23-Oct-08 7:35 
GeneralRe: Process.Start Pin
KreativeKai23-Oct-08 7:50
professionalKreativeKai23-Oct-08 7:50 
GeneralRe: Process.Start Pin
Dave Kreskowiak23-Oct-08 8:02
mveDave Kreskowiak23-Oct-08 8:02 
GeneralRe: Process.Start Pin
KreativeKai23-Oct-08 8:14
professionalKreativeKai23-Oct-08 8:14 
GeneralRe: Process.Start Pin
Dave Kreskowiak23-Oct-08 8:28
mveDave Kreskowiak23-Oct-08 8:28 
GeneralRe: Process.Start Pin
KreativeKai23-Oct-08 8:41
professionalKreativeKai23-Oct-08 8:41 
GeneralRe: Process.Start Pin
Dave Kreskowiak23-Oct-08 9:07
mveDave Kreskowiak23-Oct-08 9:07 
QuestionRe: Process.Start Pin
KreativeKai23-Oct-08 9:38
professionalKreativeKai23-Oct-08 9:38 
AnswerRe: Process.Start Pin
Jon_Boy23-Oct-08 10:07
Jon_Boy23-Oct-08 10:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.