Hi, I have created a program e.g. test.exe by C#.net and I want to associate file extension (eg .tst) with the test.exe in the window registry. But I found that most commercial program specifying file type in window registry by CLSID, (so the file type may be opened by the program for the dll specifid by the CLSID) which is only for dll. I have only an exe and I can specify opening the file type in the open subKey in the registry. But how can I specify the file type with a dll(CLSID) which in my case I dont have ? or how can I convert my exe into dll so I can open the file type by the dll ? Thanks
Kim0618
Posts
-
how to associate file type in window registry for c# program ? -
Open folder with file selectedHi, I use the following code to open a folder1 with window explorer and with file1 inside select. But the problem is that if the desktop has a file with the same filename as file1, it will select the desktop file instead of selecting the right file1 in the folder1 ! Why ? Process p = new Process(); p.StartInfo.Filename = file1; p.StartInfo.WorkingDirectory = folder1Path; p.StartInfo.Arguments = "/Select," + file1; p.Start(); Thanks
-
Problem in memory usage in .netThanks for your answer ! But what is the weak reference technique that you have mentioned ?
-
Problem in memory usage in .netHi, I have written a complex program in c#.net. After the program is running for a long time by user interactions, its memory usage will increase to the limit of the system, then error will occur. How can the program alert the user that the memory usage is nearly close to its limit before it goes into error ? I have tried memory garbage collection but the program is too complex that garbage collection cannot clean up the memory usage effectively. Thanks
-
Printer SettingsHi all, In C#.Net, how to choose printer from the window printer list and config the printer selected (e.g. color, page size,...) just like those commercial software packages does when user print document ? Thanks
-
Any good .net obfuscator ?Hi, I want to source for .net obfuscators. Any recommendations ? Thanks
-
Save web page in IEHi, How can I save web page in IE by c# such that it just like one clicking the "Save" button in IE and the web pages will be save in one html plus a folder of its associated images ? Thanks
-
get url from IE and FirefoxHi, How to get the url and webpage name from IE browser and firefox in window with c# ? Thanks
-
Default Web BrowserHi, How can I access the default web browser type(e.g. IE or Firefox), then feed a URL link to it for launching in c# ? Thanks
-
Cannot focus treeNode in a panelNo, setting its the selectedNode and Focus() still cannot get it focused.
-
Cannot focus treeNode in a panelHi, I got a problem in focus at a treeNode of a treeView on a panel by program. Even I set treeNode1.Focus(), the node still can't get focus. There is no problem where the treeView is just on the form without the panel. How to solve it ? Thanks
-
Select a treeNode in a treeViewHi, I just find a problem in getting the treeNode selected and highlighted if the treeView is in a panel rather than in the form directly, the treeNode cannot get the focus. I try to focus the panel also, but it didnt help. Thanks
-
Select a treeNode in a treeViewIt works ! Thanks so much
-
Select a treeNode in a treeViewHi, Is it possible to select and expand a treeNode in a treeView by program, with the treeNode highlighted ? I tried many methods, but none can get the treeNode highlighted while it expand ! I want to emulate the situation where user click the treeNode by program. Thanks Kim
-
file location problemHi, I want to store the location of a file in C# program, but the file may be moved into another location. So besides using the File System Watcher, can I store other information of the file instead of the location, so that the shell or window can recognize the file by the stored info and give me the new location information ? Thanks
-
store file locationHi, I want to store the location of a file in C# program, but the file may be moved into another location. So besides using the File System Watcher, can I store other information of the file instead of the location, so that the shell or window can recognize the file by the stored info and give me the new location information ? Thanks
-
image drag and drop problemThanks for ur reply. The code for the drag drop is void button1_DragDrop(object sender, DragEventArgs e) { object a = e.Data.GetData(DataFormats.Bitmap); this.button1.Image = (Bitmap)a; }
-
image drag and drop problemHi, I find that I can drag an jpeg image from IE to MSWord document, but can't drag an image from IE to a c# window form which has already added with both the dragOver and dragDrop events. But I can drag an the image from MSWord document to the C# window form. Why ? Summary for dragging and dropping jpeg image 1. from IE to C# window form : failed 2. from IE to MSWord : OK 3. from MSWord to C# Window form : OK Thanks
-
Matlab to C# conversionI dont think there are someone being kind enough to convert the code for you as the task will take about 1 to a few days. Instead you may learn C# (easy to pick up) and diy :)
-
ContextMenuStripHi, I associate a multi-level contextMenu to a control by using contextMenuStrip. I associates right-click events for each toolStripMenuItem, so there are many events registered and it seems quite rather inefficiency. Are there any methods similiar to the Toolbar that only one single click event is needed for all buttons in the toolbar ? Thanks