|
I would like to have a list of all programs associated with an extension, so that i can display a quick list in a contextmenu (like in windows-explorer).
|
|
|
|
|
You're looking for the Process[^] class. UseShellExecute is a property of the ProcessStartInfo class that is used in the Start method of Process.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
But what is the difference when UseShellExecute is true?
And IS there a possibility for me to get a list of each program associated with an extension?
|
|
|
|
|
c.bartsch wrote: But what is the difference when UseShellExecute is true?
If you don't turn ShellExecute on you have no choice but to launch an actual executable file, not a document file.
c.bartsch wrote: And IS there a possibility for me to get a list of each program associated with an extension?
Sure, you have to parse all of the the registry keys under HKEY_CLASSES_ROOT to get the various pieces of information you need. The problem with this is that there isn't one method, or one location under every key that gives you this information. Various things have to be parsed and other values chased down and followed to find all the information. This is NOT a good idea.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hi
I have developed one windows application ( it is testing application) which is used to test real hardwares.. it has lot thread running in the background that will constantly monitor the hardware communication. Also my application is an touch screen application, so i have used lot of images for buttons. I am facing sometimes the Application is hanging after i ackwnoledging message box during application execution.
During that time... CPU is 100% utilized.. i think if the memory is full..... button click events will not be handled.. (but at that time i could able to open/close other applications )
So how to make my application is very effect in order to avoid these situations. I have tired GC. Objects.Dispose().. but still the problem is there
I am going to try ngen.exe!
any ideas or thoughts are welcomed!
Thanks
srini
|
|
|
|
|
Most likely you have a loop somewhere that is taking some time to execute. Of if it isn't a loop it is just a long running process. Usually when I hear cpu 100% I think of a loop going out of control. Anyway, I would look for something like that. Next you if you do have a long running looping process you can every ten loops or every 100 loops do an Application.DoEvents() This will allow the processing of click events and refresh the form.
Hope that helps.
Ben
|
|
|
|
|
hi all
i made double buffering in a form with
this.DoubleBuffering = true;
but this is not working in the tab so i wanna to know how to make double buffering by using Bitmap to enhance performance by drawing in memory as bitmap and then draw my background in the bitmap and draw bitmap again to the screen
can any one tell me how to begin search how to use this technique
thanx
Generator
|
|
|
|
|
I think SetStyles is the method you call, turn on double buffering and all drawing in WMPAINT.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi,
i tried this but the tabPage doesnot contain method setStyle
iam making a method now to use BufferedGraphics,
BufferedContext,BufferedManager
to draw to buffer then draw to TabPage
but iam still trying this and also if there is any method easier
thanx
Generator
|
|
|
|
|
public void tab_Paint(object sender, PaintEventArgs e)
{
TabPage tab = (TabPage)sender;
BufferedGraphicsContext context;
BufferedGraphics buffer;
// context = BufferedGraphicsManager.Current;
/// Dedicated context
/// used when highly animated graphics
context = new BufferedGraphicsContext();
Graphics grfx = tab.CreateGraphics();
buffer =
context.Allocate(grfx, tab.ClientRectangle);
drawSurfaceToBuffer(buffer.Graphics);
buffer.Render(grfx);
buffer.Dispose();
grfx.Dispose();
}
public void drawSurfaceToBuffer(Graphics bufferGrfx)
{
/// some processing that used the buffer grfxs
}
this code i understand it from MSDN and write it to reduce Graphics Flicker but it does not make any thing at all also it make my background of tabpage black and the original is white
is there any suggestions please
Generator
|
|
|
|
|
Hi friends.
I want to make something like a blog which people can see the posts and send a comment...
others can also see comments ...each post of the blog should have a different commenting page.
I know how to write the code for posting ... but I dont have any idea about commenting.
I want to write the code for posting with datagrid ...
but how to write the code for comment ? please tell me and give me idea.
each post is shown in a row of a daragrid,one aftar each other.
but where should I put the commenting link ? in the datagrid ??
I want to have the commenting link under each post and by clicking the link,people
redirect to another page for sending the comment to that post.
how should I do it?
thank you so much
|
|
|
|
|
There are many pieces of open source blog software. Why not look at the way they work?
|
|
|
|
|
tell me one of the open sources please...
I want to try it my self but if you know any open source which I can understand it,plz tell me
thanks alot.
|
|
|
|
|
sanaziuse wrote: tell me one of the open sources please...
Subtext is the name of one open souce blog software.
|
|
|
|
|
yes thank you but ay other ideas to write it myself?
please read my first questio and help me ...
bye friends
|
|
|
|
|
sanaziuse wrote: but ay other ideas to write it myself?
That would take too long in a forum post. That is why I suggested that you read the source code in an open source project.
sanaziuse wrote: please read my first questio and help me ...
I did as best as can be done in a forum post. The quantity of information that would need to be imparted to you is too much for a forum. Please download the code for blog software and read it.
|
|
|
|
|
You're asking far too much here. If you really have no idea how to start, then give up ( for now ) and learn through a simpler project. Buy a book and work through it.
You're essentially asking us to write it. Get to a point of being able to try, and ask specific questions, and we'll be glad to help.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am using VS.Net 2005
the DataGridView i use it has a ComboBox column
(Disply Member is Product Name but Value Member is Product ID)
i have a nother column for BarCode i want when i insert the BarCode Number in this column the value member of the combobox chenge and disply the product name of this value
this is the code i wrote but it doesn't work
private void GV_OrderDetails_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
try
{
if (GV_OrderDetails.CurrentCell.ColumnIndex == 6)
{
string BarCodeText = GV_OrderDetails.CurrentCell.Value.ToString();
if (BarCodeText.Length > 4)
{
DV_Pro.RowFilter = "Pro_ID='" + BarCodeText.Substring(0, 4) + "'";
GV_OrderDetails[2, GV_OrderDetails.CurrentRow.Index].Value = BarCodeText.Substring(0, 4);
}
}
}
catch
{ }
}
MD_NADA
|
|
|
|
|
I'm writing an application that prints cassette and cd labels. One major problem I'm running into is that I'm getting varied results on the alignment when data is sent to the printer. Shouldn't I be allowed to draw a line 50 points from the left and it come out 50 points from the left? Right now it is very close but I still get about a 5 point difference between printers. Does anybody have something else that I should be looking at? I am wanting consistency among All printers!
may your code be error free
|
|
|
|
|
EnableAutoDragDrop=true; and DragDrop not work first time ! Please help me ! costelpislac@yahoo.com
Costel Pislac
|
|
|
|
|
How can I convert a value taken from a Xml file into a time value? Please help.
|
|
|
|
|
Take a look at the DateTime.TryParse and DateTime.TryParseExact methods.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I appreciate your reply to my letter and apologize to each team for
Code Project , but I want you to forgive the first time I participate in the Forum and ask you to answer my question as understand it
I did not mean to Select * from [TableName] Where TableNme.ColumnName OR (And) TableName.AnotherColumn
-- modified at 10:44 Saturday 28th April, 2007
|
|
|
|
|
There is no 'team' at code project, it's a world wide community.
mahmoud wafy24 wrote: ask you to answer my question as understand it
mahmoud wafy24 wrote: I did not mean to Select * from [TableName] Where TableNme.ColumnName OR (And) TableName.AnotherColumn
Let me translate this for you.
You asked something several times, I pointed out the only interpretation I could see that could make sense of what you seemed to be saying, now you're saying the following:"
'I didn't mean for you to answer the question that I asked ( badly ), so please answer the question that I have failed to ask'.
We have no idea what you're asking. Try explaining it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello!
I'm trying to use SslStream to connect to server trough SSL. I have take example from Microsoft, modify it for my needs, but I can't use this code.
IOException (Received an unexpected EOF or 0 bytes from the transport stream.) are thrown in function AuthenticateAsClient
See code below
<br />
string Certificate = @"D:\ca.cer ";<br />
<br />
<br />
X509Certificate cert = new X509Certificate(Certificate);<br />
X509CertificateCollection certc = new X509CertificateCollection();<br />
certc.Add(cert);<br />
<br />
<br />
TcpClient client = new TcpClient("dev.com", 443);<br />
SslStream ssl = new SslStream(client.GetStream());<br />
ssl.AuthenticateAsClient("dev.com", certc, SslProtocols.Ssl3, true); <br />
<br />
What is incorrect in this code and what is meaning this exception.
This is not AuthenticationException, then authentication success or not?
Thanks for answers!
|
|
|
|