Search:

Type: Posts; User: Signalman

Page 1 of 11 1 2 3 4

Search: Search took 0.02 seconds; generated 7 minute(s) ago.

  1. Re: Get Testbox Contents - Thread safe

    Umm, that interesting, however I have just changed sub to function, and it seems to work


    tempTextboxString = Me.TextBoxInfoLHSide.Invoke(Function() Me.TextBoxInfoLHSide.Lines.Last)
  2. Re: Get Testbox Contents - Thread safe

    so when i removed the SUB() it says Value of string can not be converted to delegate :confused:
  3. [RESOLVED] Get Testbox Contents - Thread safe

    I have a multiline text box (2 lines) which i wan't to update, by adding a new line to the end and removing the first line. As such it will always show the last two lines. I have acheived this with...
  4. Replies
    13
    Views
    966

    VS 2022 Re: Access of controls from a sub

    Now with a little bit of playing around with the code, I have got it to work, by not defining a type for CtrlCollection. I don't understand the reason why it works, but I am sure someone with more...
  5. Replies
    13
    Views
    966

    VS 2022 Re: Access of controls from a sub

    Yes Form2 contains a group box, which was added to the form by the (graphical) designer, by dragging it on to the form from the toolbox. I have just checked it, and it is named correctly.
  6. Replies
    13
    Views
    966

    VS 2022 Re: Access of controls from a sub

    now thats great, and seems to make sense,


    Createbutton(ButtonName, form2a.Controls)
    Works ok,


    however
  7. Replies
    13
    Views
    966

    VS 2022 Re: Access of controls from a sub

    Ok, here is the code, I have stripped out all the extra code and the processsing from both Button1 & Create Button. I know that in this simplified example, the Create Button could have been put...
  8. Replies
    13
    Views
    966

    VS 2022 Access of controls from a sub

    I currently have a form that when the code that is run, it calls a 'sub'
    this sub adds controls to the form.

    Now all works well if I use the default instance of the form, however I believe that...
  9. Replies
    11
    Views
    1,107

    VS 2022 Re: List (of ) and Listbox

    Thts great, and certainly makes the coding more simple, however when I run the code, I am getting an error :- Object reference is not set to an instance of an object



    Public Class Form2

    ...
  10. Replies
    11
    Views
    1,107

    VS 2022 Re: List (of ) and Listbox

    That’s great thanks, it was only a proof of concept code and I was keen to see if I was correctly displaying a list of strings in a list box. I would normally code form2 as new Form2.

    I did not...
  11. Replies
    11
    Views
    1,107

    VS 2022 List (of ) and Listbox

    I curretly have the following code (proof of concept) that displays the contents of a List of Strings in a List box.

    Can someone please advise if this is the correct way of doing this, or can it...
  12. Replies
    16
    Views
    1,614

    VS 2022 Re: List of

    It helps my understanding, I can see where I went wrong now and I think I partly understand why its using the old values. I must confess I did not think you could repetatively create a new data...
  13. Replies
    16
    Views
    1,614

    VS 2022 Re: List of

    Many thanks, however i am still trying to understand why my origional code did what it did.
  14. Replies
    16
    Views
    1,614

    VS 2022 Re: List of

    I dont understand what you are saying (or how to fix it). There is only one instance of aDataSplit, however before its contents are changed, the contents are added to the aData List. The process...
  15. Replies
    16
    Views
    1,614

    VS 2022 [RESOLVED] List of

    Currently I have a programme that reads a text file, and adds each line into a list(of String). This works ok. However the second part to the programme, splits each line of the text file into 3...
  16. Replies
    10
    Views
    983

    VS 2022 Re: Concurrency Violation

    Umm, I did not know you could do that, and I have just tried that and it works, and it’s very quick and easy, however it only adds a standard data grid view. My data grid view has the auto filters...
  17. Replies
    10
    Views
    983

    VS 2022 Re: Concurrency Violation

    Thanks for the suggestions, however I did try these as a possibility.

    Now adding


    Me.datagridviewcutpaste1.columns(“TestTableKey”).visible = false
    Works, however it does not validate the...
  18. Replies
    10
    Views
    983

    VS 2022 Re: Concurrency Violation

    JMC thats really helpful, i now appreciate the real benefits of a typed dataset. it has simplified the code considerably and also removed the violation. The code now reads


    Sub...
  19. Replies
    10
    Views
    983

    VS 2022 Concurrency Violation

    I currently have a piece of code that reads a database into a data set, which contains a datatable. Once the data has been read into the datatable, it is displayed in a datagridview. The data table...
  20. Thread: DataSource

    by Signalman
    Replies
    1
    Views
    546

    VS 2022 DataSource

    I am currently tyring to implement the DatagridViewAutoFilter, and have been successful in getting it working when the data is read directly form the database in the same piece of code. However...
  21. Replies
    7
    Views
    914

    VS 2022 Re: Saving of data

    Yes, my mistake. I meant a table adaptor. I am using a typed dataset, with all the datatables in a testdataset.xsd file.

    I have tried adding a table adaptor manager, and it originally failed. ...
  22. Replies
    7
    Views
    914

    VS 2022 Re: Saving of data

    Now with a bit of trial and error it I seemed to have got it Woking.

    The save button now has a single command


    TestTableAdaptor.Update(TestDatabaseDataSet.TestTable)

    This works ok, but only...
  23. Replies
    7
    Views
    914

    VS 2022 Saving of data

    I have just been understanding the ways to access and update a SQL database.

    I have created the database ok, added a table to it and populated it with data.
    I have the created a blank form, to...
  24. Replies
    6
    Views
    1,229

    VS 2022 Re: Data adaptor & table adaptor

    That’s great thanks, I am trying it determine weather to use a normal dataset or a typed dataset in a new application. I would like the application to be easily convertible from sqlserver to MySQL....
  25. Replies
    6
    Views
    1,229

    VS 2022 Re: Data adaptor & table adaptor

    Many thanks for the answer.
    In relation to using a typed dataset or a normal dataset, is it as easy to change the application from using SQLServer to MySQL (by just changing the connection...
  26. Replies
    3
    Views
    616

    Change of database SQLExpress to MySql

    If I have written an application which uses SQLExpress and want to convert it to MySQL, is it a simple task of changing the connection string or would it involve a large rewrite of the code that...
  27. Replies
    1
    Views
    566

    XML dataset save

    I currently have a dataset that contains two tables, however when I save the dataset to the xml file only one of the tables is saved.

    Is there a restriction that you can only save one data table...
  28. Replies
    6
    Views
    1,229

    VS 2022 Data adaptor & table adaptor

    Can someone please advise (in simple terms) what the difference is between a data adaptor and a table adaptor.

    As far as I can understand, a dataset can contain a number of tables.
    The dataset is...
  29. Replies
    4
    Views
    2,341

    VS 2022 Single exe file

    Is it possible to create a single Exe file for a project that contains everything that is needed for the project to run, including the dll’s and the .net framework files needed.

    If this is...
  30. Replies
    4
    Views
    972

    VS 2022 Single exe file

    A long time ago, I believe under vs2010 it was possible to comple a release version of the programme, which provided a single exe file in the release directory. This file could then be copied onto a...
  31. Replies
    5
    Views
    1,425

    Re: Alias's

    many thanks, looks like some typing ahead.
  32. Replies
    5
    Views
    1,425

    [RESOLVED] Alias's

    I currently have numerous lines of code (100's of line) that add columns to datagrids in the form of :


    Me.HouseNumberTextBoxColumn = New DataGridViewcolumn

    now depending upon a check box, i...
  33. Thread: {brackets}

    by Signalman
    Replies
    4
    Views
    1,356

    {brackets}

    looking at the Add Range statement, I piece if code i have seems to have additional params that is not shown in the documentation.

    what does the {Me.DateTextBoxColumn} do within the following...
  34. Thread: SQLServerCE

    by Signalman
    Replies
    1
    Views
    1,502

    SQLServerCE

    Now that Microsoft have made my wonderful SqlServerCompact Edition 'end of life', I now have to update my application.

    Now what i found really good was how simple it was, and that I can point the...
  35. Replies
    5
    Views
    2,060

    Dictionary, more than one item

    Ok, I have tonight learnt how to use the dictionary function, which is really grate. However from what I can see you can only have two items per entry, The key and the returned value. Is there a...
  36. Replies
    1
    Views
    1,735

    Right Click popup in DGV

    I currently have written a routine that produces a popup contex menu when mouseButtons.Right is clicked. This works great unless the actual cell in the DGV is being edited. In which case It...
  37. Replies
    4
    Views
    1,906

    Re: Copying and Pasting in a DGV

    This is one That is virtually but not quite finished yet (and some bits have been copied form various sources and altered), Copy paste works ok, the only issue is in deleting rows, can only delete...
  38. Replies
    17
    Views
    4,620

    Re: printPreviewDialog - BeginPrint event

    Many thanks, I have made the suggested changes and indeed all works as suggested. :)

    I am not exactly sure what some of the commands are doing to achieve the outcome, but it works, so I am...
  39. Replies
    17
    Views
    4,620

    Re: printPreviewDialog - BeginPrint event

    ...Continued from the previous post


    The DataGridViewPrint Class is as follows :-


    Public Class DataGridViewPrint
    Inherits Printing.PrintDocument

    Dim defaultHeadingFont As New...
  40. Replies
    17
    Views
    4,620

    Re: printPreviewDialog - BeginPrint event

    I believe that PrintDocument1 is the same object as DatagridViewPrint1, however the way the code is executing, i don't think so, but can't see why ?????????

    I understand what you are saying,...
Results 1 to 40 of 401
Page 1 of 11 1 2 3 4



Click Here to Expand Forum to Full Width