|
I need to change the icon of the resulting .exe for my application programmatically at runtime. The path to the icon will be read form a file. I know it's possible to change the icon through: Project >> Properties >> Common Properties >> General >> Application Icon. I was reading at msdn to find the answer. It seems possible to change it but I just couldn't understand how. If anyone has done this before any help would be appriciated.
I'm using Microsoft Visual Studio .NET 2003 and .NET version 1.1
|
|
|
|
|
If you look in the code that the designer generates you should see the statement that sets the icon, use that.
|
|
|
|
|
Doesn't seem that changes made in project properties are written to the designer generated code as far as I can tell.
|
|
|
|
|
Anyone pls help?
-- I've built an application that would deal with own associated files.., had done providing default icons, file type, and etc. Everything works well by clicking or selecting a single file, my application runs and accepts the parameter which is the full path of the file itself..., but the problem is, when i try to load multiple selected files, when i do that, multiple instances of my application starts each having a single file to open... Though i'm using a string array in the main function of the application, it just loads a single parameter not an array of parameters..., I've used functions to access the registry, and used "%1" as an Argument, so maybe that could be the main problem....
-- Is there anyway i could change this to other values to attain multiple file entries with one instance of my application? Such as Windows Media Player enlisting all files when you use Ctrl+A in a directory of music files...,
----Thanks a lot in advance!!!!
|
|
|
|
|
Perhaps you could acquire a mutex with the first instance of your application. Then, successive attempts to open a duplicate of your application would see that the mutex is already acquired (meaning you have 1 instance of your app already running), and you could send the file path to that instance, then exit the new one. Hope this helps,
-Jeff
|
|
|
|
|
I'm sorry, can you pls elaborate? M not sure i got it...
===sorry, just a little of a beginner man(Jeff).
|
|
|
|
|
Dear friends,
Good morning.
I have developed the application using Microsoft visual studio 2005 in C# 2.0 Windows, console and Windows Service Project in One solution file.
Now I have added one more project called Setup from Setup Project Template.
My client has required multilingual installation setup and custom program EXE selection in single setup.
How can I implement this functionality in Visual Studio 2005?
Thank you.
B.Sundarapandian
|
|
|
|
|
hi all
can anyone tell me what properties should be set to alter the form controls when the form gets resized.can i use anchor and dock properties that are used in windows application in web based application also..
pintoo
|
|
|
|
|
Use table layout for best results. The property you need to set is "anchor".
Until you realize this message has nothing to say, its too late to stop reading
|
|
|
|
|
Hi,
i want to add a image to the selected text area in the multiline textbox.
can anybody help me regarding this...
|
|
|
|
|
Possibly the easiest way would be to subclass the control and handle the onpaint method to draw in your own image.
|
|
|
|
|
An image in a textbox? Sounds like you need a RichTextBox .
Cheers,
Vikram.
"If a trend is truly global, then that trend ought to be visible across ANY subset of that data" - fat_boy
|
|
|
|
|
|
Hi guys,
I have one panel and one picturebox in panel.Here picturebox exceed panel height.Now, I wanna to move scroll thumb downward on
click of button to let user see the other areas of picturebox.
I have written one code in button_click event
panel1.VerticallScroll.Value+=5;//5 indicate moving thumb by 5 pixel.
I am getting some awkward output.In first click I can move picturebox top by 5,in second click verticall scroll bar get incremented by 5,in 3rd I can move picturebox top by 5,in 4th click verticall scroll bar get incremented by 5.
can any one tell me why it so...I want both to be done in one click.
pls reply
thanks in advance.
Regards
Chintan
www.visharadsoft.com
(I am thinking to change humans to computer, but unfortunately GOD will not give me the source code)
|
|
|
|
|
Try adding panel1.Refresh(); to update it after you change the scroll bar, it might help.
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
On the KeyDown event in a DataGridView I want to open a context menu
using the Apps key, something like: if (e.KeyCode == Keys.Apps) then
show the context menu by the selected row. The problem im having is how do I get the right position for the selected row to send in to the contextMenu.Show() method.
When using the MouseUp event I can just use the MouseEventArgs (e.Location) to position the context menu by the selected row: contextMenu.Show((Control)sender, e.Location); Anyone know how I can accomplish this for a keyboard event?
|
|
|
|
|
Hi,
How to disable/remove "Delete-Key" on dataGridview?
Thank you
(Riaz)
|
|
|
|
|
You could override PreProcessMessage method
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData.Equals(Keys.Delete))
{
// return true to tell the caller,
// that the message was processed by this control.
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
or simply set AllowUserToDeleteRows to false
|
|
|
|
|
How can i create office 2007 rtf control?
Office 2003 rtf and normal rtf can't support some unicode system.
Zippy Pack
|
|
|
|
|
Actually I am using an image when the mouse is over on the image i want to increase the size of image,like zoom effect, and it increase the original size of the Image control and it will half appear outside of my form.
|
|
|
|
|
No you can't. The form which is the container of your control is like a piece of paper. Your picture can only be drawn within the boundary that your canvas allows. You could end up scribbling on the desk, but GDI+ doesn't like that
Daniel Minnaar
Lead Software Developer
|
|
|
|
|
I have 2 projects coming up that require me to use existing map/floorlayout, certain areas must them be identified by the user. Lets say Room1, Room2, etc. Those areas should then be saved and either allow the user to select them (identifying which area was selected) and colour (fill) them in order to show "occupied" for example. (It will be done in WinForms .NET 2.0)
Honestly have never done something like this and was wondering what tips and pointers my fellow CPians could give me
Francois
modified on Tuesday, December 04, 2007 1:37:55 AM
|
|
|
|
|
Do one thing
Create Two variables for 1) for room no 2) for color
Now the user prompt the user to select the room and color
that work you can access by four button or chick box
When the user select the check boxes now you should generate an event which will take the color and room no as argument that you will handle through the coding the custom color and room.
|
|
|
|
|
Sorry maybe I was not clear enough
These rooms must be visualy defined. For example the client will scan in a floor layout of a building. Then by "drawing" on this scanned image define where "Room1", "Room2" etc are in terms of location and size.
Then a user must be able to click on a area and the application must then identify the click; i.e. whether the user clicked in "Room1" or "Room2" on the image. Also it needs to display the image with (for example) "occupied rooms" being shaded, indicating they are unavailable.
Hope that helps...? We are talking about images and GIS kinda stuff here ... I think
|
|
|
|
|
You're basically going to have to translate the mouse click location into a position on the map. This means that behind the scenes, you are going to have to translate each room into a set of extents and then see which extents the mouse click is in.
|
|
|
|