|
Hi,
I am making a Contact Database program with vb.net and MS Access 2003. I have 5 tables within the database and they are all relationed with the Contacts tabel. Now I have a Country table and I am using a combobox to the tabel with some countries that i wrote them from the database. Now how can i add a new country from the combobox within the program because he is not updating the new country into the combobox. can someone help me with this pls??
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Hi,
If I have understood correctly then you want to add some item to the combobox at dynamically, if so then you can use
ComboBox1.Items.Add("name")
Best Regards,
Apurva Kaushal
|
|
|
|
|
i cannot because an error occurs telling me:
CANNOT MODIFY THE ITEMS COLLECTION WHEN THE DATASOURCE PROPERTY IS SET.
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Hi Adrian,
It seems that you can't an item to the combobox once it has been assigned the datasource for it. So one solution could be to add whatever item you want in the datatable itself and then bind it to the combobox.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Using VB 2005.
I have a form on my Web Browser and it says search google. I have a textbox "txtGoogle" and when you click the search button "btnsearch" it will bring up search in www.google.co.uk in another form "Webbrowser.vb" in webbrowsercontrol "Dmxwebbrowser" how would you do this? (The form webbrowser.vb will be open already. if not I want it to load)
In the end we're all just the same
-- modified at 5:44 Thursday 18th May, 2006
|
|
|
|
|
Do a few searches on google, you'll work out how to build a search URL.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
And keep your eye on the Address bar while searching...
Yuvi Panda T
15 Year old Microsoft Student Partner
Blogs at : http://yuvipanda.blogspot.com
|
|
|
|
|
hi all,
how to find whether scanner in usb is connected or discoonected.
i would like to know the status of the scanner connection via USB.
whether its possible using code?
thanks in advance,
bye .
|
|
|
|
|
help me to solve the above isuue.
Is there any way to find the hardware connected or hardware details using
code.
thanks,
|
|
|
|
|
Hi,
you have to try with WIA !!
Take a look here: http://www.codeproject.com/dotnet/wiascriptingdotnet.asp
Regards
mjcm
|
|
|
|
|
thanks for ur reply.
i need an win api or code to know the scanner status in vb6.
help me,
bye
|
|
|
|
|
hi,
can we enter values to a listview control at runtime through keyboard )like textboxes)
|
|
|
|
|
you have to do some extra code for that. for this search custom listview ongoogle also there are couple of samples available on
Code Project[^]
Rizwan Bashir
|
|
|
|
|
Hi all,
I have used Windows API function : FindWindow(), now I want to use the VB.NET (Framework 2.0) function not the Win API function.
Thanks in advance,
Hung.
Hung
|
|
|
|
|
Can anybody please tell me how to export crystal report in PDF format from VB.
|
|
|
|
|
Can I have multithreaded programming in VB and How can objects on different threads communicate with one another?
|
|
|
|
|
in vb6 no you cannot. some body told me you can use doevents in vb but it is very limited and I have not explored much what does it do. so check it out . in vb.net there are many samples available on net. go to articles in codeproject and search threading you will found your answer.
Rizwan Bashir
|
|
|
|
|
I take it your talking about VB.NET.
It can be done using delegates. I dont have time to give you an example but there should be loads of information if you google. You can probably find some info in the articles here as well.
Jon
|
|
|
|
|
hi ,
i am building a report in CR , that have duplicate records !
i use the distinct in my SQL Statment , and i still get the duplicate records , is there a soulotion for this problem ? , can anyone help ?
thxx
|
|
|
|
|
in the crystal report you have one options saying distinct record. open the crystal report help and search it you will found exactly where you have to check the checkbox to get distinct records. I cannot tell as I worked on crystal around 3 years back last time.
Rizwan Bashir
|
|
|
|
|
that's great thank u i know how to use the distinct , i go to the report ,
DataBase-->Log on/off Service --> Options --> i i click the -V- on Distinct , the problem is that it is not working ! , i can even see the distinct in the sql statment ! , but it is not working !
help please ,,
|
|
|
|
|
there could be some reason why records are duplicating.. may be any id is different between two records. ok tell me if you directly place that query in query analyzer then does it display fine or duplicated. if duplicate records then fix the query over there. and after that it will work fine in crystal. as if database is returning the duplicate records then crystal will do nothing. because on checking the distinct in crystal, it just put the distinct in the query.
Best Regards
Rizwan Bashir
|
|
|
|
|
hellow ,
thank you Rizwan , i think the problem is from my database , not from the query , if u know anyway that can remove duplicating records , tell me , thank you ..
|
|
|
|
|
Hi all,,
I am trying to make a vb.net socket that allow user to upload image files from clients machines to server machine. i searched the net and i found the following code samples.
Code for Server:-
Const portNo As Integer = 500
Dim localAdd As System.Net.IPAddress = _
IPAddress.Parse("127.0.0.1")
Dim listener As New TcpListener(localAdd, portNo)
listener.Start()
Console.WriteLine("Listening...")
Dim tcpClient As TcpClient = listener.AcceptTcpClient()
Dim NWStream As NetworkStream = tcpClient.GetStream
Dim bytesToRead(tcpClient.ReceiveBufferSize) As Byte
'---read incoming stream
Dim numBytesRead As Integer = NWStream.Read(bytesToRead, _
0, CInt(tcpClient.ReceiveBufferSize))
'---write the bytes to file
Const FILE_NAME = "c:\image.gif"
Dim fs As System.IO.FileStream
fs = New FileStream(FILE_NAME, FileMode.CreateNew, _
FileAccess.Write)
fs.Write(bytesToRead, 0, numBytesRead)
fs.Close()
tcpClient.Close()
listener.Stop()
Console.ReadLine()
Code for Client:-
Const portNo = 500
Const FILE_NAME = "c:\ondotnet_logo.gif"
Dim tcpClient As New System.Net.Sockets.TcpClient
tcpClient.Connect("127.0.0.1", portNo)
Dim NWStream As NetworkStream = tcpclient.GetStream
Dim bytesToSend(tcpClient.ReceiveBufferSize) As Byte
Dim fs As FileStream
fs = New FileStream(FILE_NAME, FileMode.Open, _
FileAccess.Read)
Dim numBytesRead As Integer = fs.Read(bytesToSend, _
0, bytesToSend.Length)
fs.Close()
'---send the text
Console.WriteLine("Sending ...")
NWStream.Write(bytesToSend, 0, numBytesRead)
Console.ReadLine()
tcpclient.Close()
I tried the code and it worked succesfully..but i noticed that the new file image.gif will be corrupted if the original one has size larger than 8192 bytes!!
1- i don't know how to make it works for larger files!!!
2- i need it to be work if multiple users upload file at the same time!!!
i am new in sockets programming , so any comment will be very helpful
thanks
shelal
shelal
-- modified at 3:25 Thursday 18th May, 2006
|
|
|
|
|
please while i am reading from txt file
i faced some problems please help
dim i as io.streamfile
dim t as io.file
i=t.open("c:")
while t.read
listview.add(t.readline)
end while
the code is similar to this
but the problem is when he type any row he missed the first char so that this is wrong
please help me how can i solve this problem as type all of the string
when i try to print "amarni"he types "marni"
Amarni
|
|
|
|