|
I have two icons. One is for the program and the other will be used for the registry file association for the documents used by the app.
How do you have more than on icon image for an executable?
Thanks,
Mark
|
|
|
|
|
As far as I know an icon cannot be specified from a managed dll/exe
|
|
|
|
|
Giorgi Dalakishvili wrote: As far as I know an icon cannot be specified from a managed dll/exe
I'm not sure what you mean. Executables (.exe,.dll) can have many icons (e.g., shell32.dll). In an registry association you pick one using the icon's position.
For example: C:\Windows\System32\shell32.dll,2
I simply want to know how to embed two icons into my application .exe.
Mark
|
|
|
|
|
Mark F. wrote: Executables (.exe,.dll) can have many icons (e.g., shell32.dll). In an registry association you pick one using the icon's position.
For example: C:\Windows\System32\shell32.dll,2
I know that but if I'm not mistaken you can't choose an if the dll or executable was compiled from a .NET language then you can't choose icon from it
|
|
|
|
|
Add them as embedded resources
only two letters away from being an asset
|
|
|
|
|
|
Hi all,
I have a form which does some TIME TAKING file operations. During this I want the progress bar to run. But the whole form hangs as the machine gets busy with file operations.
I tried to use threading as well but dint work.
Can anyone help please .
Thanks,
Deepa
|
|
|
|
|
You should use multithreading. Have a look at BackGroundWorker component in MSDN. It has quite a good example
|
|
|
|
|
Hey thanks, It worked.
It even worked with threading. The catch was to make the thread to work in background
t.IsBackground=true;
- Deepa
Thanks,
Deepa
|
|
|
|
|
Hello,
I would definitelly recommend the threading approach, allthough it didn't completely solve your problem.
Additionally you could try to call "Application.DoEvents()".
Hope it helps!
All the best,
Martin
|
|
|
|
|
you need to activate the method using Threads :
<br />
private void Method1()<br />
{<br />
Thread t1 = new Thread(ThreadStart(Method2));<br />
t1.Start();<br />
}<br />
<br />
private void Method2()<br />
{<br />
}<br />
<br />
to update the progressBar, you need to invoke another method because of the asynchronous call to Method2() what you need to do is thaat:
<br />
if(progressBar.InvokeRequired)<br />
{<br />
progressBar.Invoke(Method3);<br />
}<br />
else<br />
{<br />
}<br />
<br />
Method3() Bans Cross thread
|
|
|
|
|
Hi im making a client server program so i want to disable some applications in windows like (access internet, see my network places etc) from the client until he become authenticated. So is that possible or what ???
Thanks for ur help
Eng/Bahaa
|
|
|
|
|
You want to disable access to internet and network places from within your application? Then don't call any function that uses it until authernticated.
only two letters away from being an asset
|
|
|
|
|
how can i call them in the application after authentication
|
|
|
|
|
only two letters away from being an asset
|
|
|
|
|
Hi All.
Would you please help me, I want to write an application that will
convert a report created with SQL Server Reporting Services to PDF and than email it as an attachement. How do I do this.
Thank You
khuzwayom
khuzym
|
|
|
|
|
|
Thank you, I will try your code.
khuzym
|
|
|
|
|
I have a dataset called ReturnedDataset.
It contains 1 row with 1 cell - how do I reference it ?
In vb.net I would do something like - DataSet21.issues(0).title but I cant seem to find the correct syntax for c#.
Thanks
|
|
|
|
|
DataSet.Table[0].Rows[0][0]
Table 0, Row 0, Cell 0
only two letters away from being an asset
|
|
|
|
|
DataSet.Table["TableName"].Rows[0][0]
Regards
Chintan
www.visharadsoft.com
(Nothing is so purify as KNOWLEDGE)
|
|
|
|
|
Yes, and if you want to go even further it could be
DataSet.Table["TableName"].Rows[0]["ColumnName"]
or if strongly typed
DataSet.TableName.Rows[0].ColumnName
So your point was?
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: So your point was?
Probably this: "I can code better than you can. Nya nya, nyi nya nyaaaa!"
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
If it were you I'd admit it.
only two letters away from being an asset
|
|
|
|
|
C'mon! You're a Code Project MVP! You don't get that for nothing. It means you are great at what you do and you are great at spreading the greatness. (You don't think I over did the "great" thing there, did you?)
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|