|
Maffyx wrote: but when the solution is built with the assembly name, that's what shows up as the process name,
True. That's the .exe name.
Maffyx wrote: and that's what shows up on the icon to deploy the exe.
I have no idea what you're referring to here.
<blockquote class="FQ"><div class="FQA">Maffyx wrote:</div>I was just wondering if there was the ability to have the icon name different than the assembly name </blockquote>
Again, I have no idea what you're calling the "icon name".
|
|
|
|
|
Let me rephrase, the shortcut name, sorry. So the name that shows up in the process list is different than the one that shows up on the shortcut.
|
|
|
|
|
The shortcut can have any name it want's. That name won't show up anywhere except the shortcut. The name that shows up in the Processes tab will always be the name of the .EXE file the shortcut launched.
|
|
|
|
|
Right, so how to I make the program have a different name on the shortcut than the process? Like when the program builds, the shortcut has a different name than the process. Like say I have a program, it's name is Example, I want the process name to be something like notepad or wordpad, but the shortcut name to be Example. I know you can manually rename the shortcut to the program but I want it to be automatically renamed.
|
|
|
|
|
OK. It sounds like you're using terms interchangably that are not interchangable.
A shortcut is an icon that points to an .EXE or some other executable file. The file itself has it's own filename, ending in .EXE, .BAT, .CMD, or some other extension.
For example, you have a shortcut called "Run My App" on the Desktop. This shortcut is pointing to an .EXE in the Program Files folder called MyApp.EXE. When you double-click the shortcut "Run My App", it launches MyApp.EXE. The .EXE filename is what's going to show up in the Processes tab of TaskManager. It's main window title is what's going to show up on the Applications tab. The shortcut name will not show up anywhere at all.
|
|
|
|
|
Yes, ok, but I'm not worried about where the shortcut name will show up, I just want it to be different than the program exe name, if that makes sense. Like you said, Run my app, and then myapp.exe, how can I make vb do this automatically. Because when I build the release, the program name, and the shortcut name are both the assembly name, which is not what I want. I want the program name to be something like notepad. But the shortcut name to be something like run my app.
|
|
|
|
|
Once again, you're using terms that do not mean what you're implying they do. This makes it very difficult to understand you.
Maffyx wrote: Run my app, and then myapp.exe, how can I make vb do this automatically.
You don't. VB doesn't have anything to do with this. This is a function of the file system.
Maffyx wrote: and the shortcut name are both the assembly name
There is no shortcut built when you compile the app, just the .EXE and supporting .DLL's. The assembly name does NOT shown up anywhere in TaskManager. The filename of the .EXE does. An assembly name is very different than a filename.
If you want the TaskManager Applications tab to show your app's window title, like "Untitled - Notepad", all you have to do is set the form's Text property in your code in an appropriate place.
|
|
|
|
|
|
OK. The first picture has nothing to do with the last two. If you rename the .EXE, the assembly name (short version) will still be "MyProject".
The bottom two pictures cannot be different - ever. The bottom picture is the .EXE filename, but Vista is showing you the name without the .EXE extension. Whatever that name is is going to be what shows un in the second picture. There is no way around that.
BTW: You don't show a shortcut anywhere in these pics.
|
|
|
|
|
So my best bet is just name the exe notepad, and then have it in a folder, and have a shortcut going to it that is just renamed?
|
|
|
|
|
Yep. It doesn't matter what you call the shortcut, so long as the filename is Notepad.exe, that's the way it'll show up in TaskManager's Processes tab.
|
|
|
|
|
Alright thanks, sorry for all the confusion, and wasting your time.
|
|
|
|
|
It's not wasting time if it gets everyone on the same page.
|
|
|
|
|
I am a noobie in programming in VB and I would really appreciate anyones help on a windows form I have to create.
In this application I should be able to enter an infinate amount of numbers into the OPERANDS LISTBOX, when the list box containts at least two numbers, the event handler should then enable the addition and multiplication Buttons. (I GOT THAT NO PROBLEM)
Then I have to define the ADD BUTTON. This event handler should compute the sum of all the values in the OPERANDS LISTBOX and display the result in the resultLabel.
Also need to define the Multiplication BUTTON. I need to compute the product of all the values in the Operands LISBOX and display the result in the resultLabel.
It is either the ADD or Multiplication BUtton, NOT BOTH.
Here is the CODE for the addition handler:
Private Sub addButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addButton.Click
Dim total As Integer = 0
Dim operandCounter As Integer = 0
Dim sum As Integer = 0
Dim addition As Integer = 0
' sum grades in ListBox
Do
sum = operandsListBox.Items.Item(operandCounter)
total += sum 'add sum to total
operandCounter += 1
Loop Until operandCounter >=2
WHen I fill in the list box with more then 2 numbers, it only add the first two numbers. I know I am aware that it is because I have only stated until >=2, but what code should I use if there is no limit to the number of times that a user can input numbers into the listbox???
So far I have only been able to get 2 items in the listbox to compute correctly and display on the listbox using the loop functions until and while, but I have been trying for hours to get this working when I have more then 2 items on the listbox, I know I can just increase the number, but I need to be able to grab all items in the list box and ADD (ADDBUTTON) or MULTIPLY (Multiply BUTTON) and display either one on the resultLabel.
PLEASE SOME ONE TAKE THE PAIN AWAY!
THANKS!
ALex
|
|
|
|
|
Look at the foreach keyword, or the Length property of the Items collection.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Sorry am still lost, can you explain?
|
|
|
|
|
Well, this is obviously your homework, I have you the keywords you need to look at your texts or google, and you gave me a 2 vote, but you want me to hold your hand through it ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
It was an accident. I am new to this site, it was not my intention to give you a two.
Sorry
Oh and by the way, it WAS my homework, I got a grade already, but professor does not seem to have time to tell me what I did wrong, so that is why I am posting it here.
|
|
|
|
|
Weird - seems like you can change your votes now ? You used to be told you'd already voted....
Anyhow, the foreach keyword lets you iterate over items in your listbox. The Length ( or Count ) property lets you know how many items there are. In both cases, this means you can write code that steps over all the items in the collection, instead of your code assuming a set length.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thank you sir, I will try to apply it today and let you know how it went.
Thank you very much for taking the time to explain this.
Alex
|
|
|
|
|
Sorry I don't know how to apply what you stated.
|
|
|
|
|
Loop While operandCounter<operandsListBox.Items.Count
|
|
|
|
|
Loop While operandCounter<operandslistbox.items.count>
|
|
|
|
|
Hi I wonder if anyone could possibly help me before I tear my hair out.
I written an application in vb.net 2008 express. I'm using InnoSetUp to install it. Withing the set up file I've got links to the .net framework 3.5 install and the SQL Server 2005 install.
Installing on my Vista lap top, which I wrote it on, no probs. As soon as I install on my Pc, XP then I get an error stating that there is already a database of that name or this one is installed elsewhere.
I've checked security permissions before install (on Vista) and ensured that users have full permission. However, once on XP machine, users only have Read Only access to my database.
Any ideas how I can stop vista changing the permissions so that clients can alter data in database.
Thank you very much
Kris MCP
|
|
|
|
|
What makes you think Vista is changing it, if the issue is on XP ? You can write the code to make the file not read only, if that is the core problem
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|