Click here to Skip to main content
15,890,506 members
Home / Discussions / C#
   

C#

 
AnswerRe: Achieving high refresh rate on C# winform application Pin
darkelv24-Sep-06 6:29
darkelv24-Sep-06 6:29 
QuestionProblem connecting to an MS Access Database [modified] Pin
TheBlindWatchmaker22-Sep-06 6:45
TheBlindWatchmaker22-Sep-06 6:45 
AnswerRe: Problem connecting to an MS Access Database Pin
Alaric_22-Sep-06 8:40
professionalAlaric_22-Sep-06 8:40 
GeneralRe: Problem connecting to an MS Access Database Pin
TheBlindWatchmaker22-Sep-06 9:15
TheBlindWatchmaker22-Sep-06 9:15 
GeneralRe: Problem connecting to an MS Access Database Pin
Alaric_22-Sep-06 10:33
professionalAlaric_22-Sep-06 10:33 
GeneralRe: Problem connecting to an MS Access Database [modified] Pin
Alaric_22-Sep-06 11:03
professionalAlaric_22-Sep-06 11:03 
GeneralRe: Problem connecting to an MS Access Database Pin
TheBlindWatchmaker22-Sep-06 11:40
TheBlindWatchmaker22-Sep-06 11:40 
GeneralRe: Problem connecting to an MS Access Database Pin
Alaric_22-Sep-06 11:58
professionalAlaric_22-Sep-06 11:58 
You're not using an object oriented design are you? I assume from your variable names that you're doing something with sound equipment?? Typically, you would do something like the following

public class clsSpeaker
{
   private string mMake;
   private string mModel;


  //your object constructor
  public Speaker()
  {
    mMake  = "";
    mModel = "";
  }

  public void RestoreStateFromQuery(clsResultSet rs)
  {
       this.mMake = rs.GetColumnValue("SpeakerMake");
       this.mModel = rs.GetColumnValue("SpeakerModel");
       //Where SpeakerMake and SpeakerModel are tables in your database
  }
  public string Make
  {
    get
    {
      return mMake;
    }
  }

  public string Model
  {
    get
    {
      return mModel;
    }
  }
}


...so now, you can just instantiate your clsSpeaker class inside your UI, Deserialize it from your database query, and then do the command that I included in my previous post labeled as "form code." It makes the code much more legible and bug tracing is a lot easier because your code is properly compartmentalized.


btw, put your code in "pre" tags instead of "code" tags...It's a lot easier to read. (Pre tags are what I used to post my code in this thread)
QuestionWatching Data Send and Recieved for a particular internet connection Pin
logicon22-Sep-06 6:31
logicon22-Sep-06 6:31 
AnswerRe: Watching Data Send and Recieved for a particular internet connection Pin
Judah Gabriel Himango22-Sep-06 6:42
sponsorJudah Gabriel Himango22-Sep-06 6:42 
Questionhow to use List Pin
waheed awan22-Sep-06 5:46
waheed awan22-Sep-06 5:46 
AnswerRe: how to use List Pin
Judah Gabriel Himango22-Sep-06 5:51
sponsorJudah Gabriel Himango22-Sep-06 5:51 
AnswerRe: how to use List Pin
User 665822-Sep-06 5:52
User 665822-Sep-06 5:52 
Questionformat of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 5:32
b_girl22-Sep-06 5:32 
AnswerRe: format of MIB_IPFORWARDROW structure? Pin
Guffa22-Sep-06 6:39
Guffa22-Sep-06 6:39 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 7:19
b_girl22-Sep-06 7:19 
AnswerRe: format of MIB_IPFORWARDROW structure? Pin
Guffa22-Sep-06 9:25
Guffa22-Sep-06 9:25 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 9:40
b_girl22-Sep-06 9:40 
AnswerRe: format of MIB_IPFORWARDROW structure? Pin
Guffa22-Sep-06 9:47
Guffa22-Sep-06 9:47 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
User 665822-Sep-06 9:57
User 665822-Sep-06 9:57 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 10:15
b_girl22-Sep-06 10:15 
AnswerRe: format of MIB_IPFORWARDROW structure? Pin
Judah Gabriel Himango22-Sep-06 6:39
sponsorJudah Gabriel Himango22-Sep-06 6:39 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 7:15
b_girl22-Sep-06 7:15 
QuestionHow to get the size in bytes of a file name? Pin
Yustme22-Sep-06 5:00
Yustme22-Sep-06 5:00 
AnswerRe: How to get the size in bytes of a file name? Pin
Judah Gabriel Himango22-Sep-06 5:06
sponsorJudah Gabriel Himango22-Sep-06 5:06 

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.