|
...here we go...
Anonymous wrote:
if someone would like to drop out from the connection or join the connection, it is better for me to select UDP?
Does not matter. The connection type is dictated by what your sending back and forth, not the number of connections...
Anonymous wrote:
I am writting by using on a single PC, all client & server are same pc. TCP should not be a problem, am I right?
Nope. It won't be a problem at all.
Anonymous wrote:
From your experience, which one is more easier, TCP or UDP?
They both work about the same. Neither one is easier than the other. Like I said, the choice is determined by WHAT your transferring, not how...
Anonymous wrote:
use UNIX header file into my Windows. Hence, a lot problem come out. Please advise what .h file should I include.
None! The .h header files are C++ headers, not Visual Basic.NET. VB doesn't know what to do with C++ syntax. You'll have to rewrite the header files with the stuff you need and convert the code from C++ to Visual Basic, by hand!
Besides, you don't need the header files anyway. All the socket programming API's have been wrapped in the System.Net.Sockets classes in the .NET Framework. The top of the .Sockets classes starts here[^]. You can search CodeProject for articles on 'sockets' as well as searching the rest of the web for examples.
RageInTheMachine9532
|
|
|
|
|
Hello friends!!
i am newbie in GSM programming , i don't know where to start.. if anybody is having sample vb code about sending
and receiving sms pls send me.. or atleast tell me where can i get information regarding that ..
thanks in advance ....
|
|
|
|
|
Search the web for 'GSM' using Google[^]. There are TONS of references to GSM programming.
RageInTheMachine9532
|
|
|
|
|
Is there a way to stop overflow checking at runtime in VB.NET? I have one math calculation that must behave like another system, it could generate a number > 2 billion (<4) which then needs to go into a signed 32 bit integer. I don't want to disable it for the entire program though, just at one spot.
Thanks,
Sean
|
|
|
|
|
Can't do that, it's all or nothing.
You can get around this "feature" your describing by doing you calclations in a Long type (64-bit) integer, then shifting the bits to the left by 32 bits then back to the right by 32 bits.
Dim longInt As Long = 3564530340
Dim shortInt As Integer = (longInt << 32) >> 32
Since your trying to simulate the performance of another system, you'll have to be very specific about it's behavior in overflow situations. This is because not all systems store numbers in the same format and not all systems share the same behavior in the same situation. Provide an example of the results to make sure you get the correct behavior in all circumstances.
RageInTheMachine9532
|
|
|
|
|
Thanks, the shifting method gives me what I need.
Sean
|
|
|
|
|
No problem!
RageInTheMachine9532
|
|
|
|
|
I am having different module,i wanted to make a singel setup project fro this.how can i Implement this?doing so ,user can be select the module that he want to and can be unselect when he dont want to.
Tell me the method ..in order to make my deploying make easier....
|
|
|
|
|
This may not be the direct application for you to use. But you can give this a try... You can modify the configuration file and install it
http://www.codeproject.com/dotnet/dotNetInstaller.asp[^]
He who controls others may be powerful, But he who has mastered himself is mightier still.
|
|
|
|
|
need help.
iam beginner in vb6, i try create a program using vb6 to browse and edit a dbf file. (using microsoft ado data control & microsoft datagrid control).
browsing ok. but i get an error while updating the cell.
error : "insufficient base table information for updating or refreshing"
dino
|
|
|
|
|
How can I find the system name in vb.net
Every thing is MAYA(Illusion)
|
|
|
|
|
The Environment class holds that info:
Imports System
.
.
.
Dim machineName As String = Environment.MachineName
RageInTheMachine9532
|
|
|
|
|
If i have the full path to the specific document( saying "mydocument.doc" how can i load the document from VB COM add-in
|
|
|
|
|
Hi,
How to create, Edit and Load help file for each control. Or I would like to know how to write help file for my application for each control.
Any help will be appreciated.
Thanks,
|
|
|
|
|
You need not write saperate help files for each control,
what you can do is create 1 help file which has help info
about all controls in your app, and in the control property
provide different help keywords.
Every thing is MAYA
|
|
|
|
|
I have added a data grid. I am trying to change the default header of each column to another name. For example:
dgtsPayrollInfo.GridColumnStyles(0).HeaderText = "Employee ID"
dgtsPayrollInfo.GridColumnStyles(0).Alignment = HorizontalAlignment.Center
I keep getting an error. I want my first column to have employee id as the header. Any Sugggestion
Thank you,
ibok23
|
|
|
|
|
ibok23 wrote:
I keep getting an error.
And that error would be ....?
RageInTheMachine9532
|
|
|
|
|
I am trying to put a header on each of my columns in my data grid. I have the columns already there, but with a different name from when I made the data relations. For example on column one it has "fldEmployeeId". I just want "Employee ID". I am getting an error while trying to run it. It is telling me that
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dllAdditional information: Index was out of range. Must be non-negative and less than the size of the collection.
The error is on the first line in this part of the code.
What am I doing wrong? I have a total of 6 columns. Any suggestions.
dgPayrollInfo.GridColumnStyles(0).HeaderText = "Employee ID"
dgPayrollInfo.GridColumnStyles(0).Alignment = HorizontalAlignment.Center
dgPayrollInfo.GridColumnStyles(1).HeaderText = "Payroll ID"
dgPayrollInfo.GridColumnStyles(1).Alignment = HorizontalAlignment.Center
dgPayrollInfo.GridColumnStyles(2).HeaderText = "Pay Date"
dgPayrollInfo.GridColumnStyles(2).Alignment = HorizontalAlignment.Center
dgPayrollInfo.GridColumnStyles(3).HeaderText = "Gross Pay"
dgPayrollInfo.GridColumnStyles(3).Alignment = HorizontalAlignment.Right
dgPayrollInfo.GridColumnStyles(4).HeaderText = "Withholding"
dgPayrollInfo.GridColumnStyles(4).Alignment = HorizontalAlignment.Right
dgPayrollInfo.GridColumnStyles(5).HeaderText = "Net Pay"
dgPayrollInfo.GridColumnStyles(5).Alignment = HorizontalAlignment.Right
Thank you,
ibok23
|
|
|
|
|
You need to create the GridColumnStyle first, then added it to the GridColumStylesCollection. Just indexing a GridColumnStyleCollection, like your doing, will not create a new column.
Dim newGridColumnStyle As New GridColumnStyle
newGridColumnStyle.HeaderText = "Employee ID"
newGridColumnStyle.Alignment = HorizontalAlignment.Center
dgPayrollInfo.GridColumnStyles.Add( newGridColumStyle )
.
.
.
RageInTheMachine9532
|
|
|
|
|
Dim GridTableStyle1 As New DataGridTableStyle()<br />
GridTableStyle1.MappingName = "Customer"<br />
'Customer is the name of the table in the dataset<br />
<br />
Dim GridColStyle1 As New DataGridTextBoxColumn()<br />
With GridColStyle1<br />
.HeaderText = "ID"<br />
.MappingName = "CustID"<br />
<br />
End With<br />
GridTableStyle1.GridColumnStyles.Add(GridColStyle1)<br />
<br />
MyDataGrid.TableStyles.Add(GridTableStyle1)
|
|
|
|
|
I am finishing up the deployment package for my first VB.NET application. Is there a way I can add the VB redistributable to my startup project so that it will automatically install before my application, if it isn't already on the target machine?
Thanks!
|
|
|
|
|
No because your VB.NET app won't even launch without the .NET Framework already installed.
You'll have to install the framework during your app's installation. Search CodeProject and www.GotDotNet.com for articles on Bootstrapping Setup.
RageInTheMachine9532
|
|
|
|
|
OK - I downloaded the dotnetfx.exe file and the Bootstrap example. I think I have those correct, but in one of the MSDN article on this, it says that "The following line of code launches a silent install of Dotnetfx.exe:
dotnetfx.exe /q:a /c:"install /l /q"
Nowhere does it say where this code goes, or how it is called. This is my first VB.NET applicationm and things like this are very frustrating. Can anyone tell me how to implement this command? I am trying to put this application on a CD snd set it up so that the install begins automatically when the CD is inserted in the target computer, or the CD is inserted and the user clicks on "Startup" in the "Run" dialog box.
Thanks!
|
|
|
|
|
That command goes inside the Bootstrap sample. i haven't seen the code for it yet, mainly because I've deployed the .NET Framework to all of my client machines so I dont have to worry about this problem...
I'll check into the bootstrap sample and let you know...
RageInTheMachine9532
|
|
|
|
|
OK. After looking at the docs for the Setup.exe bootstrap sample, you don't have to do anything with that command. It just said that that is the command that will be used to start the setup for the .NET Framework. All you need to do is create a Settings.ini file with the appropriate information in it and make sure it is in the same directory as the Setup.exe file:
CD Root Directory
Setup.exe
Settings.ini
dotnetfx.exe
myapp.msi
any other files your app needs...
RageInTheMachine9532
|
|
|
|