|
You should know what your app requires to run. After all, you wrote it!
But, as a general rule of thumb, from the files in the Bin\Release folder, you don't need:
*.vshost.*
*.pdb
myApplicationName.xml
Everything else, you probably need.
|
|
|
|
|
|
I have a vb6 application that contain various drop down menus.
Some user has not permitted to access some menus.
For the purpose Logged in as administrator and list all menus in the application and select a user and check or uncheck whether this user access that menu.
But how can I list all menus in the application without manually enter menu name ? Because when we add new menu in the application, I manually add these menu name in list. And If menu no is 100 or 150 then it is difficult to enter the menu name or control them. So I want the code for list all menus in the application automatically. Please help me.
|
|
|
|
|
I'm a little confused to where you refer to drop down controls and drop down item. but the item once can be done pretty easily by code
dropdownbox.items.add("object, a string as name for example")
with a loop and some if/else statements you should be able to filter what you add by the users permissions.
|
|
|
|
|
Enumerate all objects of type "Menu" in the form and add it to a list from where an administrator can decide to grant permissions.
For instance:
for each myControl in myForm.Controls
if typeOf myControl is Menu then
and so on...
|
|
|
|
|
<pre lang="sql">Ok. thats working.
Then my next doubt is how can I identify main menus and sub menus</pre>
|
|
|
|
|
I'm starting in my intro to programming class. New to this side of computers. My teacher isn't much help so I"m falling behind. Can't get rid of the errors in my code. Pseudocode is supposed so simple from what I hear. If someone can help me do a simple program with this algorithm that would be awesome. Thanks a lot.
|
|
|
|
|
mainshotime wrote: My teacher isn't much help
Get another teacher or talk to a TA
mainshotime wrote: Pseudocode
Pseudocode is simple. It's supposed to be. Pseudocode is not program code!
mainshotime wrote: Can't get rid of the errors in my code
Funny, I do not see an single error in any of the code that you posted.
mainshotime wrote: a simple program with this algorithm
A simple program using what algorithm? You have not posted one word about what it is that you are trying to do.
We are not teachers here either. You will probably not find one single person here willing to do your homework for you. If you get into trouble, then we can help. Post the code that you are having trouble with and ask a clear, concise question and I am sure that someone will be able to help you.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
my teacher is so helpful, so i'm flying in front, i have no error.
i have an awesome simple program with that algorithm, you are welcome.
|
|
|
|
|
mainshotime wrote: Can't get rid of the errors in my code. Pseudocode is supposed so simple from what I hear.
How about you show us your pseudo-code? There can't be any syntax-errors in there, nothing that would keep it from compiling, since there's no fixed set of rules to how pseudo should look. It's merely a description of what the computer should do, in a semi-structured way. Comes very close to how a cook describes baking an omelet;
- Get a pan
- Put it on the stove, turn on the gas
- Throw in some gravy
- ADD BACON
- Do three times:
- Crack egg
- Add egg to gravy
- Heat five minutes
- Eat
I just "made up" the description above, and making up things is usually considered "easy" - there can hardly be an error in above description (if you don't count that the gas is still running when you're eating). If it's wrong according to your teacher, then he sure as Hell should take time to explain why it is wrong in his view and how you can rectify that. If he can't, ask management whether they can replace the babysitter in the class with a teacher.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
I need the on-screen Keyboard codes, which can be written in different languages (keyboard language),please help mi<pre lang="text">
|
|
|
|
|
Something tells me that you do not really understand what this site is all about.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
grigorffef wrote: I need the on-screen Keyboard codes, which can be written in different languages (keyboard language),please help mi
start -> on-screen keyboard -> enter();
|
|
|
|
|
Hello again,
it seems that code translation tools have their problems with Lambda expressions – different from my own but still ... Maybe you can help me again:
C#-code
EventHandler<MailPoppedEventArgs> local = this.MailPopped;
if (local != null){local(this, new MailPoppedEventArgs(index, message, size, uidl, receivedTime));} has been translated to VB.NET this way:
Dim local As EventHandler(Of MailPoppedEventArgs) = Me.MailPopped
If local IsNot Nothing Then local(Me, New MailPoppedEventArgs(index, message, size, uidl, receivedTime)) The resulting error message reminds me that 'MailPopped' is an event so that a 'RaiseEvent' construction is needed. But which would be a proper syntax for the above expression?
Thank you in advance
Mick
|
|
|
|
|
It would look something like this
Dim local As EventHandler(Of MailPoppedEventArgs) = Me.MailPopped
RaiseEvent local(Me, New MailPoppedEventArgs(index, message, size, uidl, receivedTime))
Hope this helps
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
Hi Wayne, I'm going to check it out asap. Thanks for your help!
|
|
|
|
|
You'll need to use the hidden VB event field (add "Event" to the event name):
Dim local As EventHandler(Of MailPoppedEventArgs) = Me.MailPoppedEvent
David Anton
Convert between VB, C#, C++, & Java
www.tangiblesoftwaresolutions.com
|
|
|
|
|
Hello everybody,
I've been converting a project to VB (Express 2010) and have to face a bunch of errors it Lambda expressions – probably resulting from the conversion tool. The errors are "expression has no value" (German equivalent / I hope the translation is correct). The code looks like this:
mainDispatcher.Invoke(CType(Function() logs.Add(New LogInfo() With {.Line = e.Line}), Action), Nothing) The underlined part is the error marker. Could you please help me find the correct Lambda expression?
Thank you,
Mick
|
|
|
|
|
I don't see where logs.Add would return a value, so shouldn't that be
mainDispatcher.Invoke(CType(Sub() logs.Add(New LogInfo() With {.Line = e.Line}), Action), Nothing)
|
|
|
|
|
That makes sense, Dave, and I've tried it before - but also with an errorous result. In the changed expression there doesn't seem to be an overload for 'invoke' ...
Still you helped me on the way : Leaving the 'nothing' parameter away finally did the trick.
mainDispatcher.Invoke(CType(Sub() logs.Add(New LogInfo() With {.Line = e.Line, .Response = True}), Action)) Thank you, and kindest regards from Munich / Germany
Mick
|
|
|
|
|
Whoops! Forgot to remove that... sorry!
|
|
|
|
|
i am creating an .exe file in vb.net and running it on 64 bit but it is not running on 64bit the error is about database and one more thing is that am creating database with Ms-access.
How to create setup of MS-Access while creating .exe.
|
|
|
|
|
My guess is that you are using the Microsoft.Jet.OLEDB.4.0 provider to query the database. This does not have a 64 bit alternative, and so the solution is to make sure your application is compiled to run only in 32 bit mode. You can do this by going in to your application properties, then under the build tab, you must select x86 as your platform target, and recompile your app .
Hope this helps
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
I have developed a server application, and i used VB 6.0 but i try making it stand alone program which work but is not acessing my access database, what should i do for my program to access access
database after installing my application?
|
|
|
|
|
What have you done so far as to trying to connect to Access? Why use VB 6? It's been long dead, and why use Access, instead use SQL Server 2008 (full version or express, either depending on requirements)...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|