PC Review


Reply
Thread Tools Rate Thread

Databases and Buttons

 
 
Zahid
Guest
Posts: n/a
 
      15th Sep 2003
Hi,

Anybody know how to save a Button into an SQLServerCe
database field? Or any other Control?

Thanks in advance.
 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      15th Sep 2003
Create fields that would contain defining properties of your controls:
X, Y, Width, Height, Text, optionally, color, control type (e.g. a string
that is the class name: myControl.GetType().FullName)

When restoring, do something like this:
Control c = (Control)Activator.CreateInstance(Type.GetType(typeName));
Control.Location = new Rectangle(X, Y, Width, Height);
Control.Text = text;
etc.

"Zahid" <(E-Mail Removed)> wrote in message
news:068c01c37b6d$3bcb3250$(E-Mail Removed)...
> Hi,
>
> Anybody know how to save a Button into an SQLServerCe
> database field? Or any other Control?
>
> Thanks in advance.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot open any more databases and splitting databases ericgj Microsoft Access VBA Modules 3 19th Dec 2008 12:55 AM
Application Databases & Query Databases vbasean Microsoft Access 1 30th Sep 2008 10:36 PM
have toggle buttons but everytime print preview buttons move =?Utf-8?B?VGluU2FuZGh1?= Microsoft Excel Misc 1 11th Oct 2006 02:57 PM
Outlook 2007 - HTML radio buttons, submit buttons, text fields... =?Utf-8?B?bWlndWVsaXRvOTI4?= Microsoft Outlook Discussion 2 13th Sep 2006 08:20 PM
Menu form with command buttons to open variety of databases =?Utf-8?B?RGF3biBCam9yayBCdXpiZWU=?= Microsoft Access Forms 1 1st Jun 2006 12:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:04 PM.