Click here to Skip to main content
15,921,660 members
Home / Discussions / C#
   

C#

 
AnswerRe: coding guidelines question Pin
DavidNohejl28-Jul-07 3:43
DavidNohejl28-Jul-07 3:43 
Questioncrystal reports Pin
monuSaini28-Jul-07 0:20
monuSaini28-Jul-07 0:20 
AnswerRe: crystal reports Pin
Rupesh Kumar Swami28-Jul-07 1:44
Rupesh Kumar Swami28-Jul-07 1:44 
AnswerRe: crystal reports Pin
prasanna muthuramalingam28-Jul-07 3:22
prasanna muthuramalingam28-Jul-07 3:22 
GeneralRe: crystal reports Pin
monuSaini29-Jul-07 20:48
monuSaini29-Jul-07 20:48 
QuestionXML Root tag Pin
M. J. Jaya Chitra27-Jul-07 23:13
M. J. Jaya Chitra27-Jul-07 23:13 
Questiondelete a control containing label and textbox while assigning text at runtime Pin
trulyyy27-Jul-07 22:57
trulyyy27-Jul-07 22:57 
AnswerRe: delete a control containing label and textbox while assigning text at runtime Pin
Martin#30-Jul-07 10:38
Martin#30-Jul-07 10:38 
Hello,

trulyyy wrote:
my problem is that when i insert any text in text box and then try to delete my control using DELETE key it will not delete it.

The problem is that the TextBox holds the focus and the KeyDown event of the UserControl doesn't get fired.
You also have to handle the MouseDown of all other Controls (including TextBox) which are on the UserControl.

But anyway, this code is a big mess!
Please try to use meaningfull names, and also use the "pre"-Tags if you post code here on the forum.

trulyyy wrote:
void no_obj_Click(object sender, EventArgs e)
{
c = (NO)sender;
c.KeyDown += new KeyEventHandler(c_KeyDown);
}

If the user Clicks the second time on the UserControl you will have the KeyDown fired twice.

trulyyy wrote:
g.Dispose();

This is a very bad idea, and will have strange effects in your program.
You should not Dispose objects which you have not created.




All the best,

Martin

Questioni have design a controle using following code Pin
cuteAisha27-Jul-07 22:56
cuteAisha27-Jul-07 22:56 
AnswerRe: i have design a controle using following code Pin
Guffa27-Jul-07 23:12
Guffa27-Jul-07 23:12 
GeneralRe: i have design a controle using following code Pin
cuteAisha28-Jul-07 1:39
cuteAisha28-Jul-07 1:39 
AnswerRe: i have design a controle using following code Pin
Luc Pattyn28-Jul-07 2:04
sitebuilderLuc Pattyn28-Jul-07 2:04 
Questionapplication connect to sql data base Pin
prasadbuddhika27-Jul-07 22:43
prasadbuddhika27-Jul-07 22:43 
AnswerRe: application connect to sql data base Pin
Colin Angus Mackay27-Jul-07 23:08
Colin Angus Mackay27-Jul-07 23:08 
QuestionRefreshing a Form Pin
sangramkp27-Jul-07 21:46
sangramkp27-Jul-07 21:46 
AnswerRe: Refreshing a Form Pin
ekynox27-Jul-07 21:49
ekynox27-Jul-07 21:49 
GeneralRe: Refreshing a Form Pin
sangramkp27-Jul-07 21:57
sangramkp27-Jul-07 21:57 
GeneralRe: Refreshing a Form Pin
ekynox27-Jul-07 23:17
ekynox27-Jul-07 23:17 
GeneralRe: Refreshing a Form Pin
sangramkp28-Jul-07 0:03
sangramkp28-Jul-07 0:03 
Questionhi friends Pin
Baljit Singh Grewal27-Jul-07 20:58
Baljit Singh Grewal27-Jul-07 20:58 
AnswerRe: hi friends Pin
Christian Graus27-Jul-07 21:31
protectorChristian Graus27-Jul-07 21:31 
AnswerRe: hi friends Pin
Guffa27-Jul-07 21:57
Guffa27-Jul-07 21:57 
Questionselect from DataBase Pin
Thaer Hamael27-Jul-07 18:10
Thaer Hamael27-Jul-07 18:10 
AnswerRe: select from DataBase Pin
Christian Graus27-Jul-07 18:24
protectorChristian Graus27-Jul-07 18:24 
AnswerRe: select from DataBase Pin
Paul Conrad27-Jul-07 19:44
professionalPaul Conrad27-Jul-07 19:44 

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.