|
I myself found something on MSDN that I can get object of MSPRJ9.obl. And then I can create object MPP. But anybody knows is that Object Library is distributable.
Regards,
Samya
|
|
|
|
|
Hello,
I was wondering about how am I able to show another Form object from vb.net? Also how can I access of modify a property of an object
e.g.:
Form2.Text1.Text = "testing"
Thanks
Best Regards
Emre YAZICI
|
|
|
|
|
This should work:
You have to create an instance of the other form before you can change properties on it.
Dim otherForm As New Form2()
otherForm.Show()
otherForm.TextBox1.Text = "hello"
Beware the chickens, for in their silence, they plot...
Life is too short to be taken seriously.
-- Oscar Wilde
|
|
|
|
|
Can someone explain to me how to perform this function
in VB.Net?
A more detailed description can be found at
http://www.netfor2.com/checksum.html
I need to perform a 2's complement sum CheckSum on some data before sending it to a serial device and
when recieving data from the device.
Thanks for any help.
=================================
When i was in school all I wanted was to get out into the real world.
Now that I'm in the real world all I want is to go back to school.
|
|
|
|
|
all you should need to add is the "not" function
like:
result = not checksum
pxw
|
|
|
|
|
My previous really gives a ones compliment -- not really what you asked for. In order to perform a twos compliment I prsonaklly would revert to tyhe interoperability of the .NET languages and write it in C++, then like it to Visual Basic.
If you decide to try that, start a Visual C++ .NET Class library. then add the following code to the file that holds the name you gave the library, compile and link to it.
NOTE that the code given works only with 32-bit integers, a similar thing sould be done for larger or smaller integers.
int TwoCompl(int val)
{
__asm {
mov eax, val
not eax
mov val, eax
};
return val;
}
|
|
|
|
|
I was trying to install a program onto another computer, but the setup was aborted because the target computer did not have the .NET framework.
During deployment, there was a warning that said
"WARNING: This setup does not contain the .NET Framework which must be installed on the target machine by running dotnetfx.exe before this setup will install. You can find dotnetfx.exe on the Visual Studio .NET 'Windows Components Update' media. Dotnetfx.exe can be redistributed with your setup."
I've located that dotnetfx.exe on the component CD, but DOES ANY COMPUTER THAT I WISH TO INSTALL MY APPLICATION REQUIRE THE INSTALLATION OF THE .NET FRAMEWORK?
If so, what is the proper procedure on including that file into my setup?
also, is there anyway around installing the .Net Framework.
Thank you for your time.
The Jazz Master 6000
DJ Badknees
Parma Grind Crew - www.geocities.com/parmagrindcrew
|
|
|
|
|
Ya, any PC you want to run an application you've written in .NET needs to have the DotNET framework installed. PC's that have Windows XP or Windows 2003 will have the framework already installed.
I'm not sure how to detect if the person has the .NET framework installed so I can't help you with that.
Beware the chickens, for in their silence, they plot...
Life is too short to be taken seriously.
-- Oscar Wilde
|
|
|
|
|
Windows XP doesn't have the framework by default. Allegedly it will find its way into an upcoming service pack. Not sure about 2003 though, you may be right.
|
|
|
|
|
Hello all
I want to write a VB Macro that will forward a message that I have selected. For all intent and purposes I am trying to emulate the Forward button.
I know that if I code this
Set myForward = myFolder.Items(1).Forward
Then it will forward the first message in my inbox (assumign that my inbox is the folder that it has been sent to)
Is there a way to change it so that it forwards the messge I select, and not simply the first message. I'm confused as how to get the selection?
Anybody know anything abotu VBA and outlook?
thanks
Nick
|
|
|
|
|
I'm c++ programmer..
How to convert the following C++ code to VB?
<br />
c++<br />
<br />
char str1[1024];<br />
<br />
ifstream fin("c:\\file1.txt",ios::in);<br />
ofstream fout("c:\\file2.txt",ios::out);<br />
<br />
while (!fin.eof())<br />
{<br />
fin.getline(str1,1024,'|');
str1[strlen(str1)] = NULL; <br />
fout<<str1<<endl;
}<br />
fin.close();<br />
fout.close();<br />
the following code is a basic I/O file in C++. I wanna know the basic read write to file in VB..
I found something but kind of confused me..
Could you explain how..
thanks
|
|
|
|
|
well you could write to a file / create and write in vb.net like this...
VbCode:
<font color="blue">Private</font> <font color="blue">Sub</font> Button1_Click(<font color="blue">ByVal</font> sender <font color="blue">As</font> System.Object, <font color="blue">ByVal</font> e <font color="blue">As</font> System.EventArgs) <font color="blue">Handles</font> Button1.Click <br> <font color="blue">Dim</font> writer <font color="blue">As</font> IO.StreamWriter = <font color="blue">New</font> IO.StreamWriter(<font color="blue">New</font> IO.FileStream("D:\my.html", IO.FileMode.OpenOrCreate)) <br> writer.Write(RichTextBox1.Text) <br> writer.Close() <br> Process.Start("D:\my.html") <br> <font color="blue">End</font> <font color="blue">Sub</font> <br>
or to read / still be able to write ....
VbCode:
<font color="blue">Private</font> <font color="blue">Sub</font> Button2_Click(<font color="blue">ByVal</font> sender <font color="blue">As</font> System.Object, <font color="blue">ByVal</font> e <font color="blue">As</font> System.EventArgs) <font color="blue">Handles</font> Button2.Click <br> <font color="blue">Dim</font> reader <font color="blue">As</font> <font color="blue">New</font> IO.StreamReader(<font color="blue">New</font> IO.FileStream("D:\my.html", IO.FileMode.OpenOrCreate, IO.FileAccess.ReadWrite)) <br> <font color="#0000FF">While Not</font> reader.Peek <br> RichTextBox1.AppendText(reader.ReadLine & Environment.NewLine) <br> <font color="blue">End</font> <font color="#0000FF">While</font> <br> reader.Close() <br> <font color="blue">End</font> <font color="blue">Sub</font> <br>
hope it helps
Vb:
<font color="blue">Public Function</font> TwinsOnWay(<font color="blue">ByVal</font> twins <font color="blue">As String</font>) <font color="blue">As String <br> Select Case</font> twins<br> <font color="blue">Case</font> "Gender" <br> <font color="blue">Return</font> "Two Girls" <br> <font color="blue">End Select <br> End Function</font> <br>
|
|
|
|
|
When running our project, a login screen pops up before the system can be used. We want to assign the <enter> key to the OK button, and the escape key to the Cancel button.
Where and how do we set this at design time or programmatically?
|
|
|
|
|
for VB6 :
set the OK Button property(default) to True to make Enter the default..
and for Cancel Button set (cancel) to true..
VB.NET:
in the form assign the defult button property the name of the OK Button..
|
|
|
|
|
Thanx for the help, but unfortunately I am still a beginner in VB.NET! What is the code to set the default property?
|
|
|
|
|
Be careful how you use the terminology. There is no such thing as a "Default Property" in the .NET Framework.
What you are looking for is in the Form Properties. Click on the Form you are using to get the UserName and Password. Under the Misc section in the Properties window you will find AcceptButton and CancelButton. You can assign which button does what and the form will automatically process the ENTER and ESC keys as Accept/OK and Cancel.
Now, to get the OK button to LOOK like a Default button you have to call the NotifyDefault method on the button, probably in the Form's Load event, like this:
Private Sub AuthForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
OKButton.NotifyDefault(True)
End Sub
This will force the button to draw itself with the thicker border of the default button.
RageInTheMachine9532
|
|
|
|
|
We get the following error when we create a new child on our MDI Parent:
An unhandled exception of type 'System.OutOfMemoryException' occurred in system.windows.forms.dll<br />
<br />
Additional information: Error creating window handle.
The Code:
Dim frmChild As Form = New frmAffiliationRegistration()<br />
<br />
Private Sub MenuItem12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem12.Click<br />
<br />
<br />
frmChild.Dispose()<br />
frmChild = New frmAdjudicatorRegistration()<br />
frmChild.MdiParent = Me<br />
frmChild.Enabled = True<br />
frmChild.Show()<br />
End Sub
Any advice?
|
|
|
|
|
Heya
Change your Dim line to this:
Dim frmChild As New frmAffiliationRegistration()
And take the first two lines out of the next block. You only need these three:
frmChild.MdiParent = Me
frmChild.Enabled = True
frmChild.Show()
Beware the chickens, for in their silence, they plot...
Life is too short to be taken seriously.
-- Oscar Wilde
|
|
|
|
|
Dim frmChild As Form = New frmAffiliationRegistration()
Private Sub MenuItem12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem12.Click
frmChild.Dispose()
frmChild= Nothing
frmChild = New frmAdjudicatorRegistration()
frmChild.MdiParent = Me
frmChild.Enabled = True
frmChild.Show()
End Sub
'Is it Working???
|
|
|
|
|
What is the best way to backup a database used in a project to a CD-Writable? We want to put in an option in our VB.NET program to burn the database on a CD.
|
|
|
|
|
Emile Jacobs wrote:
What is the best way to backup a database used in a project to a CD-Writable? We want to put in an option in our VB.NET program to burn the database on a CD.
If you are using only Windows XP based machines, you can use IMAPI, which is a very easy way for VB programmers, because it's avaliable as a bunch of COM components.
But if you want broader OS scope, you'll need to use Nero's APIs.
while (!sorted)
;
|
|
|
|
|
How does one declare a variable that is available for any form in the project?
|
|
|
|
|
Emile Jacobs wrote:
How does one declare a variable that is available for any form in the project?
Declare a shared public variable in your class, access this variable via MyClassName.MyVariableName.
Click here to see my articles and software tools
|
|
|
|
|
We created a shared variable in the class, but we do not know how to declare the class in the different forms!
|
|
|
|
|
The class has to be in the same the project, you don't need to declare it. If the class is only visible in a different name space, then you need to access it via MyNameSpace.MyClassName.MyVariableName.
If multiple threads are accessing this variable, make sure thread-safety.
Click here to see my articles and software tools
|
|
|
|