Click here to Skip to main content
15,881,715 members
Home / Discussions / C#
   

C#

 
Questionhow can i convert VC++6 's Resources files to C# 's Resources Pin
bclangren25-Sep-02 18:31
bclangren25-Sep-02 18:31 
AnswerRe: how can i convert VC++6 's Resources files to C# 's Resources Pin
Stephane Rodriguez.25-Sep-02 20:27
Stephane Rodriguez.25-Sep-02 20:27 
GeneralApplication.StartupPath.ToString(); Pin
Nick Parker25-Sep-02 17:25
protectorNick Parker25-Sep-02 17:25 
GeneralRe: Application.StartupPath.ToString(); Pin
James McCutcheon25-Sep-02 19:59
James McCutcheon25-Sep-02 19:59 
QuestionOutputDebugString or its ? Pin
imran_rafique25-Sep-02 12:18
imran_rafique25-Sep-02 12:18 
AnswerRe: OutputDebugString or its ? Pin
Paul Riley25-Sep-02 12:32
Paul Riley25-Sep-02 12:32 
GeneralAccessing Public Members of the Main Form from Another Form Pin
Waleed Eissa25-Sep-02 12:09
Waleed Eissa25-Sep-02 12:09 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
leppie25-Sep-02 12:26
leppie25-Sep-02 12:26 
Hi again Smile | :)

Waleed wrote:
that was extremely easy in VB

Even easier in C# Smile | :)

define a construtor for the dialogform that takes a parameter of the same type as your mainform. IOW:

public class DialogForm : Form
{
  private MainForm parent;
  ...
  public DialogForm(MainForm parent)
  { this.parent = parent;}
  ...  
  void SomeFunction(){
    parent.OleDbConnection.Connect();
  }
}

Thats it Smile | :) Also , dont make OleDbCOnnection public , but rather create a Property for it.

Give them a chance! Do it for the kittens, dear God, the kittens!
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
Waleed Eissa25-Sep-02 12:31
Waleed Eissa25-Sep-02 12:31 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
leppie25-Sep-02 12:53
leppie25-Sep-02 12:53 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
David Stone25-Sep-02 13:41
sitebuilderDavid Stone25-Sep-02 13:41 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
James T. Johnson25-Sep-02 16:02
James T. Johnson25-Sep-02 16:02 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
David Stone26-Sep-02 10:23
sitebuilderDavid Stone26-Sep-02 10:23 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
James T. Johnson26-Sep-02 12:02
James T. Johnson26-Sep-02 12:02 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
Waleed Eissa25-Sep-02 12:36
Waleed Eissa25-Sep-02 12:36 
GeneralDetecting Enter in a Single-line Textbox Pin
Waleed Eissa25-Sep-02 11:30
Waleed Eissa25-Sep-02 11:30 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
leppie25-Sep-02 12:16
leppie25-Sep-02 12:16 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
Waleed Eissa25-Sep-02 12:33
Waleed Eissa25-Sep-02 12:33 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
Paul Riley25-Sep-02 12:57
Paul Riley25-Sep-02 12:57 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
leppie25-Sep-02 13:03
leppie25-Sep-02 13:03 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
Waleed Eissa27-Sep-02 11:09
Waleed Eissa27-Sep-02 11:09 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
Paul Riley27-Sep-02 12:32
Paul Riley27-Sep-02 12:32 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
Waleed Eissa27-Sep-02 11:46
Waleed Eissa27-Sep-02 11:46 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
Paul Riley27-Sep-02 12:48
Paul Riley27-Sep-02 12:48 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
Anonymous27-Sep-02 13:04
Anonymous27-Sep-02 13:04 

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.