Click here to Skip to main content
15,903,724 members
Home / Discussions / C#
   

C#

 
AnswerRe: Class question Pin
Christian Graus30-Aug-05 14:38
protectorChristian Graus30-Aug-05 14:38 
AnswerRe: Class question Pin
Mohamad Al Husseiny30-Aug-05 14:51
Mohamad Al Husseiny30-Aug-05 14:51 
AnswerRe: Class question Pin
mitsemaj30-Aug-05 15:07
mitsemaj30-Aug-05 15:07 
GeneralRe: Class question Pin
Christian Graus30-Aug-05 15:16
protectorChristian Graus30-Aug-05 15:16 
GeneralRe: Class question Pin
mitsemaj30-Aug-05 17:28
mitsemaj30-Aug-05 17:28 
GeneralRe: Class question Pin
Christian Graus30-Aug-05 17:29
protectorChristian Graus30-Aug-05 17:29 
GeneralRe: Class question Pin
S. Senthil Kumar31-Aug-05 7:24
S. Senthil Kumar31-Aug-05 7:24 
AnswerRe: Class question Pin
kenexcelon30-Aug-05 15:19
kenexcelon30-Aug-05 15:19 
I'm trying to load a sorted list from a database in Access. Would I put my loop statements in the constructor? Sorry for dumb questions, but we're learning this on our own. NO help from my professor as she doesn't know C#!

Like so?

VB
Public Class Contacts

Private contact As New contact
Public ContactList As New SortedList

Public Sub LoadFile(ByVal ds As DataSet)
Try
Dim tbl As DataTable = ds.Tables(0)
Dim row As DataRow
For Each row In tbl.Rows
contact = New Contact
With contact

C# - I know the dim and such isn't correct syntax, getting frustrated! Got to learn C# in 1 week!
private Contact myContact = new Contact();
public SortedList ContactList = new SortedList();

public Contacts()
{
Dim tbl As DataTable = ds.Tables(0)
Dim row As DataRow
For Each row In tbl.Rows
contact = New Contact
}
GeneralRe: Class question Pin
...---...30-Aug-05 15:36
...---...30-Aug-05 15:36 
QuestionCustom MenuItem Pin
Anonymous30-Aug-05 11:04
Anonymous30-Aug-05 11:04 
AnswerRe: Custom MenuItem Pin
if_mel_yes_else_no30-Aug-05 11:20
if_mel_yes_else_no30-Aug-05 11:20 
GeneralRe: Custom MenuItem Pin
Anonymous31-Aug-05 3:27
Anonymous31-Aug-05 3:27 
GeneralRe: Custom MenuItem Pin
if_mel_yes_else_no31-Aug-05 4:52
if_mel_yes_else_no31-Aug-05 4:52 
GeneralRe: Custom MenuItem Pin
Anonymous31-Aug-05 6:34
Anonymous31-Aug-05 6:34 
QuestionText cuts-off on some computers Pin
rudy.net30-Aug-05 10:32
rudy.net30-Aug-05 10:32 
AnswerRe: Text cuts-off on some computers Pin
if_mel_yes_else_no30-Aug-05 10:59
if_mel_yes_else_no30-Aug-05 10:59 
GeneralRe: Text cuts-off on some computers Pin
rudy.net30-Aug-05 14:29
rudy.net30-Aug-05 14:29 
AnswerRe: Text cuts-off on some computers Pin
Christian Graus30-Aug-05 14:41
protectorChristian Graus30-Aug-05 14:41 
GeneralRe: Text cuts-off on some computers Pin
rudy.net31-Aug-05 11:23
rudy.net31-Aug-05 11:23 
Questionrich textbox Pin
surfman1930-Aug-05 10:29
surfman1930-Aug-05 10:29 
AnswerRe: rich textbox Pin
if_mel_yes_else_no30-Aug-05 10:52
if_mel_yes_else_no30-Aug-05 10:52 
GeneralRe: rich textbox Pin
surfman1930-Aug-05 11:08
surfman1930-Aug-05 11:08 
GeneralRe: rich textbox Pin
if_mel_yes_else_no30-Aug-05 11:11
if_mel_yes_else_no30-Aug-05 11:11 
GeneralRe: rich textbox Pin
surfman1930-Aug-05 11:40
surfman1930-Aug-05 11:40 
GeneralRe: rich textbox Pin
if_mel_yes_else_no30-Aug-05 12:06
if_mel_yes_else_no30-Aug-05 12: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.