Click here to Skip to main content
15,908,115 members
Home / Discussions / C#
   

C#

 
AnswerRe: XmlSerializer Pin
Dustin Metzgar20-Jun-06 3:39
Dustin Metzgar20-Jun-06 3:39 
AnswerRe: XmlSerializer Pin
stancrm20-Jun-06 3:29
stancrm20-Jun-06 3:29 
AnswerRe: XmlSerializer Pin
LongRange.Shooter20-Jun-06 16:51
LongRange.Shooter20-Jun-06 16:51 
QuestionHow to Create a Dragable window inside a mainwindow Pin
praveenqwe20-Jun-06 0:02
praveenqwe20-Jun-06 0:02 
AnswerRe: How to Create a Dragable window inside a mainwindow Pin
Robert Rohde20-Jun-06 1:24
Robert Rohde20-Jun-06 1:24 
Questionhow can i set file or directory that everyone can write Pin
punny20-Jun-06 0:00
punny20-Jun-06 0:00 
QuestionUsing Classes Pin
Ni Na19-Jun-06 23:15
Ni Na19-Jun-06 23:15 
AnswerRe: Using Classes Pin
LongRange.Shooter20-Jun-06 17:05
LongRange.Shooter20-Jun-06 17:05 
Providing some code that you are doing would really help for pinpointing the problem. But here is a highlevel design I would implement:

Windows Form -- class that contains the two listboxes
the select event in the main box causes a lookup
and populate of the second listbox.

'business layer' -- exposes general methods for the form.
public PrimaryData GetPrimaryList(string key)
{
     return GetPrimaryDataObjects(key, connection);
}

public SecondaryList GetSecondaryList(string key)
{
     return GetSecondaryDataObjects(key, connection);
}


Finally the datalayer -- gets data and exposes the two methods used above.

Now, if you have problems then the first thing to do is begin doing breakpoints and run in Debug mode. I'd set a breakpoint on the event of selecting an item in the primary list. Single step (F11) through everything and validate you are actually passing around the data you think you are passing around. Do QuickWatch on specific items and verify you have everything you should.

Once you have a point where you've constructed a query, QuickWatch that and then copy it into Query Analyzer and make sure that the query actually works when you manually point it at your database.

Those are just the first two steps I'd take in getting the answer to my own qauestion.
QuestionHow to move a toolstrip during runtime? Pin
praveenqwe19-Jun-06 23:10
praveenqwe19-Jun-06 23:10 
QuestionInvalid Token in xpath concat Pin
Duncan Sample19-Jun-06 23:03
Duncan Sample19-Jun-06 23:03 
AnswerRe: Invalid Token in xpath concat Pin
sathish s20-Jun-06 0:51
sathish s20-Jun-06 0:51 
QuestionRe: Invalid Token in xpath concat Pin
Duncan Sample21-Jun-06 4:11
Duncan Sample21-Jun-06 4:11 
QuestionDateTime error [modified] Pin
rah_sin19-Jun-06 22:31
professionalrah_sin19-Jun-06 22:31 
AnswerRe: DateTime error Pin
sathish s20-Jun-06 0:02
sathish s20-Jun-06 0:02 
AnswerRe: DateTime error Pin
LongRange.Shooter20-Jun-06 17:15
LongRange.Shooter20-Jun-06 17:15 
GeneralRe: DateTime error Pin
rah_sin20-Jun-06 18:32
professionalrah_sin20-Jun-06 18:32 
GeneralRe: DateTime error Pin
LongRange.Shooter22-Jun-06 0:46
LongRange.Shooter22-Jun-06 0:46 
QuestionUsing Date last modified? Pin
kbalias19-Jun-06 21:55
kbalias19-Jun-06 21:55 
AnswerRe: Using Date last modified? Pin
Stefan Troschuetz19-Jun-06 22:02
Stefan Troschuetz19-Jun-06 22:02 
GeneralRe: Using Date last modified? Pin
kbalias19-Jun-06 22:07
kbalias19-Jun-06 22:07 
QuestionVS 2005 Windows Forms Designer Error when dragging UserControl Onto Form Pin
supD19-Jun-06 21:39
supD19-Jun-06 21:39 
Questionkeep control then focus on it Pin
freshonlineMax19-Jun-06 21:37
freshonlineMax19-Jun-06 21:37 
AnswerRe: keep control then focus on it Pin
Mairaaj Khan19-Jun-06 22:17
professionalMairaaj Khan19-Jun-06 22:17 
QuestionDetermining non-persistent properties Pin
kumar.bs19-Jun-06 21:32
kumar.bs19-Jun-06 21:32 
AnswerRe: Determining non-persistent properties Pin
LongRange.Shooter20-Jun-06 17:18
LongRange.Shooter20-Jun-06 17:18 

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.