Click here to Skip to main content
15,918,808 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Book Name Pin
Paul Conrad29-Sep-07 7:07
professionalPaul Conrad29-Sep-07 7:07 
GeneralRe: Book Name Pin
Dave Kreskowiak29-Sep-07 7:49
mveDave Kreskowiak29-Sep-07 7:49 
GeneralRe: Book Name Pin
Paul Conrad29-Sep-07 10:39
professionalPaul Conrad29-Sep-07 10:39 
GeneralRe: Book Name Pin
Dave Kreskowiak29-Sep-07 11:49
mveDave Kreskowiak29-Sep-07 11:49 
QuestionRDO connection code Pin
ma$$$$$$$$$$$a28-Sep-07 22:41
ma$$$$$$$$$$$a28-Sep-07 22:41 
AnswerRe: RDO connection code Pin
Dave Kreskowiak29-Sep-07 3:00
mveDave Kreskowiak29-Sep-07 3:00 
QuestionRead and write (propertygrid values) from xml file Pin
VB 8.028-Sep-07 21:15
VB 8.028-Sep-07 21:15 
AnswerRe: Read and write (propertygrid values) from xml file Pin
Dave Kreskowiak29-Sep-07 2:58
mveDave Kreskowiak29-Sep-07 2:58 
dvsriram wrote:
1) Now the task is i have to save & get (All the controls in form )Page Properties using an xml file using (dataset ,datatables ) using ADO.Net .If i retrieve it it has to look like the orginal one when i am running the form (same order and size of controls )


I told you that you're skills were not up to the task of building a form's designer. Your technique's willl only carry you so far before you run into walls put up by your own design.

Controls are not serializable. Using your thinking, the only way to save a control would be to look at all the properties you need to regenerate the control, like Location, Size, Text (if it has this property), Value (again, IF it has this property), any other properties (and AGAIN, IF they have those properties).

If you're looking at only specific properties of a limited number in a known set of controls, you can write you own code to get a set of properties for each control. This is the monolithic way to do this and will result in a non-flexible design that can't be easily adapted to add new controls. Even using this method, you're going to have a difficult time understanding the code, and there will be a LOT of it.

Remember when I said you'd need to understand code generation?? This is where it applies to your problem. You might want to read this little sample[^] of what I'm talking about. This is what it takes to serialize any given control and be flexible enough to look at all the public properties.


You're second question makes no sense. "Spacing"??? What are you talking about?? There are Top and Left properties that map to the Location property, that sets the position Top Left corner of the control. There are no Right and Bottom properties. There is the Size property that describes how wide (Width) and high (Height) the control is.

As far as the Splitter control, you haven't given any usable information on what you're doing with it, or how it relates to the problem. About the only thing I can come up with is that you're not using the Anchor and/or Dock properties of your Panel properly.



A guide to posting questions on CodeProject[^]

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


AnswerRe: Read and write (propertygrid values) from xml file Pin
Vanamaindia1-Oct-07 1:42
Vanamaindia1-Oct-07 1:42 
Questiondisplaying playtime Pin
bhattiprolu28-Sep-07 20:22
bhattiprolu28-Sep-07 20:22 
AnswerRe: displaying playtime Pin
Christian Graus29-Sep-07 0:25
protectorChristian Graus29-Sep-07 0:25 
AnswerRe: displaying playtime Pin
LloydA11129-Sep-07 1:13
LloydA11129-Sep-07 1:13 
GeneralRe: displaying playtime Pin
Christian Graus29-Sep-07 1:27
protectorChristian Graus29-Sep-07 1:27 
QuestionHyperlink Pin
hsuresh28-Sep-07 19:42
hsuresh28-Sep-07 19:42 
AnswerRe: Hyperlink Pin
Christian Graus29-Sep-07 1:28
protectorChristian Graus29-Sep-07 1:28 
Questionhow to transfer the text box values etc from a registration page to an excel sheet in vb.net Pin
chiyankrishna28-Sep-07 18:33
chiyankrishna28-Sep-07 18:33 
AnswerRe: how to transfer the text box values etc from a registration page to an excel sheet in vb.net Pin
Andy_L_J28-Sep-07 19:13
Andy_L_J28-Sep-07 19:13 
QuestionHiding Panels in VB.NET Pin
AAGTHosting28-Sep-07 12:22
AAGTHosting28-Sep-07 12:22 
AnswerRe: Hiding Panels in VB.NET Pin
Christian Graus28-Sep-07 13:30
protectorChristian Graus28-Sep-07 13:30 
QuestionWindows application in Vb.NET Pin
Senthil K Ramadoss28-Sep-07 12:09
Senthil K Ramadoss28-Sep-07 12:09 
AnswerRe: Windows application in Vb.NET Pin
Christian Graus28-Sep-07 13:35
protectorChristian Graus28-Sep-07 13:35 
AnswerRe: Windows application in Vb.NET Pin
GuyThiebaut28-Sep-07 22:06
professionalGuyThiebaut28-Sep-07 22:06 
AnswerRe: Windows application in Vb.NET Pin
LloydA11129-Sep-07 1:31
LloydA11129-Sep-07 1:31 
QuestionWindows application in Vb.NET Pin
Senthil K Ramadoss28-Sep-07 12:08
Senthil K Ramadoss28-Sep-07 12:08 
AnswerRe: Windows application in Vb.NET Pin
Johan Hakkesteegt29-Sep-07 7:54
Johan Hakkesteegt29-Sep-07 7:54 

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.