|
You can't if you close the parent form the child form will close as well.
|
|
|
|
|
Unless you change the "Shutdown Mode" in the project's properties
If everything was not true, would it be not true that everything is not true? So by saying everything is not true, you are automatically denying that everything is not true. Im so confused...
|
|
|
|
|
You could try setting Visibile to false before showing the Child form.
|
|
|
|
|
or Form1.Hide?
------------------------------------
"When Belly Full, Chin Hit Chest"
Confucius 502BC
|
|
|
|
|
This also depends if the parent form is the main form of the application, if this is the case then your design is probably wrong. If it is not either user .Hide() or move the child form opening to the parents parent.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hey, not too sure this is the right Message Board for this...but here goes:
I want a macro to automatically open an email as HTML format rather than rich text. I have my send emails defaulted to HTML, yet when I run this macro it comes up as rich text. Any help would be appreciated.
Dim objAppl As Outlook.Application
Dim objNS As Outlook.NameSpace
Dim objContact As Outlook.ContactItem
Dim objNewmail As MailItem
Dim objDrafts As MAPIFolder
Dim objVorlage As MailItem
On Error Resume Next
Set objAppl = CreateObject("Outlook.Application")
Set objNS = objAppl.GetNamespace("MAPI")
Set objDrafts = objNS.GetDefaultFolder(olFolderDrafts)
'Checking all contacts in standard conta
' cts folder
For Each objContact In objNS.GetDefaultFolder(olFolderContacts).Items.Restrict("[MessageClass] = 'IPM.Contact'")
'checking birthday of each contact
If (Day(objContact.Birthday) = Day(Date)) And (Month(objContact.Birthday) = Month(Date)) Then
'creating new mail
Set objNewmail = Application.CreateItem(olMailItem)
With objNewmail.....
My new mail comes out rich text always, is there coded way so that it opens as html?
|
|
|
|
|
how to apply a range validation to a textbox in a datagrid? pl advise!
|
|
|
|
|
what have you tried so far?
|
|
|
|
|
Hi Experts,
I would like to capture Harddisk and processor serial No. apply some algorithm over it and generate a new encrypted ID. Further I like to embed this ID to the installed exe. So that it check everytime the same hardware when it run.
Can anyone tell this by any example.
I am using VS2005 and my project is on Vb.Net.
Thanks in advance.
Jay Khatri
|
|
|
|
|
you could use WMI for both, or for example, this get Physical HDD serial number without WMI[^] for the disk, serial number is likely out there somewhere.
Similarly, encryption code is easy to find - if you look here on CP you'll find most of what you need including building keys, look for articles by Jeffrey Walton for-instance
We dont in general supply code to people - you have to do the research/grunt work yourself - once you have difficulties with a particular piece of code you can ask back here.
'g'
|
|
|
|
|
obtaining hard disk serial No. and processor will be done there. I was having the code you had suggested. My issue is how will I embed the encrypted code in exe at install time so that any person who copy the exe will not be able to run on his pc and even if someone extract exe from my setup will also fail to do so.
I would like to have your comments upon it.
Thanks
Jay
|
|
|
|
|
Yup, well, that's the hard part - there are a number of options ... basically as pointed out in Tamper Aware and Self Healing Code[^] you can store them in the exe itself as a binary resource - here's one technique Adding and extracting binary resources[^]
You could also use hidden registry keys, files .. I would seperately encrypt the resource data/registry key/file anyway ..
Another place to store your product key is on a 'USB Dongle' or such, so the Dongle has to be present etc to start the software - SafeNet and UniKey market such products (no Im not affiliated with either of them) - these offer benefits that they offer some level of encryption themselves, negating the seperate encryption/hiding of the data required to check a product key
Eventually it all comes down to the same, someone with enough time and motivation will crack your software.
|
|
|
|
|
Yes exactly Hardware lock is a gud option but I will not be able to select due to company's policy, cracking exe is also possible, if someone know assembly lang. Even I had cracked Xara 3D for educational purpose. It was as easy as to change je to jre.
So will it be better to enter an encrypted code separately. I like to encrypt my software as much as possible. Further I would like to make my exe tamper aware and self die.
Thanks for you prompt reply.
Jay
|
|
|
|
|
If you embed the key inside the executable, then there is always the possibilty (however small) that someone will extract the key with a tool like Resource Hacker^ or, if they are really determined, they will do it with a hex editor. So encryption is a must.
If everything was not true, would it be not true that everything is not true? So by saying everything is not true, you are automatically denying that everything is not true. Im so confused...
FreeDOS
- An open source modern
MS-DOS/PC-DOS replacement.
|
|
|
|
|
hi
i need to know about "how to avoid the validation on form closing " .
when iam put some validations for text boxes when i closing the form it will risises the validation even .
|
|
|
|
|
you can either make a class level variable and set it to true in the form_closing event. then in each event, check if the variable is true and if so...get out of the event. you can also check if me.isdisposed and get out if that is true also...
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
I m using MSChart control in VB.NET 2005. It is working properly in my system(In coding time & after installation).
When i installed setup package in other system not working windows throws a Error.
How can come out from this problem?
|
|
|
|
|
I presume you tested the installation on your dev machine.
When you create a reference (to the control DLL) you need to make sure you set the copy local flag, this will then include the DLLs in your distribution (clickonce) otherwise just make sure the dll is included in your setup package.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I was check it is there
But still problem is there.
|
|
|
|
|
I am Trying to Turn on and off a light base on a value of a sencor
i dont no what i am doing wrong i looked it up and found a few examples and i just can see what wrong
so this is what i have
one text box that is showing the Value of the sencor called TempSensors
I have a other text box that have a input value TempNum
and i have a light called phidgetIFK.outputs
what i am trying to do is when tempsencors reaches or go over what is in TempNum it will triger a light on phidgetIFK.outputs
This is what i coded
Private Sub TempNumH_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TempNumH.TextChanged
Dim Temp As Integer
Temp = TempSensors.Text
If Temp >= TempNumH.Text Then
phidgetIFK.outputs(0) = True
Else
phidgetIFK.outputs(0) = False
End If
End Sub
Thanks for anyones help in advance
|
|
|
|
|
Without knowing what errors you are seeing...
In your If condition (Temp >= TempNumH.Text ) you are trying to compare an Integer value and a String value. You need to ensure that you cast both TempSensors.Text and TempNumH.Text to Integer values before comparing them.
You also need to ensure that phidgetIFK.outputs(0) is an actualy Boolean value as well.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
I tryed this now
Private Sub TempNumH_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TempNumH.TextChanged
Dim Temp As Integer
Dim TempNum As Integer
Temp = TempSensors.Text
TempNum = TempNumH.Text
If Temp >= TempNum Then
phidgetIFK.outputs(0) = True
Else
phidgetIFK.outputs(0) = False
End If
End Sub
and this is what i get
An error occurred creating the form. See Exception.InnerException for details. The error is: Conversion from string "" to type 'Integer' is not valid.
???
i dont no how to check if phidgetIFK.outputs(0) is an actualy Boolean value
I am just starting out and i think i might be taking on to much for starters
Thanks Scott
modified on Friday, August 7, 2009 9:10 AM
|
|
|
|
|
Bob Beaubien wrote: Temp = TempSensors.Text
converting strings to integers probably fails on an empty string.
Bob Beaubien wrote: i might be taking on to much for starters
Here is my recommendation[^] for you.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Hi,
try this:
Dim TempSensed As Integer = TempSensors.Text
Dim TempReference As Integer = TempNumH.Text
Console.WriteLine("sensed=" & TempSensed & " ref=" & TempReference)
phidgetIFK.outputs(0)= Temp >= TempNumH.Text
and you will see what is going on.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
modified on Friday, August 7, 2009 7:12 AM
|
|
|
|
|
Hi Luc
I try what you told me to try and this is what i got
The error is: Object reference not set to an instance of an object."}
Thanks
Y
|
|
|
|