|
All that I was saying was that your SELECT statement only specified 3 columns,
SELECT [ID],[Magasin],[qtyonhand] from stocks where ID like @txt
If there are more columns and you want them all, then, it should just be
SELECT * FROM ...
|
|
|
|
|
thank you.
I know the command.
I just want these 3 columns.
|
|
|
|
|
I am in Vietnam,I write music programs in C #, you use the library Quarzt.dll, mp3 program runs fine, but on an mp3 file you have not been run, the file was restless at first error, but the program offers mp3 file that I wrote and then run through another machine and another machine is not one of the songs I like computer (note: the program's window mediplayer mp3 songs now normal).
FilgraphManager.RenderFile (URL file); fault line immediately following nay.va error error Exception from HRESULT: 0x80040218.
I have been searching for this error results only know "the error is not due to a combination of graphic filters." Finding forever do not see a fix. expect people to help. And now she wants to do one more run flv file you ask for small documents. Thank you very much!.
|
|
|
|
|
It looks like you used translate.google.com to translate this. It does not make a lot of sense in English.
Có vẻ như bạn đã sử dụng translate.google.com để dịch này. Nó không làm cho rất nhiều ý nghĩa trong tiếng Anh.
|
|
|
|
|
Now I know how our geek speak must sound to normal people.
|
|
|
|
|
I know my level of english poor people understand. please help me solve the problem. thank you very much.
|
|
|
|
|
|
First of all, good luck with your article in the competition. Secondly, the CP staff tend not to frequent this forum. You'd be better off posting it here[^]. Third, providing the votes weren't all coming from the same IP address (i.e. people were voting from home) then I doubt that Chris and co would have a problem with this; if they all come from the same IP address then the voting might be viewed as suspicious, especially if they are all new members.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Thanks for the reply, and thank you for the support I was a little shocked to see it getting nominated as I always looked up to the CodeProject members as Programming gods. Always a little nervous about if it was good enough so this has been great for me so far! I deleted the message and posted it over at the Site board now.
|
|
|
|
|
|
They already informed me of this on my other message on the Site / Bugs & Suggestions forum. It will not happen again
|
|
|
|
|
I have a service reference .svc written in c# .net v3.5 and I want to view the SOAP request/response message.
Is it possible?
Thanks
|
|
|
|
|
If you want to see the wsdl, type in your service uri follow by ?wsdl in your browser.
If you want to actually view the data going across the wire, use a tool like fiddler.
|
|
|
|
|
access the events of class using its object. how to do this?
|
|
|
|
|
MyClass myClassInstance = new MyClass();
myClassInstance.EventName += new EventHandler(MethodToHandleTheEvent);
...
private void MethodToHandleTheEvent(object sender, EventArgs e)
{
... handle the event
}
I have learnt that you can not make someone love you, all you can do is stalk them and hope they panic and give in.
Apathy Error: Don't bother striking any key.
|
|
|
|
|
ur codez not compile. plz fix asap. u not gr8!
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
You should upgrade to VS2012 - .NET 5.0 has full support for the ellipsis automatic code generation command "..."
I have learnt that you can not make someone love you, all you can do is stalk them and hope they panic and give in.
Apathy Error: Don't bother striking any key.
|
|
|
|
|
Hi
I am having button on form in C#. It does take 2-3 seconds to complete the operation meanwhile the button is disabled. But if the user clicks on that button when it is disabled, after completion of first operation it will again try to execute the handler again. how should I avoid the execution of event handler when the button is disabled?
here is the code snippet:
public partial class Form1 : Form
{
int i = 0;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.button1.Enabled = false;
System.Threading.Thread.Sleep(3000);
i++;
this.label1.Text = "Total Calls: " + i.ToString();
this.button1.Enabled = true;
}
}
when the button is disabled and you click on it, you can see the count gets increased.
Please help
|
|
|
|
|
You can unbind the click event at the
time of disabling the button.
Try following code..
button1.Click -= new System.EventHandler(this.button1_Click);
And you can rebind the click even on making it enable.
button1.Click += new System.EventHandler(this.button1_Click);
Hope this will help!
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Tried but no success still the same behavior
The event handler now looks like this:
private void button1_Click(object sender, EventArgs e)
{
this.button1.Enabled = false;
this.button1.Click -= new System.EventHandler(this.button1_Click);
System.Threading.Thread.Sleep(3000);
i++;
this.label1.Text = "Total Calls: " + i.ToString();
this.button1.Enabled = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
}
still count is increasing if I click disabled button
|
|
|
|
|
Add an if ( this.button1.Enabled ) ?
|
|
|
|
|
Tried that also. The problem is that the event handler is getting called after first execution and at the end of it I am setting this.button1.Enabled = true;
so this is not going to solve my problem..
|
|
|
|
|
Are you only clicking the button once?
Have you attached the handler more than once?
|
|
|
|
|
I have not attached the handler more than once.
After first click the button is disabled for 3 seconds when I click on the disabled button somewhere it is queuing that event and after execution of first event handler it is calling that event handler again that I don't want as I clicked on disabled button.
I don't know how to attach the file here. PM provide me your email id I'll send you the test application I created to reproduce the problem.
|
|
|
|
|
Hi,
it does not work like that. Those Enabled changes will take effect only after your handler finishes, and putting a Thread.Sleep in a handler is a big no no. A handler should never last more than some 10 milliseconds, your app's GUI should remain responsive at all times. What you need is either another thread (assuming the Sleep is emulating some real action), or a timer (assuming you really just want a delay).
For timers, your best bet would be a System.Windows.Forms.Timer; you disable the button and launch the timer inside the button click handler, then re-enable the button and stop the timer inside the timer's tick handler. Works like a charm, without blocking anything but the button itself.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|