|
Can anyone help me out, I want to make it so that when my application loads, it will display a form that says 'This is not freeware' and then has the options of 'exit'. 'register' 'try' Ive done the forms, but how can i code it so that it will 'lock' the user out after the 30 day trial period?
Many thanks
-- modified at 21:13 Saturday 4th November, 2006
|
|
|
|
|
|
Thanks for the help I can now carry on the long road of VB 2005.. whew
|
|
|
|
|
How can I use a VB 2005 app to send keystrokes or bits of information such as a cheat.
like this:
1. I Press button on form (when my game is running)
2. The application then sends a cheat code (godmode, ect)
3. the cheat happens ingame
in other words instead of typing the cheats in the console of the game, i just press a button on my app and it does it automaticcaly. (instead of doing the 'trainer way' and messing with the games memory address (wich doesnt always work))
... sounds pretty hard, sorry to bother you with this.
|
|
|
|
|
But that would be cheating......
anyway try building a console app that waits for the particular key stroke.
then used the Sendkeys() function in VB.
|
|
|
|
|
Um... sorry to burst your bubble.. but thats is the point, to 'cheat'
I kinda know how to use the sendkey function but can someone give me an example of sending it to the game?
|
|
|
|
|
hi,
how can i add a genericdatagrid control to my vb2005 project.please help?
i saved the .dll and added. but it is showing invalidoperationexception
An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object.
please help
|
|
|
|
|
Hi,
A)i want to display a datetime picker one one column of the datagrid, how can i do it?
|
|
|
|
|
In vb 6.0, Using mscomm control how to make a call to a mobile,or how to sms to a mobile.I need the source code for the above question,
plz. be past
|
|
|
|
|
How can communicate between two WeifenLuo form within an Application??
Thankz in advance
ram
|
|
|
|
|
|
i am signing the pdf file with code projects example but i am trying to change the signature image "valid,unknown,unvalid,expired etc" how can i change the default icons"
AJAY KUMAR
ANIMON SOFTWARE SOLUSTION
|
|
|
|
|
You might want to post this question on the board that you find at the bottom of the article you're refering to.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hey,
I want to detect the position of the blinking cursor (sorry, I'm drawing a blank on the name of it). You know, the cursor in front of what you are typing? Anyway, is there a way I can do that?
And also, is there a way to convert all text in a Rich Text Box to Rot-13? The code I'm using won't convert the text. See below:
<br />
Dim AllText As String<br />
AllText = RichTextBox.Text<br />
Dim Part As Integer<br />
Part = AllText.IndexOf("a")<br />
Dim FileName As String<br />
FileName = AllText.Replace(Part, "Z")<br />
Dim Part2 As Integer<br />
Part = AllText.LastIndexOf("b")<br />
FileName = AllText.Replace(Part2, "Y")<br />
Any help would be appreciated! Thank you!
P.S. I do not name my controls Generic names like "RichTextBox", I was only using that as an example!
|
|
|
|
|
Please look at my reply to your earlier post for Rot-13...
To detect the current position of the blinking cursor, I think there is a property SelStart that you can use.
Chandra
|
|
|
|
|
How to format DateType form MM/dd/yyyy to dd/MM/yyyy of an Application,Which Writed by VB.net
How to change DateType of Window by VB.Net
Can you Hepl me?
quan
|
|
|
|
|
Changing the Windows system settings is NOT a good idea. If your app does that on my machine, I'll uninstall your app faster than you can blink an eye.
If you want to show a DateTime in a certain format, all you have to do is give the format string to the ToString() method or you DateTime:
Dim dt As DateTime = DateTime.Now()
Console.WriteLine("Current Date: " & dt.ToString("dd/MM/yyyy"))
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
If know a form named "Form1", how to get the form object and show it ?
'**************************************
Dim myFormName As String="Form1"
Dim myFormObject As System.Windows.Forms.Form
'...
'How to get myFormObject of "Form1" ?
'How to show "Form1" ?
'...
'**************************************
Thanks
kaiwnyt
|
|
|
|
|
|
You're question and code sample are very confusing and don't lend themselves to an clear explaination of what you're doing. THe best I can tell you without a better description of the problem is:
Dim myForm As New Form1
myForm.Show()
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Do you mean that you just know the name of the form and you would like to display it?
You can try to look in the Forms collection to match the name and display that form, using the Show method.
Hope this helps
Chandra
|
|
|
|
|
This is not a trivial task.
If all you have is the simple form name as a string, then you need to use some sort of Reflection to create an instance of that type, AND you have to use the full name of the type, which is "Namespace.Type".
Here's one approach:
"Loading Classes on the Fly"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet10082002.asp
Here's a similar way, that does not use a configuration file. I just used the assembly name, which should work, unless you or another developer has placed the forms in a different namespace.
Either way, you have to know the namespace of the type. If it happens to be the same as the assembly, which usually it will be, then you're in good shape. If not, you just have to know the namespace, and prepend it to the form name. (And don't forget to use proper exception handling. Do as I say, not as I do.)
Imports System.Reflection
Module Module1
Friend Function GetFormUsingGetType(ByVal formName As String) As Form
Dim myAssembly As [Assembly] = [Assembly].GetExecutingAssembly
Dim myForm As Form
Dim myFormName As String
Dim myType As Type
Dim myAssemblyNameObj As AssemblyName = myAssembly.GetExecutingAssembly.GetName
Dim myAssemblyName As String
myAssemblyName = myAssemblyNameObj.Name
myType = myAssembly.GetType(myAssemblyName & "." & formName, True, True)
myFormName = myType.FullName
myForm = CType(myAssembly.CreateInstance(myFormName), Form)
Return myForm
End Function
Friend Function GetFormUsingActivator(ByVal formName As String) As Form
Dim myForm As Form
Dim myFormName As String
Dim myAssemblyNameObj As AssemblyName = [Assembly].GetExecutingAssembly.GetName
Dim myAssemblyName As String
Dim obj As System.Runtime.Remoting.ObjectHandle
myAssemblyName = myAssemblyNameObj.Name
myFormName = myAssemblyName & "." & formName
obj = Activator.CreateInstance(myAssemblyName, myFormName)
myForm = CType(obj.Unwrap, Form)
Return myForm
End Function
End Module
|
|
|
|
|
I am creating a network instant messaging program in VS 2005. I want it to work in much the same way as msn Messenger, as in a realtime chat where multiple people can input messages to one single chat box that is shown on each pc. I am unsure how to go about sending and recieving messages and was wondering if anyone could point me in the right direction.
Posted by The ANZAC
|
|
|
|
|
I was working on a similar problem only a week ago! What a coincidence!
Anyway, if you have a network drive set up (a drive on a computer that all computers in your house can access), create a text file. Then when somebody submits some text, just take that text and add it to the main file. From there, just show the contents of that main file in another text box. Simple, and a lot easier than learning networking!
I hope you can figure it out. Let me know if you need more help!
|
|
|
|
|
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|