|
|
Hi,
Great ... on the other hand, check Dave's comment regarding the location of database!
best regards,
|
|
|
|
|
Dear All,
I have simple project,has many forms.I just need to close all other forms if they active(Ex:Need to close Sales Form automatically When Clicking Invoice Form).I am not using MDI Forms.I just need an idea about Code How to implement this.
|
|
|
|
|
In visual studio 2008 if you use the "application framework" you can choose the "shutdown mode" in the project properties. (maybe in older versions of visual studio too, i did not check it)
Project -> Properties -> Application -> Shutdown mode
If you want to write a statement that closes your application you can use
System.Windows.Forms.Application.Exit()
I think the "End" keyword still works too in a VB.Net application
It feels good to learn and achieve
|
|
|
|
|
thanks for reply.you code for Exit the application.But i need a form close automatically while we clicking for another form.
Example
I am working with Sales form and Also clicked for Invoice form.So we have two forms already opened state.I just need Sales form Close itself when i click for another form.in Clearly I need only two forms(Parent form and one child form)active at time.
hope your reply
|
|
|
|
|
There is no built-in support for this. You can make your own based on Application.OpenForms; enumerate all open forms and close the ones you don't want (e.g. main form, and this form)
|
|
|
|
|
|
How do I extract the AxInterop and the AxWMPlib files from wmp.dll??? I did it once but totally forgot how I did it. Need Help on this one.
rspercy
1 + 1 = 186,440....Depending on the species.
|
|
|
|
|
The AxInterop and AxWMPlib files are not extracted from wmp.dll; they are generated by Visual Studio. To re-generate them, you just add a reference to the Windows Media Player COM component
|
|
|
|
|
The Windows Media Player com component does not show up. I have tried the wmp.dll and this fails to register. I registered it with regsvr32 and it still does not show up. I am using VS 2008 pro.
rspercy
1 + 1 = 186,440....Depending on the species.
|
|
|
|
|
Then something has gone wrong. I've just added a reference to the COM component Windows Media Player, and the Interop components are showing up perfectly for me
|
|
|
|
|
The only thing that shows up for me is WMPlib, nothing else.
rspercy
1 + 1 = 186,440....Depending on the species.
|
|
|
|
|
In visual studio 2008 when I add field to the ACCESS database table its not making changes to DGV. However if I delete a field in database its deleting the contents but still showing the field in DGV. I am really puzzled.
Any prompt response would be appreciated.
|
|
|
|
|
The code you wrote, or dragged'n'dropped, is not automatically updated when you make changes to the database schema. You have to update any code you're written to deal with the new changes to the database. No, I really can't tell you the step-by-step on how to do it. There's just too much that you could have done and I have no way of knowing what needs to be changed and how.
|
|
|
|
|
hello frinds
i have problem that
i want to include connection string as file or procedder in my project but i didn t do it
plz help me
i well be thankful to you
|
|
|
|
|
shahzadfaisal wrote: i want to include connection string as file or procedder in my project but i didn t do it
Then you should.
There is nothing worse than putting things off!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
You're harsh!
Funny!
But Harsh.
------------------------------------
"I am always serious about what I do, not necessarily about how I do it."
Tom Baker
|
|
|
|
|
I try.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Joking aside, add it as a Resource named ConnectionString, and use My.Resources.ConnectionString instead of the literal connection string
|
|
|
|
|
Hi,
Suppose if i have an test.msi in my machine and im xeecuting it (by double clicking on it..)now the requirement is i need to get the path of the msi from where it"s getting executed...Please help me...
|
|
|
|
|
More information needed!
Why do you need to do this? The msi will quite happily do its stuff without you knowing where it is.
Or are you saying that you need to get this information from within a setup project that you are creating?
You see, with what you've given us, it is almost impossible to help.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
That's a bit of a problem. Code running inside the .MSI really should not care about the path to the launched .MSI. Since everything it's dealing with is contained within the .MSI, a properly designed installer shouldn't have to deal with outside files/components.
What are you trying to do with this??
|
|
|
|
|
Hi, I am having problem to update the database from the changes made to DGV.
Following is the code and line in the bold doesn't update the database. Please help me
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'Db1DataSet.Sheet1' table. You can move, or remove it, as needed.
Me.Sheet1TableAdapter.Fill(Me.Db1DataSet.Sheet1)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If OpenFileDialog1.ShowDialog(Me) = DialogResult.OK Then
Dim fi As New FileInfo(OpenFileDialog1.FileName)
Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=Text;Data Source=" & fi.DirectoryName
Dim objConn As New OleDbConnection(sConnectionString)
Dim objDataSet As DataSet = New DataSet()
objConn.Open()
Dim objCmdSelect As New OleDbCommand("SELECT * FROM " & fi.Name, objConn)
Dim objAdapter1 As New OleDbDataAdapter
objAdapter1.SelectCommand = objCmdSelect
objAdapter1.Fill(objDataSet, "test")
DataGridView1.DataSource = objDataSet.Tables(0).DefaultView
objConn.Close()
Me.Sheet1TableAdapter.Update(Me.Db1DataSet.Sheet1)
End If
End Sub
modified on Saturday, April 11, 2009 3:26 AM
|
|
|
|
|
What sort of database, looks like an old DBF connection method.
I suspect this has nothing to do with a database but is an attempt to read in excel files!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
its access database in addition to the csv file.
Reading from csv file into DGV and updating an existing access database from that DGV. I hope I made it clear.
|
|
|
|