Click here to Skip to main content
16,008,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Setting PRIMARY KEY using Alter Table [modified] Pin
kkb_200112-Oct-07 2:01
kkb_200112-Oct-07 2:01 
GeneralRe: Setting PRIMARY KEY using Alter Table Pin
pmarfleet12-Oct-07 2:07
pmarfleet12-Oct-07 2:07 
AnswerMessage Removed Pin
12-Oct-07 0:50
Marek Grzenkowicz12-Oct-07 0:50 
GeneralRe: Software Piracy Pin
Guffa12-Oct-07 7:14
Guffa12-Oct-07 7:14 
GeneralRe: Software Piracy Pin
Paul Conrad12-Oct-07 12:08
professionalPaul Conrad12-Oct-07 12:08 
QuestionHow to bind multiple tables in a datagrid..? Pin
Balagurunathan S11-Oct-07 23:46
Balagurunathan S11-Oct-07 23:46 
AnswerRe: How to bind multiple tables in a datagrid..? Pin
Vimalsoft(Pty) Ltd12-Oct-07 0:11
professionalVimalsoft(Pty) Ltd12-Oct-07 0:11 
QuestionHow to change to properties in vb.net Pin
VB 8.011-Oct-07 22:41
VB 8.011-Oct-07 22:41 
hii

In the datagridview ,i am showing the properties of a control like this using datatable
BackColor       BorderStyle   Enabled   Color          top    left <br />
 Color [White]	FixedSingle	True	Color [Black]	355	205	[Font: Name=Microsoft Sans Serif, Size=8.25, Units=3, GdiCharSet=0, GdiVerticalFont=False]	455	225	True	False	TextBox1


using this code
drTextBox.Item("Name") = ctr.Name<br />
            drTextBox.Item("BackColor") = ctr.BackColor.ToString<br />
            drTextBox.Item("BorderStyle") = ctr.BorderStyle
by setting previously at runtime . at this time it is storing in datatable .now i want to retrieve the same and show in propertygrid
and i am assigning to class .it contains properties get and set of textbox and i am assigning propertygrid.selectedobject = new ctextbox .

when i click on the control it has to show the properties by taking from datatable and assign to ctextbox(get, set) and show it in propertygrid .

I am getting the typecast error. how to typecast these things

i am taking it in a temporary variable and this variable i am assigning to ctextbox property get and set

tBackcolor = Color.FromName(drCurrentRow.Item("BackColor"))
MessageBox.Show(tBackcolor.ToString())

how to solve and show in the propertygrid

DVSriram
AnswerRe: How to change to properties in vb.net Pin
Dave Kreskowiak14-Oct-07 2:40
mveDave Kreskowiak14-Oct-07 2:40 
QuestionBinding Source Updation Pin
SekharOne11-Oct-07 21:04
SekharOne11-Oct-07 21:04 
AnswerRe: Binding Source Updation Pin
Dave Kreskowiak12-Oct-07 2:10
mveDave Kreskowiak12-Oct-07 2:10 
Questiondisplaying dynamic image in crystal report [modified] Pin
kiddsx4u11-Oct-07 20:39
kiddsx4u11-Oct-07 20:39 
QuestionPassing parameters to crystl Report at runtime using vb.et Pin
saneng11-Oct-07 20:11
saneng11-Oct-07 20:11 
AnswerRe: Passing parameters to crystl Report at runtime using vb.et [modified] Pin
kkb_200111-Oct-07 20:20
kkb_200111-Oct-07 20:20 
QuestionProblem in ODBCPERMISSION (VB .NET) [modified] Pin
kkb_200111-Oct-07 19:42
kkb_200111-Oct-07 19:42 
AnswerRe: Problem in ODBCPERMISSION (VB .NET) Pin
Vimalsoft(Pty) Ltd11-Oct-07 20:20
professionalVimalsoft(Pty) Ltd11-Oct-07 20:20 
QuestionTheory of the WAV Pin
Benny_Lava11-Oct-07 19:07
Benny_Lava11-Oct-07 19:07 
AnswerRe: Theory of the WAV Pin
Guffa11-Oct-07 21:13
Guffa11-Oct-07 21:13 
QuestionCrystalReport and Subreport ? Pin
dcode2511-Oct-07 15:19
dcode2511-Oct-07 15:19 
AnswerRe: CrystalReport and Subreport ? Pin
kkb_200111-Oct-07 20:11
kkb_200111-Oct-07 20:11 
Questioncapture images using webcam Pin
hulk414111-Oct-07 9:23
hulk414111-Oct-07 9:23 
AnswerRe: capture images using webcam Pin
Christian Graus11-Oct-07 10:37
protectorChristian Graus11-Oct-07 10:37 
GeneralRe: capture images using webcam Pin
Dave Kreskowiak11-Oct-07 10:40
mveDave Kreskowiak11-Oct-07 10:40 
AnswerRe: capture images using webcam Pin
Dave Kreskowiak11-Oct-07 10:39
mveDave Kreskowiak11-Oct-07 10:39 
AnswerRe: capture images using webcam Pin
Zia Ul Haq Soofi11-Oct-07 20:01
Zia Ul Haq Soofi11-Oct-07 20:01 

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.