Click here to Skip to main content
16,017,638 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to implement multilevel inheritance in c#? Pin
Steve Hansen28-Nov-07 4:24
Steve Hansen28-Nov-07 4:24 
Questionset Transparency of pictureBox.Image. Pin
hdv21228-Nov-07 0:13
hdv21228-Nov-07 0:13 
AnswerRe: set Transparency of pictureBox.Image. Pin
Christian Graus28-Nov-07 0:16
protectorChristian Graus28-Nov-07 0:16 
GeneralRe: set Transparency of pictureBox.Image. Pin
Anthony Mushrow28-Nov-07 2:09
professionalAnthony Mushrow28-Nov-07 2:09 
AnswerRe: set Transparency of pictureBox.Image. Pin
Anthony Mushrow28-Nov-07 2:11
professionalAnthony Mushrow28-Nov-07 2:11 
GeneralRe: set Transparency of pictureBox.Image. Pin
MikeWeber25-Jan-08 11:14
MikeWeber25-Jan-08 11:14 
QuestionThread expection Pin
Scalee28-Nov-07 0:11
Scalee28-Nov-07 0:11 
AnswerRe: Thread expection Pin
Bekjong28-Nov-07 1:17
Bekjong28-Nov-07 1:17 
Why not add a locker to force the method to never execute more than once at a time? All you need is a locker object:

<br />
object locker = new object();<br />
 private void opg_filter_functie()<br />
{<br />
lock(locker) {<br />
//check if textbox isnt empty<br />
if (opg_filterbox.Text.Length > 0)<br />
{<br />
try<br />
{<br />
opg_tv_filter.Nodes.Clear();<br />
//sql injection causes error fix<br />
opg_filterbox.Text = opg_filterbox.Text.Replace("'", "");<br />
//create query<br />
<br />
SqlDataAdapter dAdapter = new SqlDataAdapter("SELECT artiestNaam FROM artiest where artiestnaam like '" + opg_filterbox.Text + "%'" ,sqlcon);<br />
DataSet dataset_filter = new DataSet();<br />
<br />
<br />
dAdapter.Fill(dataset_filter); //crash here if typing to fast <br />
}


Standards are great! Everybody should have one!

Questionsave list to excel file Pin
ramyanaidu28-Nov-07 0:03
ramyanaidu28-Nov-07 0:03 
AnswerRe: save list to excel file Pin
Christian Graus28-Nov-07 0:18
protectorChristian Graus28-Nov-07 0:18 
QuestionSetting the class name Pin
I_Need_Help27-Nov-07 23:57
I_Need_Help27-Nov-07 23:57 
QuestionContextMenu on a ToolStripMenuItem Pin
Johan Martensson27-Nov-07 23:46
Johan Martensson27-Nov-07 23:46 
AnswerRe: ContextMenu on a ToolStripMenuItem Pin
Nouman Bhatti28-Nov-07 0:53
Nouman Bhatti28-Nov-07 0:53 
GeneralRe: ContextMenu on a ToolStripMenuItem Pin
Johan Martensson28-Nov-07 19:34
Johan Martensson28-Nov-07 19:34 
QuestionHow to generate excel sheet in aspx page Pin
mrcsn27-Nov-07 23:27
mrcsn27-Nov-07 23:27 
AnswerRe: How to generate excel sheet in aspx page Pin
Christian Graus28-Nov-07 0:19
protectorChristian Graus28-Nov-07 0:19 
QuestionCalling a method from another form Pin
Deques27-Nov-07 22:51
Deques27-Nov-07 22:51 
AnswerRe: Calling a method from another form Pin
m@u27-Nov-07 23:05
m@u27-Nov-07 23:05 
GeneralRe: Calling a method from another form Pin
N a v a n e e t h27-Nov-07 23:50
N a v a n e e t h27-Nov-07 23:50 
QuestionRe: Calling a method from another form Pin
Deques27-Nov-07 23:51
Deques27-Nov-07 23:51 
AnswerRe: Calling a method from another form Pin
m@u28-Nov-07 0:08
m@u28-Nov-07 0:08 
AnswerRe: Calling a method from another form Pin
N a v a n e e t h27-Nov-07 23:48
N a v a n e e t h27-Nov-07 23:48 
QuestionRe: Calling a method from another form Pin
Deques27-Nov-07 23:54
Deques27-Nov-07 23:54 
AnswerRe: Calling a method from another form Pin
Anthony Mushrow28-Nov-07 0:02
professionalAnthony Mushrow28-Nov-07 0:02 
AnswerRe: Calling a method from another form Pin
N a v a n e e t h28-Nov-07 0:08
N a v a n e e t h28-Nov-07 0:08 

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.