|
Hello All,
I have this simple question. When you write a application in VB 6. The application begins to execute from SUB MAIN.
When you develop a form application using VISUAL STUDIO.NET, I dont see the SUB MAIN in the FORMS1.VB or anywhere else in the project. Is this SUB MAIN something created automatically by VB.NET and then compiled?
I also create a module that have sub main() method but when I go the proprties of the project I'm unable to see the sub main in application startup drop down.
Note: When I uncheck the check box "Enable Visual Styles" then I'm able to see the submain in dropdown ... if possible also let me know what that means???
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
You will have to google the subject. With VS2008, a new class file is automatically created with the sub main procedure, but you are definitely able to do so in pre-VS2008 editions. Be sure you look into the correct syntax for the method as well as their is an attribute that is attached to the main procedure.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Thanks for reply,
But I'm asking about VS.NET 2005
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
The sub main procedure WILL work with VS2003, however VS2005, VS2008 simplify the process by creating a separate class file to divide the work. Google the topic for VS2003, but it WILL work.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
How can I hide Secret Key and Initialization vector string from .net decompiler like Reflector.net? Anybody who has the decomplier and the application's exe or dll can read my string and can decrypt the data file.
Thanks & Regards...
Amit
|
|
|
|
|
Encrypt the keys externally and use the encrypted version in your code. You'll, of course, have to supply code in your app to decrypt the keys so they can be used. So, no matter what you do, you cannot completely hide what you're doing from Reflector. All you can do is slow down the person looking at your code.
|
|
|
|
|
Hello,
I have the following. I have made a Visal Basic 2008 application that needs to be used by serveral people.
The application is connected for access thru a Touch Screen.
The problem i have i that some users are clicking on the Start button or other things outside tha apllication window.
i can set that the application uses a bigger form but still the start button , Taskbar is still there .
I am searching for a solution that only my application can be accessed, when entering the Exit button with a Code than the windows has to operate normal for maintenance.
Is there Anybody that can give me a solution
Thanks
Best regards.
Didier
|
|
|
|
|
open the task manager ctrl-shift-esc, note that it covers the start button if the window mode is normal (exposes the button when maximised) so:
Set your form to normal, topmost and the size to the same as the screen size - 1mm.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello,
Thanks for the fast answer.
It just not 100% clear for me.
I use also Windows Vista, i dont know if i told this.
Is there nothing possible directly from VB to force a full screen withut start and taskbar ?
This would be more easy i think.
thanks again.
Didier
|
|
|
|
|
DCAUB wrote: Is there nothing possible directly from VB to force a full screen withut start and taskbar ?
No. This is normally done through Group Policy. Get the Resource Kit for Windows XP and/or Vista and you'll find everything you need to setup in policies to support a "kiosk mode".
|
|
|
|
|
Hello,
Thanks for answering my question.
Can you just tell me , the Vista resource kit do i need to buy this or can i download this for free ? I have searched teh Microsoft download site but i didnt find Resource kit Vista.
Thanks
DCA
|
|
|
|
|
Buy it. There is no free download.
DCAUB wrote: I have searched teh Microsoft download site but i didnt find Resource kit Vista.
Your searching in the wrong place. Amazon[^]
|
|
|
|
|
Hi,
I wanna use threading in my application for doing this i used this code
<br />
Me.thread1 = New Threading.Thread(AddressOf Me.process1)<br />
Me.thread2 = New Threading.Thread(AddressOf Me.process2)<br />
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
Me.thread1.Priority = ThreadPriority.Highest<br />
Me.thread2.Priority = ThreadPriority.Highest<br />
<br />
Me.thread2.Start()<br />
Me.thread1.Start()<br />
End Sub<br />
<br />
But The problem is that when one process is completed then other process is started while i wanna start both process simultaneously...
How can i do this i have searched in google but nothing find benificial
Thanks with anticipation
Unless u don't give ur hundred percent whatever u r doing till there is no result of ur work...
|
|
|
|
|
I can't see anything wrong with this bit of code. Try calling Thread.Sleep in one or both of the Threads and see what happens. This makes the Thread give way to other operations for a certain amount of time before continuing. Also, remember that unless you have multiple CPUs, a computer only ever appears to be doing multiple things at once, but instead only does one thing at a time, rapidly switching between tasks to give the illusion of multitasking. It might just be that Windows' task scheduling ends up with them being executed on at a time. You could also try lowering the Priority of both the Threads. Do they really need to have Highest priority?
Tony
|
|
|
|
|
The code looks fine, how are you sure they are not starting at the same time?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi frnds,
I have a window based EXE and i want to run it over Internet..how can i run it ???
see.. basically,
My EXE save some data in SQL Database and now my exe installed on my machine and Databsase is at Remote location....can my EXE be run ??
how can i handle this issue ???
Thankx in advnace
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Look into remoting, web services and late binding. Then decide which is the best solution for you.
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
hi koolprasad2003
How can you do such a thing. you cannot run an Exe on the Internet.If you want to Keep your Exe(FrontEnd),i suppose. Create Webservice and Consume it from your Win App. Remoting will be imposible for you, judging from the way you just Ask your Question.
see this Article, Consuming Webservices from your Win App. if the System is in your Network. just hit the DB Directory than creating WebServices.
see this
http://www.codeproject.com/KB/cs/webservice.aspx[^]
Hope this Helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Look into remoting.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hello Friends,
How to find that dotnet framework 2.0 is installed or not.
and i want to chck for sql server 2005 for also.
If you have any suggestion please help me,
Thanks in advance.
Adarsh
|
|
|
|
|
If you have written a .Net program, then your program will not run without the right .NET Framework, so I would be pointless including code into your program to check for this. You may also want to read this CodeProject article[^] on that very subject.
The following code with return a list of running MS SQL Server Instances, along with server version details etc. :-
Imports System.Data.Sql
Public Class SqlServers
Public Shared Function SQLServerList() As DataTable
Dim sqlSource As SqlDataSourceEnumerator = SqlDataSourceEnumerator.Instance
Dim dtSqlServers As New DataTable("SqlServers")
dtSqlServers = sqlSource.GetDataSources()
Return dtSqlServers
End Function
End Class
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
Thanks for your help.
Adarsh
|
|
|
|
|
compad wrote: any suggestion please help me
Do an article search on this site. I recall seeing one written here on this very topic.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Thanks for your help
Adarsh
|
|
|
|
|
With "process explorer">find>serial
we get the association of comm to process (execute)
(If a program using serial is active)
I could get the PID of the process
I would like the know the api needed to do the above for
basic or c++
thanks
|
|
|
|