
georg
Avatar/Signature-
Posts
28 -
Joined
-
Last visited
Personal Information
-
Occupation
Analyst/Programmer
-
Visual Studio .NET Version
Visual Basic .NET Standard
-
.NET Preferred Language
VB.NET
georg's Achievements
Newbie (1/14)
0
Reputation
-
You might find an answer to your question in this thread. georg
-
Enigma151, As VolteFace indicated, I got it (cough) wrong when I told you to use "Go To Definition" to find the Procedure. You won't be able to "go to the definition" and find the Procedure, because, as your error message and VolteFace so succinctly explained, it does not exist and you need to create it. georg
-
Hi Hamburger1984, I put your Me.Invalidate piece of code underneath my Me.Controls.Add(MyDataGrid) in Public Sub within the form that holds the datagrid. I also tried Me.MyDataGrid.Invalidate, but unfortunately there was no change in the result. It looks promising though, so I will try it with some of the overload arguments. Thanks, georg
-
Enigma151, If you right click in the middle of "Ctrls_TextChanged" text in your piece of code that says: AddHandler MyCombo.TextChanged, AddressOf Ctrls_TextChanged Then you should get a context menu. On that context menu select "Go To Definition" (should be the 3rd one up from the bottom of the menu). You will then be taken to the location of the Event Handler (if it exists at all). georg
-
Hello All, When I load my datagrids (I can load a number of different DataGrids programatically) on to my form using: Me.Controls.Add(MyDataGrid) I find that I also need to do something to rebuild/refresh/repaint the form as well. I did have a work-around that involved resizing by 1 pixel to force it to rebuild/refresh/repaint, and this worked fine. A few days later I find that if the form is maximised, then this workaround doesn't work. I've tried MyForm.Refresh and MyDataGrid.Show, both before, and after the Me.ResumeLayout() statement, and it has no effect: I just get a big MidnightBlue area where my datagrid is meant to be until I resize it manually. Does anyone have an idea as to what I am doing wrong? georg
-
Hi All, I'm trying to do a fake multi column combo box, but the irregular width of characters is making things a bit messy. Is there any way to measure the width of the font and then put some padding in my concatenated strings to even the columns up? georg
-
Moishe 1. Declaration: Dim colTime As New DataGridTextBoxColumn() 2.Mapping and Formatting colTime.Mapping = "Time" colTime.Format = "HH:MM" 3. Add to the DataGrid MyDataGrid.TableStyles(0).GridColumnStyles.Add() I think these are the core elements of what you need to do, but I haven't tested the "HH:MM" bit. georg
-
Creating Controls At Runtime using a Variable Name
georg replied to JCreationsInc's topic in Windows Forms
JCreationsInc Here is something to get you started: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Call ComboCreator() End Sub Private Sub ComboCreator() Dim x As Integer Dim sProgramName As String = "PoopList" For x = 1 To 10 Dim cmbProgramName As New ComboBox() cmbProgramName.Top = x * 20 cmbProgramName.Name = sProgramName & x Me.Controls.Add(cmbProgramName) Next End Sub Create a new form, add a button to it and then put the above code in. georg -
Hello All, I'm having a bit of trouble with tabbing and the dropped down combo box (within a datagrid). e.g. ColumnComboBox.DroppedDown = True and Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, _ ByVal keyData As System.Windows.Forms.Keys) As Boolean 'Explanation: This will turn the enter key into a tab key If msg.WParam.ToInt32() = CInt(Keys.Enter) Then SendKeys.Send("{Tab}") Return True End If Return MyBase.ProcessCmdKey(msg, keyData) End Function 'ProcessCmdKey The problem is, that when I select an item in the dropped down portion of the ComboBox, and then hit Enter (which is processed as a Tab), the Text Box "underneath" the ComboBox doesn't collect the new entry. So, I guess my question is really: How do I "get at" the selected item in the ComboBox which inherits the Text Box in the datagrid? Thanks, georg
-
Hi piscis, Here is something to give you an idea: For Question 1 Dim ds As DataSet = Me.DataSource 'where "Me" is the datagrid Dim rowCount As Integer = ds.Tables(0).Rows.Count() Dim col As Integer = 4 Dim row As Integer Dim dsum as double For row = 0 To rowCount - 1 If IsNumeric(Me.Item(row, col)) Then dsum = dsum + CLng(IIf(IsDBNull(Me.Item(row, col)), "0", Me.Item(row, col))) End If Next row This code above just tells you how to sum everything in column 4. A really good source for this is posted on this forum, but here is the direct link: http://www.syncfusion.com/FAQ/WinForms/default.asp Regards, georg
-
ADO.NET Forcing updates in the Datasource
georg replied to georg's topic in Database / XML / Reporting
My old friend the serializeable class has come to the rescue. Problem solved. Thanks for looking. georg -
Thanks divil. Modicum of relief to know that I'm not alone. georg
-
Hello All, I'm making event driven calls to the db (Access 2000) from my windows form to collect a Transaction id (that I have created) These Transaction ids must be unique. I get a Transaction id from the database using a Datareader, and then write the next Unique Id in the sequence back to the same table with an Update query (using ExecuteNonQuery) When I try to get the Transaction Id that I just wrote to the table, sometimes it appears as if the Update hasn't had time to come into effect (when I repeat the event quickly). Is there anything like "Database Refresh" like I had in DAO? Thanks, georg
-
Thanks for responding AndreRyan. I don't get to see the pin. My registry knowledge is limited, and I know that you don't go poking about in the registry if you don't know much about it. I guess the properties aren't that important. ;) georg
-
Does anyone else have this problem? After I have been in the IDE for about 10mins, I can no longer access the property grid of whatever I am looking at. I have the property grid on AutoHide, and when I click on it, it refuses to display. It also won't display if I right click on whatever I am working on and select Properties from the context menu. It will only come back (and only for a short time) if I close down the IDE and re-open it. Doesn't happen with any of the other Auto Hide windows. Microsoft Development Environment 2002 Version 7.0.9466 Microsoft .Net Framework 1.0 Version 1.0.3705 georg