Search results for query: *

  1. X

    Question MOF Error Trying to Install SQL Server Express 2014

    I have installed the new Visual Studio.NET Community edition and am now trying to install SQL Server 2014 Express With Tools. Part way through I am getting a MOF syntax error. The only thing I can find on the web relating to this is FIX: "A MOF syntax error occurred" error message occurs when...
  2. X

    Question Resizing of Web Page Height

    I have a site which has a full width fixed height header and a full width fixed height footer. In between I have a fixed width left hand column, a fluid middle column and a fixed width right hand column. Everything displays OK when I open the page. If I then reduce the width of the page, and...
  3. X

    Setting cell focus in a DataGridView

    Many thanks John As a newcomer to VS.NET from VB2 - VB6 and Access 2 - Access 2003, I am finding the thought processes somewhat challenging. Even after 3 weeks of courses I am beginning to realise that even if you spent a year on courses, you still wouldn't know everything within VB.NET...
  4. X

    Setting cell focus in a DataGridView

    Many thanks for that John. It does the job almost perfectly. The code I am using is: If Not Date.TryParse(CStr(e.FormattedValue), Nothing) Then MessageBox.Show("Invalid date") DataGridView1.Item(e.ColumnIndex, e.RowIndex).Value = ""...
  5. X

    Setting cell focus in a DataGridView

    It doesn't seem as easy as that. I have the following code: Dim cell As DataGridViewCell = incidentsDataGridView.Item(e.ColumnIndex, e.RowIndex) Dim column As DataGridViewColumn = incidentsDataGridView.Columns(e.ColumnIndex) Dim a As Object If cell.Value.ToString.Trim & "" <>...
  6. X

    DataGridView - Updating a Field

    I want to set two fields on a row when the User starts to update the row. These will set the current DateTime and the userid of the person updating the row. I have tried using the Row_Changed event but of course I find I am in a recursive loop. What is the best way to make these changes? The...
  7. X

    SuspendLayout / ResumeLayout

    What exactly does SuspendLayout / ResumeLayout do? I have an MDI form that has a toolbar with buttons to open up to 3 child forms, which are derived from a BaseChild class. Each child form has a DataGridView to display a table via a TableAdapter. As each child form is opened I set...
  8. X

    Maximizing Child Forms

    You're right, ss7thirty. I was "somehow treating it as a child form". In fact, it was specifically coded that way. :o Removing the code now displays it OK, but of course, it can now fall outside the MDI form. However, if you ignore the sentence "This is not declared as a child of the MDI form...
  9. X

    Maximizing Child Forms

    I have a .NET 2.0 application consisting of an MDI form and 3 child forms each derived from a base child form. When one child form is maximized, they are all maximized. Is this normal? I have a Windows pulldown which allows the User to select each form or to tile them. I also have another form...
  10. X

    Binding an XML File

    I have three different XML files which contain data I need to display on a Windows form. I want to load them one at a time into my VB.Net 2005 program so that I can bind them to a form. I am currently reading each into an XmlDocument object but it doesn't seem to hold the binding. Should I be...
  11. X

    BindingNavigator Control Disabled

    Thanks for that. It was my first thought too, but as I said in my original post, the help text suggests that it should be possible to use it without a binding. Do you have any suggestions on how to bind the XmlDocument object to the BindingNavigator? I have tried using the wizard to bind an...
  12. X

    BindingNavigator Control Disabled

    I have included a BindingNavigator control on a Windows form that has text boxes displaying the contents of an XML file. The XML file has been read into an in-memory table using DOM as an XmlDocument object. It is not bound to the BindingNavigator control. When I display the form, the...
  13. X

    Setting Option Buttons in Code

    I have raised this as a problem through Microsoft's Connect system. :D
  14. X

    Setting Option Buttons in Code

    The app I attached in my previous reply was written in VB6, but I also tried it in VB 2005 and the same thing happens only more so. Not only does it trigger the CheckedChange event, which is the default and understandable, but it still triggers the Click event, which is not. As you say, the...
  15. X

    Setting Option Buttons in Code

    I have attached the project as Test.zip. It is very small test, presumably the same as you have done. You will see that a message box is displayed as you start the project, showing that an Option3_Click event was generated when its value was set to True in Form_Load.
  16. X

    Setting Option Buttons in Code

    I am writing a VB app which has a form with 3 option buttons on it. In the Form Load I am setting one of the option button's Value property based on information read from the registry. When I ran it, I was surprised that this triggered the On Click event for that option button. I didn't expect...
  17. X

    Referencing a Control

    Just coded your suggestion and it works perfectly. Many thanks.
  18. X

    Referencing a Control

    Without actually trying it, your suggestion looks a brilliant solution. I just don't understand why the only way to reference a control is with it's index; a number I didn't assign and a number I can't find the value of. Even the IndexOf() method is almost impossible to use. Why haven't they...
  19. X

    Referencing a Control

    This is the code I am currently using For Each ctrl In Me.Controls If TypeOf ctrl Is TextBox Then For intI = 5 To intPlayersPerTeam + 1 Step -1 For intJ = 1 To 2 If ctrl.Name = "txtPlayerName" & intJ.ToString & intI.ToString OrElse _ ctrl.Name = "txtSex" & intJ.ToString &...
  20. X

    SQL DateTime v VB.NET Date

    I've just noticed another thread on this problem which seems to answer it. Ignore this thread.
Back
Top