|
Hi Unforgiv3n,
Thanks for a possible solution but unfortunately it never worked.
|
|
|
|
|
then i realy dont know sorry mate
you will have to ask vs support on microsoft
|
|
|
|
|
I found a workaround. If you run the app from the code viewer then it works. If you run the app from View designer then you get the message.
I am just going to go with running app in code viewer for the present time.
I also managed to install SP 1 but it made no difference.
Thanks again for all your help.
|
|
|
|
|
I'm having a problem when using a msgbox on a second loaded form. I have two forms ... frmMain (default) and frmSecondary. When the program is run, frmSecondary will eventually be loaded and displayed as the active window (both are maximized, frmMain is still loaded in the background). Now, when a msgbox is used to advise the user of some occurence on frmSecondary, the frmSecondary disappears and frmMain suddenly appears behind the msgbox. Once the msgbox is clicked(i.e.,closed) the frmMain disappears (usually),and again reveal the frmSecondary. I would be grateful if someone could tell me why this is occurring.
Note both the forms are border Style is set to None.
Thank you.
modified on Friday, January 8, 2010 5:06 AM
|
|
|
|
|
Try
MessageBox.Show(frmSecondary, "Hello World");
Good luck
I are Troll
|
|
|
|
|
Hello Eddy Vluggen,
Its Vb6 application.
|
|
|
|
|
I guess that the MsgBox is a form without a parent, and the MsgBox [^] method of VB6 doesn't have a parameter to set that. Without a parent, focus will be returned to the application, giving it's mainform the focus.
Alternatively, you can call the MessageBoxA method from User32;
Private Declare Function MessageBox Lib "user32" Alias "MessageBoxA" ( _
ByVal hWnd As Long, _
ByVal lpText As String, _
ByVal lpCaption As String, _
ByVal wType As Long) As Long That goes into a module, and you can call it like this;
MessageBox Me.hWnd, _
"Caption", _
"Text goes here", _
vbExclamation Good luck
I are Troll
|
|
|
|
|
In what form do you call the messagebox?
Is frmsecondary shown modal or not?
|
|
|
|
|
Tom Deketelaere
Its modaless form . Its bcoz i have set form border style to none.So i just wanna know why is causing problem with borderless form.
|
|
|
|
|
I'm certainly glad you modified your header to show how frustrated you are that no-one dropped what they were doing to provide you with the answer. Certainly all the time you have posted to help others should be a beacon to the rest of us.
Jon
"Fix reason firmly in her seat, and call to her tribunal every fact, every opinion. Question with boldness even the existence of a God; because, if there be one, he must more approve of the homage of reason, than that of blindfolded fear. " ~ Thomas Jefferson
Soap Box 1.0: the first, the original, reborn troll-less
|
|
|
|
|
Im creating a Webserver using TcpListener and Net.Socket. Everything is working for html files and such but i cant figure out how to execute serverside asp.net code. Is there any .net class that can compile or generate a html file to send to the client or will i have to write my own? I been searching everywhere and cant find nothing.
lilbiz8
|
|
|
|
|
You should use ASP.NET hosting API. You can downloaded an open-soursce server example here: []
|
|
|
|
|
How can i get the date, burned speed, manufacturer id of CD or DVD that i was burned?
|
|
|
|
|
dont cross post - you asked this question in the c# forum. Pick the best forum matching the language/whatever you are using, ask it once !
cross posting will decrease your chance of getting a real answer
'g'
|
|
|
|
|
Hi
Questions regarding ListView in VB6:
a) How can I display more than 1 icon in row?
b) how can I display an icon in a specific column? Using the SmallIcon propery always displays the list on the left. I want the icon to be displayed in the 5th column for example.
thank you.
|
|
|
|
|
I wonder if anyone can give me advice on the following?
On my PC I have visual studio 2003 and 2005. They work with no problems i.e. I have systems written in 2003 and systems written in 2005. I am now going to start a new project and this will be written in 2008.
1. Can you see any problems installing Visual Studio 2008 onto my PC i.e. will it clash with 2003 and 2005.
2. Will my previous systems in 2003 and 2005 still work?
3. Do you recommend this should not be done.
Any feedback would be most welcome.
|
|
|
|
|
I had all 3 installed on my system at one time and did not face any problems.
BTW - this question would have been answered better if you had asked it in Visual Studio[^] forum.
There are only 10 types of people in this world — those who understand binary, and those who don't. |
|
|
|
|
|
All three versions will coexist very happily on the same machine. Just be careful opening projects and don't convert projects you want to keep in the older versions of VS.
|
|
|
|
|
Visual Studio versions can coexist quite happily, however the last one installed will "steal" the relevant file extensions, e.g. when you double-click a .cs file in Windows Explorer, it will open in the VS version you last installed.
|
|
|
|
|
Luc Pattyn wrote: when you double-click
Once can right click and choose "Visual studio version selector". That picks up the right version (most times).
There are only 10 types of people in this world — those who understand binary, and those who don't. |
|
|
|
|
|
Hi all,
I have the below code I’m using [in VB.NET 2005] to populate three DataGridView’s I
have on my form without much success at the moment as the DataGridView
only displays one column of data once it has run :/
In the example I am just trying to get it working for one DataGridView
with the intention of passing in SQL to define the DataSet’s once its
working.
I am unsure weather I have missed something because I can view all the
data in the visualiser but it only seems to populate the one column in
the DataGridView.
Please help.
Scott.
Private Sub cboUserName_SelectedIndexChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles cboUserName.SelectedIndexChanged
Dim lngUserID As Long
For i As Integer = 0 To ALWDBDataSet.Tables("tblUser").Rows.Count - 1
If ALWDBDataSet.Tables("tblUser").Rows(i).Item("UserName") = cboUserName.Text.ToUpper Then
lngUserID = ALWDBDataSet.Tables("tblUser").Rows(i).Item("UserID")
Exit For
End If
Next
'// Initialize a new instance of the OleDbConnection Class
objConnection = New OleDbConnection(strConncectionString)
'// Build query string
Dim strSQL As String = "SELECT * FROM tblUserLogs WHERE UserID = " & lngUserID
'// Initialize a new instance of the OleDbCommand Class
objCommand = New OleDbCommand(strSQL, objConnection)
Call PopulateGrid(dgvLogInfo, "tblUserLogs")
End Sub
Private Sub PopulateGrid(ByVal grd As DataGridView, ByVal strTable As String)
'// Initialize a new instance of the OleDataAdapter class
objDataAdapter = New OleDbDataAdapter
'// Initialize a new instance of the DataSet Class
objDataSet = New DataSet
'// Set the SelectCommand for the OleDbDataAdapter
objDataAdapter.SelectCommand = objCommand
Try
'// Poplate the DataSet
objDataAdapter.Fill(objDataSet, strTable)
'// Bind the DataSet to the DataGrid
grd.DataSource = objDataSet
grd.DataMember = strTable
'// Set the AlternatingRowsDefaultCellStyle.BackColor property
grd.AlternatingRowsDefaultCellStyle.BackColor = Color.WhiteSmoke
'// Set the CellBorderStyle property
grd.CellBorderStyle = DataGridViewCellBorderStyle.None
'// Set the SelectionMode property
grd.SelectionMode = DataGridViewSelectionMode.FullRowSelect
'// Set the AutoSizeColumnsMode property
'grd.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells
Catch OleDbException As OleDbException
MessageBox.Show(OleDbException.Message)
End Try
'// Cleanup
objCommand.Dispose()
objCommand = Nothing
objDataAdapter.Dispose()
objDataAdapter = Nothing
objDataSet.Dispose()
objDataSet = Nothing
objConnection.Dispose()
objConnection = Nothing
End Sub
|
|
|
|
|
Soooo where are you binding the new dataset to the DataGridView?? I don't see it anywhere.
|
|
|
|
|
On line 17 of the PopulateGrid sub
'// Bind the DataSet to the DataGrid
grd.DataSource = objDataSet
grd being the DataGridView that is passed into the sub "Call PopulateGrid(dgvLogInfo, "tblUserLogs")"
|
|
|
|
|
Have you defined your own columns in the DGV or are you using the automatically generated columns?
|
|
|
|
|
Ah, well this is where I might be going a bit wrong then – please forgive my ignorance but I thought [as I could see all the data in the visualiser maybe] that the columns would not need to be defined explicitly, when I look at the data in the DataGridView after the procedure has run the column headings of the table are in there, but as I stated in the original post only one column has data in it
Tanks for the quick response.
EDIT: I used these two methods
grd.Columns.Clear()
grd.AutoGenerateColumns = True
And it seems to be working ok now.
Thanks for your help.
modified on Sunday, January 10, 2010 10:37 AM
|
|
|
|