|
It's because you are doing a listen and a connect on the same port. If you have your app setup as a server then you are going to listen and accept and pass the handle off so that the server can listen for more connections. If you app is a client then you are going to connect to the server and start sending and or receiving data.
Look at some the client server tutorials on this site.
Tom Wright
tawright915@gmail.com
|
|
|
|
|
Stop using URGENT! You have been warned at least twice. Either read the guidelines and comply or stop posting.
__________________
Bob is my homeboy.
|
|
|
|
|
Hi all,
Iam reading from an rtf file some data. i have managed to save them in an array textdata seperated by a comma. What is the fastest way to load data from this array to a sql table? kNowing that i might sometimes have multiple rtf files to read from .
|
|
|
|
|
samerh wrote: i have managed to save them in an array textdata seperated by a comma
What? Are you saying that you read a bunch of RTF (Rich Text Format) files and saved the text in an array? Left's see the code that did this.
samerh wrote: What is the fastest way to load data from this array to a sql table?
Keeping it simple, use an SqlCommand with a parameterized SQL INSERT statement and call this command for each element in your array. If I understand what you're trying to do correctly, you don't even need the array. Just read one file and insert it into the database, read the next, insert it, read, insert... See pattern here?
|
|
|
|
|
Iam new to VB.Net 2005 .I want to write a code such that whenever the user double-clicks on Datagridview the corresponding row values should be displayed in the relevant Textboxes.
I have typed as
txtecode.text=datagridview.item(columnindex,rowindex)
txtecode.text=datagridview.item(0,DATAGRIDVIEW.CURRENTROW.INDEX)
But it is showing error
Please give me the Code to display the data
Tahnk you in advance
|
|
|
|
|
hi,
Use this one at double click event of DatagridView
dim i as integer
i=datagridview.SelectedRows.Item(0).Index
' here 0 indicate first row from selected rows and rowno is store in var. i
txtecode.text=datagridview.rows(i).cells(0).tostring
' here i use first column of selected row(mean first row). u specify according to your requirement
Hope this Helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
I have a new blank web page in vb.net (Default.aspx), and I want to call a webpage design to appear in the same blank web page.Sort of a template.
I have the .css design already.Now how do I call it to appear in that vb.net webpage??
Please help
kagiso
|
|
|
|
|
|
The css only contains style for the design, you also need the html code for the design.
Paste the html in the body tag, and add a link tag in the head that uses the css file.
---
single minded; short sighted; long gone;
|
|
|
|
|
Still lost....say more
kagiso
|
|
|
|
|
matjame wrote: Still lost....say more
please...
|
|
|
|
|
What is it that you don't understand?
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi all...
I have a datagrid with values bound to it from a table..I have a check box in every row of the datagrid.If i check the check box and click the delete button present in the form,the checked row of the datagrid should be deleted(ultimately deleting the data from the database table itself)..If i check all the rows in the datagrid and click the delete button ,all the rows should be deleted..Someone help me in this regard..
Sample code would do more help...
Thanks in Advance...
Balaguru
|
|
|
|
|
YOu need to delete the data on the table and then update the DataGrid.
See http://msdn2.microsoft.com/en-us/library/feh3ed13(VS.80).aspx[^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
hi, maybe you can use the double click event of the datagrid. this is the scenario, if you double click your datagrid then a messege box will appear that saying if you want to delete the selected row.if yes then put your code to delete that record.that's my idea.
Don't block the drive way of all the newbies in programming.
|
|
|
|
|
85512698570@mobitel.com.kh
I have used above to send to sms to mobile phone, but it not work.
@mobitel.com.kh "Cambodia Mobile phone network"
85512698570 "Phone number"
Please help me
i get and error message "Mailbox unavailable" so it wrong with Receipient's Cellular Carrier or something else
Socheat
................
|
|
|
|
|
i have a dll .
i want to send that
can u tell me how to attach the dll with the thread?
Exactly The way u attached ur exe with the thread.
|
|
|
|
|
Can u send to my email?
socheat@khmerfriend.com
Socheat
................
|
|
|
|
|
|
Am waiting.
................
|
|
|
|
|
Can u send it to my mail
prathap_middi@yahoo.co.in
|
|
|
|
|
What i can send u?
Socheat
................
|
|
|
|
|
hi,
I am making a program that creates an item in the context menu . Like i am right clicking the folder , then i am getting an item , say the name of my program.and on clicking it , i am getting the window of my program opened.This is working very fine.
Now My question is
The folder , which I am right clicking , can i get it's complete path in my form which is openning on right clicking the item ( appearing in the context menu of that folder)
|
|
|
|
|
It sounds like you are creating a shell extension, if so, then yes you can. Just pass the filename that you are clicking to your program (using a "%1" verb), and then read the argument in your program using My.Application.CommandLineArgs .
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
Hi ,
can u please tell me how should i sue these terms like "%1 and My.Application.CommandLineArgs ?????
|
|
|
|