Click here to Skip to main content
15,917,862 members
Home / Discussions / C#
   

C#

 
QuestionSQL Netowrk Interfaces, error:26 - Error locating Server/Instance specified.) Pin
emran83425-May-06 22:43
emran83425-May-06 22:43 
AnswerRe: SQL Netowrk Interfaces, error:26 - Error locating Server/Instance specified.) Pin
Larantz26-May-06 0:29
Larantz26-May-06 0:29 
QuestionDepth first search Pin
shdelpiero25-May-06 22:26
shdelpiero25-May-06 22:26 
AnswerRe: Depth first search Pin
Larantz26-May-06 0:23
Larantz26-May-06 0:23 
GeneralRe: Depth first search Pin
_AK_26-May-06 0:26
_AK_26-May-06 0:26 
AnswerRe: Depth first search Pin
shdelpiero26-May-06 3:21
shdelpiero26-May-06 3:21 
QuestionActive Directory 2003 Pin
AnhTin25-May-06 21:41
AnhTin25-May-06 21:41 
QuestionData binding.. is it possible ? Pin
Imtiaz Murtaza25-May-06 20:25
Imtiaz Murtaza25-May-06 20:25 
Dear friends,
Is it possible to bind the fields of structure to the controls on the form ?

For example.. i got a structure

struct Student
{
String firstName;
String lastName;
// and many other fields and properties
}

Now i got a *form* in which many text boxes are present related to the student. I am initializing form as follows;

txtBoxFirstName.text = student.firstName;
txtBoxLastName.text = student.lastName;
// and so on

Similarly when the form is dismissed, i read the changes back to the structure as:

student.firstName = txtBoxFirstName.text;
student.lastName = txtBoxLastName.text;
// and so on

Now, the problem is that the *Student* structure is very simple containing two fields, as such i need two text boxes on the form. But what if it contains 10 or 15 fields. As such i need to manually read each of the field value from the structure and displaying it in each of the edit controls. And then manually read changes from each edit control to the structure fields.

Is it possible to directly *bind* the strucute fields with the edit controls. It is very easy in ADO.NET. But i dont know whether it is possible in my case ?

Imtiaz
Questionusing #define to define string constants [modified] Pin
abhijit pai25-May-06 20:20
abhijit pai25-May-06 20:20 
AnswerRe: using #define to define string constants [modified] Pin
Colin Angus Mackay25-May-06 23:13
Colin Angus Mackay25-May-06 23:13 
GeneralRe: using #define to define string constants [modified] Pin
abhijit pai25-May-06 23:33
abhijit pai25-May-06 23:33 
GeneralRe: using #define to define string constants [modified] Pin
Larantz26-May-06 0:24
Larantz26-May-06 0:24 
GeneralRe: using #define to define string constants [modified] Pin
Colin Angus Mackay26-May-06 11:15
Colin Angus Mackay26-May-06 11:15 
GeneralRe: using #define to define string constants [modified] Pin
abhijit pai29-May-06 3:36
abhijit pai29-May-06 3:36 
GeneralRe: using #define to define string constants [modified] Pin
Colin Angus Mackay29-May-06 4:49
Colin Angus Mackay29-May-06 4:49 
QuestionHow to monitor files created by perticular process in c# [modified] Pin
HirenSuchak25-May-06 19:50
HirenSuchak25-May-06 19:50 
QuestionGet the active sqlserver names Pin
Shiv525-May-06 19:16
Shiv525-May-06 19:16 
Questionread specific line Pin
the pink jedi25-May-06 15:06
the pink jedi25-May-06 15:06 
AnswerRe: read specific line Pin
Christian Graus25-May-06 15:29
protectorChristian Graus25-May-06 15:29 
QuestionHow to Create self-extract with password protected ? Pin
hdv21225-May-06 12:52
hdv21225-May-06 12:52 
Questionhow can i get the output variable from .. Pin
alokabasha25-May-06 12:50
alokabasha25-May-06 12:50 
AnswerRe: how can i get the output variable from .. Pin
Judah Gabriel Himango25-May-06 13:48
sponsorJudah Gabriel Himango25-May-06 13:48 
AnswerRe: how can i get the output variable from .. Pin
Judah Gabriel Himango25-May-06 13:51
sponsorJudah Gabriel Himango25-May-06 13:51 
Questionplz help! Pin
maryamf25-May-06 12:22
maryamf25-May-06 12:22 
AnswerRe: plz help! Pin
Saqib Mehmood25-May-06 18:24
Saqib Mehmood25-May-06 18:24 

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.