|
I'd like to accomplish the following, but have no idea how:
In my application I have this datagrid which displays customer names. I also have a textbox. I'd like to use this textbox to find records in the datagrid. When a user enters, for example, a few letters, the position of the row in the datagrid needs to be set to the customer name starting with those letters.
Is this possible, and if so, can anyone point me in the right direction?
Thanks in advance,
--Erwin
|
|
|
|
|
Hi!
I m using AXWebBrowser's navigate method navigate to target page..
page get displayed..fine..when user clicks a button or link a popup page is displayed ..what i want is to display the target page in the same window, i mean no popup but a normal (navigated/directed) page..how???
Note:sSerious comments plz
Thanks,
sufyan
|
|
|
|
|
You have to add a handler to your Browser:
AddHandler yourAxBrowser.NewWindow3, AddressOf reactPopUp
Private Sub reactPopUp(ByVal sender As Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_NewWindow3Event)
Try
e.cancel = True
If Not e.bstrUrl = "about:blank" Then
yourAxBrowser.Navigate(e.bstrUrl)
End If
Catch
MessageBox.Show("Exception in reactPopUp-Function")
End Try
End Sub
greetings
tom
|
|
|
|
|
I am facing a problemin connecting a password protected MS-Access 2000 database with a Visual Basic6.0 Application. I am using ADO recordset.
Connection is working fine if I use DSN or use a older version of Access file. Can anyone solve my problem
deepaish
|
|
|
|
|
i want to make reports in vb 6.0.. when i use datareport how can i change the datas in the reports at run time?
|
|
|
|
|
Well, you want to change data for a particular field value, user will enter.
For this you can either connect a datareport using a recordset and then show the report.Before connecting design the report and field name you should be inserted as u will name then in query .
Or you can use a DataEnvironment SQL command with a parameter. In this case before calling the report pass in the parameter value to DataEnvironment Command .
deepaish
|
|
|
|
|
any way to log all the events from the MSN messenger popping up message windows , so i can see all names of ppl who logged in during the day ???
thanks.
|
|
|
|
|
hi,
How thes images will be loaded at run time in the following condition.
When user login into any application and if certain modules are being assign to him. So i want to dispaly the images of that modules.
for example:-
userA has 2 modules are assigned (Module M1& M2) so when userA login he will only see the images of moduleM1 and moduleM2 not other module Images
bhushan
|
|
|
|
|
Hi Guys,
I am a fresher in .NET. I am working on a project in VB.NET with MS Access as backend. I have searched several web sites. However, all of them provide similar information when it comes to database connectivity. I want to know if the application can connect to the database without us having to hard code the path to the database in the code.
Also, if the application is deployed on a different system on a different drive(this may matter if the database path is hard coded), then how do we overcome this issue.
Thanks in advance.
mayhem
|
|
|
|
|
Instead of hard coding you can use FileOpenDialog and that file path can store in any one text box that will call in you code, saystrConnection = New OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;Data " & "Source=" & txtMdbPath.Text & ";")
Johnson
|
|
|
|
|
Hi Johnson,
Thnx for your reply. I understand that this can be done the way you mentioned. However, is it feasible to allow a user to perform these tasks. Also, the users may not agree with it.
Is there a way like we have in asp where we can set the path at runtime using server.mappath...Also, the access db's will be stored in the same folder as the application.
thnx.
Mayur
|
|
|
|
|
There are several options. You can store the Database location in the registry or preferably in an application or user config file. You can then read the file at runtime and use a connection string as in the post above.
Jon
|
|
|
|
|
Hi Jon,
Thnx for your reply. Since I am fresher in .NET, I would appreciate if you could provide me some example or code, which would help me understand the soln correctly.
Mayur
|
|
|
|
|
|
Guys,
Is it possible to change ConnectionString in a Dataset in run time ?
WiL
|
|
|
|
|
DataSets don't have connection strings. Can you explain your problem in more detail?
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
Colin Angus Mackay wrote: DataSets don't have connection strings. Can you explain your problem in more detail?
I want to access multiple DBase database files. The idea is to create a dataset and when everytime I browse for a DBF file, its automatically point the dataset to that file. Is it possible using dataset?
Thank you
WiL
|
|
|
|
|
Just create a new data set and dump the old one. DataSets are disconnected data - they don't belong to a data source. If you want to perform operations between a DataSet and a data source you need to use an adapter to plug the two things (temporarily) together.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
I'm sorry for this very noob question, but how to create dataset or data source at runtime ?
Thank you for replying so fast
WiL
|
|
|
|
|
shiroamachi wrote: but how to create dataset or data source at runtime ?
By data source I just mean a source of data like SQL Server, Access, dBase, etc.
To create a dataset look at the code that visual studio generated for you when you added the dataset and data source in the designer. Alternatively, just about any tutorial on ADO.NET will show you the various ways in which you can create DataSets
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
hi,
how can i add the user shortcut keys at runtime in the applicaion
FAILURE is the first step towards SUCCESS
|
|
|
|
|
try the following code....
' Appends a shortcut key to the caption of a menu item.
Public Sub AddMenuShortcut(Menu As Menu, Shortcut As String)
Menu.Caption = Menu.Caption & vbTab & Shortcut
End Sub
This code fragment adds shortcut keys to commands on the Edit menu:
Private Sub Form_Load()
AddMenuShortcut mnuEditUndo, "Ctrl+Z"
AddMenuShortcut mnuEditCut, "Ctrl+X"
AddMenuShortcut mnuEditCopy, "Ctrl+C"
AddMenuShortcut mnuEditPaste, "Ctrl+V"
AddMenuShortcut mnuEditDelete, "Del"
End Sub
FAILURE is the first step towards SUCCESS
|
|
|
|
|
How I can create a button in ie toolbar.
I want Add Link to ie Toolbar when clicked on link ,go to
<www.your-site>by vb programing.
Is it possible?
Signed By S.E
|
|
|
|
|
You mean u click the button in internet explorer toolbar to link to vb programming.
|
|
|
|
|
Dear Ramani.r
Yes, I want add one button in internet explorer toolbar,then when click the button be link.
if I need the component for project?
I hope I have made my self clear
any suggessions please.
thaks for your reply.
Signed By S.E
|
|
|
|