Click here to Skip to main content
16,004,924 members
Home / Discussions / C#
   

C#

 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Martin#14-May-07 20:02
Martin#14-May-07 20:02 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Kataric14-May-07 20:19
Kataric14-May-07 20:19 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Martin#14-May-07 20:24
Martin#14-May-07 20:24 
Questioncannot convert from 'string' to 'AccountManagement.IAccount' Pin
Latheesan14-May-07 11:17
Latheesan14-May-07 11:17 
AnswerRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Colin Angus Mackay14-May-07 11:24
Colin Angus Mackay14-May-07 11:24 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Latheesan14-May-07 11:37
Latheesan14-May-07 11:37 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Colin Angus Mackay14-May-07 11:42
Colin Angus Mackay14-May-07 11:42 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Latheesan14-May-07 11:51
Latheesan14-May-07 11:51 
Thanks for your reply again, i tried to put it in, but it said the doFindAccount method is not found.

Even if i managed to get the method working, the problem is that, the doFindAccount searches for account in the hashtable. When im searching for the first time, this account name would not be in the hashtable.

So, i looked at my main form and found this code that adds new account:

IAccount account = new Account(nameTextBox.Text, "");<br />
                    account.SetAccNumber(nameTextBox.Text);<br />
                    doEditAccount(account);<br />
                    bank.AddAccount(account);

So, from that, i see, the code adds the account to the hashtable and then it does the editing part by opening the acc manage form.

So, i tried to do this in my search form like this:

IAccount account = new Account(tmpName, "");<br />
                    doEditAccount(account);<br />
                    bank.AddAccount(account);<br />
                    this.Close();

Now the previous error is gone and have a new one:

The name 'bank' does not exist in the current context


The AdvSearchForm is VERY similar to the MainForm, yet how can the form cannot find the instance 'bank' ?
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Colin Angus Mackay14-May-07 11:57
Colin Angus Mackay14-May-07 11:57 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Latheesan14-May-07 12:05
Latheesan14-May-07 12:05 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Latheesan14-May-07 12:09
Latheesan14-May-07 12:09 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Colin Angus Mackay14-May-07 12:11
Colin Angus Mackay14-May-07 12:11 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Latheesan14-May-07 12:45
Latheesan14-May-07 12:45 
AnswerRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Christian Graus14-May-07 11:36
protectorChristian Graus14-May-07 11:36 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Latheesan14-May-07 11:52
Latheesan14-May-07 11:52 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Christian Graus14-May-07 12:28
protectorChristian Graus14-May-07 12:28 
QuestionOutlook dev question Pin
szukuro14-May-07 10:27
szukuro14-May-07 10:27 
AnswerRe: Outlook dev question Pin
dotnetcdr16-May-07 0:04
dotnetcdr16-May-07 0:04 
GeneralRe: Outlook dev question Pin
szukuro16-May-07 0:28
szukuro16-May-07 0:28 
GeneralRe: Outlook dev question Pin
szukuro16-May-07 0:36
szukuro16-May-07 0:36 
Questionproblem to retrieve relational data from tables. [modified] Pin
hdv21214-May-07 10:26
hdv21214-May-07 10:26 
AnswerRe: problem to retrieve relational data from tables. Pin
Christian Graus14-May-07 10:42
protectorChristian Graus14-May-07 10:42 
Questionproblem to retrieve relational data from tables. Pin
hdv21214-May-07 10:23
hdv21214-May-07 10:23 
QuestionProblem with events Pin
~~~Johnny~~~14-May-07 8:50
~~~Johnny~~~14-May-07 8:50 
AnswerRe: Problem with events Pin
Martin#14-May-07 20:13
Martin#14-May-07 20:13 

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.