|
I just recently built an online recruiting application and when the submit button is hit, the form data is sent to a flat file. It work fine but VS 2005 gives me a pop up message that says.
c:\inetpub\wwwroot\website.com\app.text
This file has been modified outside of the source editor. Do you want to reload it?
Yes Yes To All NO No to All
How do I stop this message box from popping up?
Thanks in advance
|
|
|
|
|
Try using a Try Catch statement.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
Johnathan,
The message box is popping up within 2005 because the file app.text is being modified outside of the ide (most likly by your application). Closing the tab "app.text" should solve your issue. The VS Ide is sometimes too smart for its own good.
You can only be young once. But you can always be immature.
- Dave Barry
|
|
|
|
|
That did the trick. Thanks alot.
|
|
|
|
|
I am working on this application where i should use the application to scan a picture or take one from a digital camera. I have heard suggestion about using a twain software as a third party to interact with vb.net so as to get this done. My problem is that where can i find one that that is free without limitations...I have found this one cal vintasoftTwain... but i neet a registration key for it..because it is limited from all the stuff i need to get done. It cannot save the picture, can only scan it and it keep showing that i need to register it before using it..
can anyone help in soucing a free Twain software so my project can get on the road.. i am stock..if you guys have any suggestion i am open to take it....
Nab
|
|
|
|
|
Have you looked at Koders.com, or Sourceforge.com?
You can only be young once. But you can always be immature.
- Dave Barry
|
|
|
|
|
|
Hi,
Does anyone know where I can find a book or some other resource for translating C++ code to VB.NET?
Thanks,
Zenly.
|
|
|
|
|
There isn't one. C++ doesn't translate directly to VB.NET. You actually have to known both lanugages and have a pretty good understanging of what the C++ code you're trying to translate is doing.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
Do you need a component to open a word document in a new window?
How easy is it to do?
I have a list of radio buttons, and when i select one and hit the button, i want the document to appear in a new window.
Any help would be great, thanks!
|
|
|
|
|
Try System.Diagnostics.Process.Start("C:\MyWordDoc.doc") .
|
|
|
|
|
The answer you have gotton before is good but if you wanted to select a file and open that selected file..you could use this one also..
drag and drop a openfiledialog control to your form... and use the following code..
<big>If OpenFileDialog1.ShowDialog() = DialogResult.OK Then<br />
System.Diagnostics.Process.Start(OpenFileDialog1.FileName)<br />
End If</big>
using this method... opens any file that is selected in their own program...and also a new window..
Nab
|
|
|
|
|
|
How do you select a specific folder?
|
|
|
|
|
I have a record like this
Note : "-----" is for space.
-------------------------------------------------
Name----Date & Time-------------Status
--------------------------------------------------
Man1----1/15/2007 5:19:02 PM----Up
Man2----1/15/2007 5:19:02 PM----Down
Man3----1/16/2007 5:19:02 PM----Up
Man4----1/17/2007 5:19:02 PM----Down
Man5----1/14/2007 5:19:02 PM----Down
Man1----1/17/2007 5:19:02 PM----Up
Man2----1/17/2007 5:19:02 PM----Down
Man3----1/14/2007 5:19:02 PM----Down
Man4----1/17/2007 5:19:02 PM----Down
Man5----1/15/2007 5:19:02 PM----Down
----------------------------------------------------
I want to take a report like this
--------------------------------------------------------------
Date & Time------------Man1-----Man2----Man3----Man4----Man5
--------------------------------------------------------------
1/14/2007 5:19:02 PM----Up------Up------Up------Down----Down
1/15/2007 5:19:02 PM----Up------Down----Up------Up------Down
1/16/2007 5:19:02 PM----Up------Up------Up------Up------Up
1/17/2007 5:19:02 PM----Up------Down----Up------Down----Up
---------------------------------------------------------------
Plz help me
Thanks
Kumaran
|
|
|
|
|
Where are you struggling? What have you tried? How have you attempted to organize the data?
|
|
|
|
|
Looks like a school project.
You may want to consider collections, and hashtables?
You can only be young once. But you can always be immature.
- Dave Barry
|
|
|
|
|
I need a script to get the name or path on a active window opened.This i need to run on a Pop-up Web page opened to display an Image.This image i have uploaded to this site. The Pop-up window does not include a Address to copy the path. I need a VBscript to automatically get the title so the i can put it in clip board.
Praveen
|
|
|
|
|
You can use FindWindow function within user32.dll. It will return window name and handle. I am not sure how to impliment it
|
|
|
|
|
The VB code below tries to get the Window title character for the First Active Window.
I have error Poping up on my screen when I run this.
Error "No Creatable Public Component detected"
" MSDN Collection Doesn't Exits"
What i need to do to get ride of this error?
Public Declare Function GetParent Lib "user32" (ByVal hwnd As Long) As Long
Public Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, _
ByVal wCmd As Long) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _
(ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Public Declare Function GetWindowThreadProcessId Lib "user32" _
(ByVal hwnd As Long, lpdwprocessid As Long) As Long
Private Sub Command1_Click()
Dim tempHWin As Long
Dim StringDisplay As String
Dim CountOfBytes As Integer
Dim Buffer As String
Dim Instnace As Long
tempHWin = FindWindow(vbNullString, vbNullString)
Buffer = Space$(128)
CountOfBytes = GetWindowText(tempHWin, Buffer, Len(Buffer))
Instance = ProcIDFromWnd(tempHWin)
StringDisplay = StringDisplay & Left$(Buffer, CountOfBytes) & tempHWin & Instance
Text1 = StringDisplay
End Sub
Function ProcIDFromWnd(ByVal hwnd As Long) As Long
Dim idProc As Long
' Get PID for this HWnd
GetWindowThreadProcessId hwnd, idProc
' Return PID
ProcIDFromWnd = idProc
End Function
Praveen
|
|
|
|
|
hallo,
i wnt any small ideal example of database connectivity (containing datagridview)
in vb.net(winforms) & mysql daatabase.
if anyone have any ideal example please give me.
---Priya
priya_p233@yahoomail.com
priya
|
|
|
|
|
If you google, there's a whole site out there dedicated to this.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
hi priya,
see this code I hope it will give some idea about mysql+ado.net using Vb.net
Dim connectionString As String = "Driver={MySQL};SERVER=localhost;DATABASE=NorthwindMySQL;"
Or you can use an ODBC DSN, as you can see from the following code that I've used TestDSN DSN to connect to the data source:
Dim conn As New OdbcConnection("DSN=TestDSN")
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim connectionString As String = "Driver={MySQL};SERVER=localhost;DATABASE=NorthwindMySQL;" '
Dim conn As New OdbcConnection(connectionString)
conn.Open()
Dim da As New OdbcDataAdapter("SELECT CustomerID, ContactName, ContactTitle FROM Customers", conn)
Dim ds As New DataSet("Cust")
da.Fill(ds, "Customers")
dataGrid1.DataSource = ds.DefaultViewManager
conn.Close()
End Sub
WINNING IS NOT OUR DREAM,IT'S A HABIT
HAVE A NICE EVENING
|
|
|
|
|
hi dornala,
Thank u so much for ur help.
i write as u given , i didnt get any error but data is not displayed in datagridview.
i put MsgBox(ds.Tables(0).Columns(0).ColumnName) it is showing columnName it means data is there is ds(dataset) but not seen on datagridview(DgvCustList)
will u give me wht to do plizzzz.....
Dim connectionString As String = "User Id=root; Password=root; Host=jupitor;port=3306;Database=timesheet;"
Dim conn As New MySqlConnection(connectionString)
conn.Open()
Dim da As New MySqlDataAdapter("SELECT custid,custcode,custname FROM cust_mast;", conn)
Dim ds As New DataSet("Cust")
da.Fill(ds, "cust_mast")
DgvCustList.DataSource = ds.DefaultViewManager
MsgBox(ds.Tables(0).Columns(0).ColumnName)
conn.Close()
-- modified at 8:33 Wednesday 17th January, 2007
-- modified at 8:34 Wednesday 17th January, 2007
priya
|
|
|
|