|
I know this is probably a stupid question, but I just started on this whole VB thing (damn that .NET! Else I wouldn't be learning VB...). So far I've written a program to type a message in one textbox that displays in another textbox as encrypted text, and now I want to add an option to save the encrypted text. Help, anyone?
First Programmer: "How many bits are in a bite?"
Second Programmer: "You spelled bytes wrong."
First Programmer: *stares* "It's a joke, moron."
Second Programmer: "Joke...?"
|
|
|
|
|
Any one know how not to make graphics flicker in vb.net?
|
|
|
|
|
Have a look at this link from DotNetMagic on double buffering.
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
As I have created one application using Visual Basic.NET, I found out that the application pop-up very slow. I don't know why?
Please help? Thanks!
|
|
|
|
|
Check to see if you're compiling in debug mode. I've found that compiling in release mode with optimizations on can decrease initial load time up to 10x.
|
|
|
|
|
there is also a known bug in this verson of the dotnet framework involving slow start times.
If you don't have one... try adding an "ASPNET" account to your machine. you can disable the account if you want... it just needs to be there.
|
|
|
|
|
Have a look at the ngen.exe util that comes with the .NET Fx.
You should get an immediate benefit.
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
Hi all!
I made a simple Windows Application (MyApp.exe) that shows a simple form with the system date.
That application adds an icon to the system tray (a notify icon) that has associated to it a simple context Menu (Exit). So far no problems...
My problem is:
If i run MyApp.exe 2,3,4 or n times it adds 2,3,4,n icons to the system tray
How can i prevent this in order to if i had already the icon of MyApp in the system tray, and if i click on MyApp.exe the focus goes to the form of MyApp and don't add a new icon to system tray??
Thanx in advance
|
|
|
|
|
You just check if your app allready is running with eg. ::FindWindow(...) (you need to P/Invoke it)
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rather than using the FindWindow API, there is a nice .NET way to find out if your app is already running.
If UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName)) > 0 Then
If this returns true then there is another instance of the process running. What I haven't had time to work out yet is how to activate that existing instance. So if anyone knows off the top of their head how to do that, please comment. I've done plenty of this stuff with API calls in VB6 but I'd prefer to use native .NET as much as possible now.
cya,
Kermitt
|
|
|
|
|
Hello everybody!
i am a fresher in software development.I am currently working on a project called "Voice Enabled Visual Basic Protocol".This is an application with speech recognisation capabilties.It will allow user to give simple voice commands and work will be done also it will show the error messages not thru normal message boxes but through the voice messages.I know i have to use the "Speech SDK " ans "Microsoft SAPI" and the concept of "text to Speech" and "speech to text".I have relevant matter and code samples for text to speech conversion but i dont have anything regarding the speech to text conversion.so any could please provide me the proper SDLC for voice to text and some code samples.
my time is running out very fast i have to complete this project in very short span of time so plz help me out intelligent gentleman.
deepak
|
|
|
|
|
I want to write burning program for CDR,but how to do.
|
|
|
|
|
In *VB* ??? There are toolkits to do it in C++, but I don't think they exist in VB. They are also commercial products and they are not cheap.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|
|
I pass a SAFEARRAY through a Variant in VB.
Now i have the Variant and i don't know how to extract the SAFEARRAY from it.
rechi
|
|
|
|
|
I want to add in the standard help file for my VB application. Any VB6.0 built-in tools can be used for this purpose? If not, any alternative can I choose?
Thanks
DJ
|
|
|
|
|
you can use the tool HELP WORKSHOP in Microsoft VB 6.0 tools
to create a .hlp file
i am friendly
|
|
|
|
|
lyhyp wrote:
HELP WORKSHOP
Yup. If I'm not mistaken, this also allows you to create context-sensitive help per function. Pretty useful.
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
Also, you can get the HTML Help Workshop from mimcrosoft.com to make a .chm. It's free, just search for it.
Jeremy L. Falcon<nobr>
Homepage : Sonork = 100.16311
"But everybody darlin' sometimes bites the hand that feeds."
"Remember in this game we call life that no one said it's fair."
"Just because you're winnin' don't mean you're the lucky ones."
Song: Breakdown - Album: Use Your Illusion II - Artist: Guns N' Roses
|
|
|
|
|
How could i use escape sequences in VB to write strings like this: 'a1 "b1" c1' - where ' is a substitute for " ?
rechi
|
|
|
|
|
Heya,
" is escaped by "" (ie double 'em).
/WW
|
|
|
|
|
In VB you could use two double quotes back-to-back...
"a1 ""b1"" c1"
...or use the actual ASCII/ANSI char itself...
"a1 " & Chr(34) & "b1" & Chr(34) & " c1"
I prefer the first method.
Jeremy L. Falcon<nobr>
Homepage : Sonork = 100.16311
"But everybody darlin' sometimes bites the hand that feeds."
"Remember in this game we call life that no one said it's fair."
"Just because you're winnin' don't mean you're the lucky ones."
Song: Breakdown - Album: Use Your Illusion II - Artist: Guns N' Roses
|
|
|
|
|
I have a form and I want to make it so only one instance of that form is opened. I can do this with a counter variable in my form class so when it is loaded it incremenets and if they go to file->exit it decriments. But if thye hit the X button in the upper right, the form is closed and my counter vraiable stays at one. I need a way to make it so however they close it my counter is updated accordingly.
|
|
|
|
|
I would suggest that you use the Singleton pattern instead of tracking counters.
|
|
|
|
|
A singleton pattern is?
-- Remember your are but a lowly hair on my s*r*t*m
|
|
|
|
|
the following is similar to how the vb6 upgrade wizard does it. it's not a true singleton pattern, because it allows for more than one to be created over the lifetime of the app, but is close enough in that it never allows more than one at a time.
add this code to your form, substituting "Form1" for the type of your form.
Private Shared m_SingleInstance As Form1
Private Shared m_InitializingSingleInstance As Boolean
Public Shared Property SingleInstance() As Form1
Get
If m_SingleInstance Is Nothing OrElse m_SingleInstance.IsDisposed Then
m_InitializingSingleInstance = True
m_SingleInstance = New Form1()
m_InitializingSingleInstance = False
End If
SingleInstance= m_SingleInstance
End Get
End Property
now when you want to create or reference your one form, use Form1.SingleInstance instead of creating or showing it manually.
|
|
|
|