Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
GeneralRe: Serialport write / read to fast for the device Pin
pxp8-Sep-05 13:39
pxp8-Sep-05 13:39 
GeneralRe: Serialport write / read to fast for the device Pin
WillemM9-Sep-05 1:06
WillemM9-Sep-05 1:06 
GeneralRe: Serialport write / read to fast for the device Pin
pxp9-Sep-05 1:38
pxp9-Sep-05 1:38 
GeneralRe: Serialport write / read to fast for the device Pin
WillemM9-Sep-05 2:21
WillemM9-Sep-05 2:21 
GeneralRe: Serialport write / read to fast for the device Pin
pxp9-Sep-05 3:12
pxp9-Sep-05 3:12 
GeneralRe: Serialport write / read to fast for the device Pin
WillemM9-Sep-05 4:03
WillemM9-Sep-05 4:03 
GeneralRe: Serialport write / read to fast for the device Pin
pxp9-Sep-05 4:57
pxp9-Sep-05 4:57 
QuestionUsing strings to name an object Pin
Expert Coming8-Sep-05 12:23
Expert Coming8-Sep-05 12:23 
AnswerRe: Using strings to name an object Pin
Christian Graus8-Sep-05 12:28
protectorChristian Graus8-Sep-05 12:28 
GeneralRe: Using strings to name an object Pin
Expert Coming8-Sep-05 12:29
Expert Coming8-Sep-05 12:29 
GeneralRe: Using strings to name an object Pin
Christian Graus8-Sep-05 12:30
protectorChristian Graus8-Sep-05 12:30 
GeneralRe: Using strings to name an object Pin
Expert Coming8-Sep-05 12:34
Expert Coming8-Sep-05 12:34 
GeneralRe: Using strings to name an object Pin
Christian Graus8-Sep-05 12:58
protectorChristian Graus8-Sep-05 12:58 
GeneralRe: Using strings to name an object Pin
Expert Coming8-Sep-05 13:02
Expert Coming8-Sep-05 13:02 
GeneralRe: Using strings to name an object Pin
Christian Graus8-Sep-05 13:05
protectorChristian Graus8-Sep-05 13:05 
ExpertComing wrote:
I don't REALLY know that the label is going to be "Attack", the database may change

Obviously, but I followed your example, and the fact that you tried to cast a string to a label left me thinking this was what you needed to know.

ExpertComing wrote:
lbl(skill).Text = skill;

You can't name your variables locally like that. You CAN set their ID and tag values in this way.

You need to create a new Label ( just look in the InitializeComponent part of an app with a label predefined to see all the stuff you need to set ), then you can set it's text, and it's id/tag properties.

Oh, is this Winforms, or ASP.NET ?



Christian Graus - Microsoft MVP - C++
GeneralRe: Using strings to name an object Pin
Expert Coming8-Sep-05 13:07
Expert Coming8-Sep-05 13:07 
GeneralRe: Using strings to name an object Pin
Christian Graus8-Sep-05 13:10
protectorChristian Graus8-Sep-05 13:10 
GeneralRe: Using strings to name an object Pin
Expert Coming8-Sep-05 13:12
Expert Coming8-Sep-05 13:12 
GeneralRe: Using strings to name an object Pin
Christian Graus8-Sep-05 13:16
protectorChristian Graus8-Sep-05 13:16 
GeneralRe: Using strings to name an object Pin
Expert Coming8-Sep-05 13:19
Expert Coming8-Sep-05 13:19 
GeneralRe: Using strings to name an object Pin
Christian Graus8-Sep-05 13:20
protectorChristian Graus8-Sep-05 13:20 
GeneralRe: Using strings to name an object Pin
Expert Coming8-Sep-05 13:21
Expert Coming8-Sep-05 13:21 
GeneralRe: Using strings to name an object Pin
Christian Graus8-Sep-05 13:23
protectorChristian Graus8-Sep-05 13:23 
GeneralRe: Using strings to name an object Pin
Expert Coming8-Sep-05 13:26
Expert Coming8-Sep-05 13:26 
GeneralRe: Using strings to name an object Pin
Christian Graus8-Sep-05 13:34
protectorChristian Graus8-Sep-05 13:34 

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.