|
hello
im currently using VB 6
i need help cause i forgot how the code should be
i want to delete a name for a combo or list box
example
the box have
aaaa
bbbb
cccc
if bbbb is selected then the box will remain(after a button been press)
aaaa
cccc
can this be done??
please help me
thank you in advance
Gary
|
|
|
|
|
hi ..
i am not properly able to understand what u mean .. here is the code to delete the selected item in the list ..
..... Private Sub List1_Click()
..... List1.RemoveItem (List1.ListIndex)
..... End Sub
This code will delete the selected item in listbox while cliking it .. bye
|
|
|
|
|
hello
thank you for this code
but what if i try to use a combo box?
is it the same type of coding or it need something different?
thank you for your help
Gary
|
|
|
|
|
hi
same code will work perfectly for combobox ...
bye
" The Thought that guides ur intelligent is more important than how intelligent u r "
|
|
|
|
|
|
Hello...
I try writing a socket programming (server & client program) but now I am stuck because I had mix up code of UNIX & WINDOWS. Further more, i get lost totaly now as my code run properly. Suddenly i can't understand what am I writting.
Anybody can help me? Appreciated if you can provide me a complete sample of server / client program codes.
Please advise between TCP & UDP, which one is better for socket programming?
Thank you very much!
Regards,
libra
|
|
|
|
|
programmingcodes@hotmail.com wrote:
Please advise between TCP & UDP, which one is better for socket programming?
Depends on the application. TCP is a connection based protocol that ensures all packets get to their destination and in the correct order, while UDP doesn't guarantee anything. If your doing file transfers use TCP. If your streaming audio/video use UDP.
Can't help you if you don't ask a specific question with the problem your having. And what do you mean by "I had mix up code of UNIX & WINDOWS"??????
RageInTheMachine9532
|
|
|
|
|
Hello,
But, am I right to say that if someone would like to drop out from the connection or join the connection, it is better for me to select UDP?
However, I am writting by using on a single PC, all client & server are same pc. TCP should not be a problem, am I right?
From your experience, which one is more easier, TCP or UDP?
I use UNIX header file into my Windows. Hence, a lot problem come out. Please advise what .h file should I include. My code now using sys/types.h, sys/socket.h, netinet/in.h, arpa/inet.h & unistd.h. As I know, I should use Winsock.h to replace sys/socket.h. But, between Winsock & Winsock2, which more suitable?
Thank you.
|
|
|
|
|
...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
|
|
|
|