|
thank you so, much, i forgot about the events in the web browser control, i was looking at the progress bar control. but thank you both for the help.
|
|
|
|
|
Hello,
When I press Ctrl+C in my DataGrid the exception is thrown, hoever if I right click the cell and select Copy from menu, evrything works fine. Any ideas?
Thank you.
|
|
|
|
|
to help other to help you provide more detail about your problem like what is the exception you got?
MCAD
|
|
|
|
|
Hello,
I have to to make a header like the following:
============================================================================
-----|--------------|--------------1st Option-------|-----2nd Option-------|
ID---|---Name-------|---------- Rate | Provider --|-- Rate -|- Provider -|
============================================================================
1 ABC .43 PQR 0.54 LMN
2 DEF .32 JKL 0.12 STU
...............
...............
Rest of the Data
................
................
does anyone have some idea how to create a header like the one shown above?
Thanks in advance...
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
Try to create a custom control header....
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/header/header.asp
G
|
|
|
|
|
|
I was thinking of reusing the DateTimePicker control with another calender but i couldn't find a way of doing it, is there any way to make the DateTimePicker to use another calender than the gregorian calender.
To select a date of preference, that would normally be shown as today's date in a circle and the caption @ bottom that reads "Today 10/08/2005" to a string of preference ??
Any Help guys??
|
|
|
|
|
I'm afraid you can't because DateTimePicker and MonthCalender are microsoft comon control which reflect Local user setting so to use differnt culture you need to Change it from Regional and Language Options dialog
box even if you change CurrentCulture or CurrentUICulture
It will not work
MCAD
|
|
|
|
|
Hello,
If I have a messagebox with two buttons OK, and Cancel. How do I catch which button the user presses?
Thank you
|
|
|
|
|
DialogResult result = MessageBox.Show(...);
if(result == DialogResult.OK)
{
}
else if(result == DialogResult.Cancel)
{
}
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Homosexuality in Christianity
Judah Himango
|
|
|
|
|
Thank you
That's perfect.
|
|
|
|
|
I have a form with a label (name = labelStatus) that I would like to update during a lengthy process (e.g. while scanning all files on drive - show filename).
<br />
void TimeConsumingMethod()<br />
{<br />
string fileName = "C:\Temp\A.txt";<br />
<br />
labelStatus.Text = string.Format("Searching {0}", fileName);<br />
<br />
<br />
<br />
}<br />
It doesn't seem to update the label until the method finishes. I've tried to invalidate the form after setting the new text, but that really doesn't make a visible difference. How can I accomplish this?
--G
|
|
|
|
|
As far as i know you have to update the label your self:
labelStatus.Text = "The stuff you want";
labelStatus.Update();
or:
labelStatus.Text = "The stuff you want";
labelStatus.Update();
this.Update();
and finally you can write the following before the lenghty process starts:
Application.DoEvents();
Hope it works!
|
|
|
|
|
zagzagzag wrote:
Hope it works!
Thanks -- this worked perfectly.
|
|
|
|
|
How can I set the focus to the tree node when it is right-clicked?
|
|
|
|
|
Listen for the mouse down event. In the mouse down event handler, check if the right mouse button is down. If it is, call treeView.Focus().
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Homosexuality in Christianity
Judah Himango
|
|
|
|
|
Hello,
I want to import a c# dll in a vc mfc project. can you help me?
Thanks,
mihai
|
|
|
|
|
|
hello
Thanks for ideea. With a tlb file i can import it in a vc mfc project. At compile it create a tlh file (something like a .h file). there i can see my class (from dll), but the problem is that i can't see the methods for this class. how i can use this methods?
i test same with a vb activex dll. there i can import dll directly (don't need tlb file), he create same tlh file, but there i can see class and methods, too. i can used them and it's work.
for c# dll how can i use the methods?
Thanks,
Mihai
|
|
|
|
|
Hello, I am "new" if you will to C# (it was suggested to use it, however I am very familiar with C++ and .NET) and I was wondering if there is a way to play a video that is embedded as a resource. I searched the web and found DirectShow, however this requires a path name. I would like a video to be wrapped up inside the .exe. Is this possible?
Mike - I love to program!
|
|
|
|
|
You should be able to embed the video as a binary resource. VS2005 allows you to put any resource into the application from the IDE, which you should be able to get it out using as a stream of bytes from code.
Once you've got a stream, the Windows Media SDK or DirectShow, or ManagedDirectX, or similar should be able to play the stream.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Homosexuality in Christianity
Judah Himango
|
|
|
|
|
Unfortunately, I do not have VS2005, just 2003. Would it still apply?
Mike - I love to program!
|
|
|
|
|
Yeah, it can still work. As far as I remember, it was a little difficult getting this to work with 2003 and 2002. Try searching code project or the web for binary resource or embedded resource.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Homosexuality in Christianity
Judah Himango
|
|
|
|
|
I can get the file into a stream using reflection, however I can not find a function that will play a video from a stream, but rather from a path name. Is there something I need to download. Thank you very much for your help.
Mike - I love to program!
|
|
|
|
|
I really don't know, as of right now, the .NET framework doesn't provide any way to play video using native .NET, AFAIK. You need some 3rd party software like the ones I mentioned in the previous post. From there, it's a matter of finding the appropriate streaming methods.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Homosexuality in Christianity
Judah Himango
|
|
|
|