Changing Extension Icon Programmatically
Jul 28, 2009How do I change the icon of an extension using VB.net code?
View 2 RepliesHow do I change the icon of an extension using VB.net code?
View 2 RepliesChanging .EXE Icon Programmatically
View 9 RepliesI've just changed the Icon for my application in the project->Properties->Application tab. However when running it's still the old (small) icon in the taskbar. How is this changed?
View 4 RepliesCurrently I have made an extension .otxt it reads text files but i want to make an icon for it like in MS Office the .docx has a word document icon in it, I want the same to happen in my extension
View 2 Repliesi have creaed an aplication with my extension can any one send source code how to save file with my icon at {REMOVED}
View 1 RepliesHow To Change Icon Of An Extension? example : My Custom Extension Is .tmc
View 4 RepliesUsing Visual studio 2008, I have an application that its data can save to a binary file, using *.SDB extension, Moreover users can open this file from my application. I have 2 questions about this.
1-How can I assign an icon to this saved file with SDB extension when my application has been installed in other computer?
2-Similar to *.sln file (for Visual Studio project), How can I assign tow icon to single extension?
how do you change a file or folder icon programmatically
View 1 RepliesIs it possible to change the icon of my app in runtime?
View 8 Replieshow do you change the Icon in the top left of a form? I tried to change it and it couldn't find any of my pictures. Do they have to be a particular size or file type?
View 15 RepliesI'm trying to change the default icon of my program to something else. Specifcally, the one that is associated with the executable file.I was under the impression that if you set the icon property on the main form, that it will carry over to everything else. when I try to set the icon, I get an error message stating that "The arugment 'picture' must be a picture that can be used as an icon. I have a 32x32 icon that is saves as .ico but it doesn't work.
View 10 RepliesI need to change my .exe's icon easily without having to rebuild it unless I can compile my code AND change exe through command line.
Reason for needing to change exe is for a small game creator so everyone doesn't have same exe.
I am trying to load a icon from a path and set it as program icon any idea how to do that .
View 1 RepliesI am using Visual Basic 2010 Express. I want to put an icon my Application to make it look better instead of the regular [IMG]C:Documents and SettingsJake EhrmanDesktoppost 1[/IMG]
I have the picture saved as an .ICO so i can insert it but i want it like this... [IMG]C:Documents and SettingsJake EhrmanDesktoppost 2[/IMG] how would i go about changing the icon for the project file?
I am writing a program, and it worked just fine, then I changed the icon on the program and I get an error when I try to run the program. Attached is the window that I get when I debug the program.
View 3 RepliesHow do i change openfiledialog icon? I have looked on google and theres only custom openfiledialog.
View 11 RepliesI am trying to change an objects location programmatically. I have the line: Trackbar1.Location.Y=100 but recieve the error: Expression is a value and therfore cannot be the target of an assignment. Does anyone know how to get around this?
View 2 RepliesI work with VB.NET 2005 and I want to set the application EXE name according to a certain condition. For example:
I have a variable its name Version
If Version = 1 EXE name will be CarsApp
Else If Version = 2 EXE name will be BuildingApp
and so on.
I have an application that needs to run at a particular screen resolution. How do I detect current screen resolution and then change it if it needs to?
View 4 Repliesi need to know how i can include many icon files into my excutable file or in dll file as i have witnessed in many applications and how i can tell my application to choose specific icon that included in that exe file or dll lib. really i dont have any idea about this topic and i hope to find the right ansewer in this amazing fourms.
View 12 RepliesIs there some way of programtically changing the culture for a multi form application on startup so that the application will interpret date formats correctly. For example if the aplication runs on a machine with a en-US culture it would be able to take a date from a database in the MM/dd/yyyy format and convert it to a date object and when the same application runs on a en-GB machine it can take that same MM/dd/yyyy date and convert it into a date object without getting a date format exception.
View 4 RepliesI am attempting to use the VB.Net Excel COM interop to programmatically change the location of the first horizontal page break on an Excel spreadsheet being generated by the program. Code to do so is as follows:
Dim range As Excel.Range
xlActualWS.Activate()
xlActualWS.PageSetup.PrintArea = "$A$1:$K$68"
[code].....
I have ASP gridview bound to an Entity Data source which works no problem, however when I try to programmatically change a header columns text, it appears to break the styling and will not allow sorting either, below is how I am trapping and changing the Header row column text.
Protected Sub gv1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gv1.RowDataBound
If e.Row.RowType = DataControlRowType.Header Then
'retrieve the values from the userdeftable
e.Row.Cells(6).Text = App.Session.Company.UserDef3
End If
End Sub
Why would I use an extension method instead of just creating non-extension sub or function?
For ex, I could have an extension function called IsNullOrEmptyOrAllSpaces on String, which does a check as its name implies. Or I can write a stand alone function that does the same thing. Other than having the extension show up in Intellisense, is there any advantage? Is a call to the extension quicker/more efficient than a call to a regular function?
I saw this post and I want to know if this is possible in VB. So like extension method, do extension properties exists in VB.Net? Here I've read they do, but cannot find any examples.
View 3 RepliesIf i have an extension ... say...
vb
<System.Runtime.CompilerServices.Extension()> _
Public Sub Invert(ByVal b As Bitmap)
is there any way of hiding this from inteli-sense if it is not used as an extension?so that pressing ctl+space only triggers it if you go "bitmap.Inve.." rather than prompting on "Inve..."?
I currently have the following code but I would like to get away from going to a physical location. If I have the icon as a resource, how can I programatically add the icon? I don't want to use the form's designer to do this.
Sub Form1_Load()
Dim ico As New System.Drawing.Icon("C:Resourcesicon.ico")
Me.Icon = ico
End Sub
My application icon looks ugly-like a paper and i would like to change it to something like globe icon or any suitable image.Am programming using visual studio 2005 and the program is written in vb.net.
View 1 RepliesI'm not sure exactly if the folder icon is in shell32.dll, but nonetheless if it is.Basically, whenever I come across a folder in a FileSystem list, I want to add the icon for a folder to the image list that I am using for the ListView. The problem is that I'm not sure how to reference a specific icon location in a icon collection in a dll.Is this possible with Icon.ExtractAssociatedIcon and shell32.dll?
View 14 RepliesGot an annoying issue it's Visual Basic 2010 I changed icon where the assembly name.I got a good icon it has lots of sizes, or I tried diff sizes like 64x64 128x128 nothing seems to work I only see the icon when i do View > Details so it's small icons in the folder, but if i have view large icons It doesn't work. I even used the same icon on VS 2008 and it worked.
View 1 Replies