Search:

Type: Posts; User: zubenubie

Page 1 of 4 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: Cant get a toolstrip combobox filled from a query

    Hello

    Tried it in various events, click, doubleclick but not working there either. Have ti say when i out the combobox on the first level then it is working but when i put it in a dropdown level...
  2. Cant get a toolstrip combobox filled from a query

    Good day,

    I am trying to get a toolstrip combobox filled with a query. The query works and also the data is retrieved but it just won't show up in the combobox. Can somebody tell me where i am...
  3. VS 2022 Re: Want to save a text file in ANSI format

    Thanks the links have helped a lot.
  4. VS 2022 [RESOLVED] Want to save a text file in ANSI format

    Good day,

    I am trying to save a text file in ANSI format but it does not seem to work with the normal standard way.

    SaveIt.InitialDirectory = "C:\"
    SaveIt.FileName = cbxMapName.Text
    ...
  5. Re: Data from Database export to a txt.file

    You are right, but after a good night sleep and a good cup off coffee i got it sorted, i had all kinds of snippets, now i got it sorted
  6. [RESOLVED] Data from Database export to a txt.file

    Good day,

    I would like to import data from a database in a txt file. but i am struggling to get it in the wanted format.
    I import the data via the following code:


    Using sw As StreamWriter =...
  7. Re: trying to get a string change the font to Calibri

    Thanks the body does show but now i see al the rows and cells with all the HTML tags
    like this
    <tr><td align='right'>Good day,</td></tr><tr><td align='right'></td></tr><tr><td...
  8. Re: trying to get a string change the font to Calibri

    Thanks for the pointer, i copied you code into a new function but i am getting nothing in the body of the message


    Function rng2html(rng As Range) As String

    Dim str As String

    For Each Rw In...
  9. Re: trying to get a string change the font to Calibri

    allright but i do not know where to put this code,
    This is the full code:


    Sub tbSendMAster2()
    ActiveWorkbook.Worksheets("SeaSend").Unprotect Password:="Oliedom43"
    Dim dteDate As Date
    ...
  10. Re: trying to get a string change the font to Calibri

    Yes i have it set to send in HTML to send an i set the font to Calibri in thunderbird. but the text that is in the body stays variable width.
    when i select all the text in the body and i change it...
  11. trying to get a string change the font to Calibri

    Good day,

    I have a peace of code and this is created from a range of cells in excel this i want to send via mail in the calibri font but i cant get it to be changed to this font.
    This is the...
  12. Replies
    11
    Views
    2,399

    Re: How to call a sub by sender and e

    Dim dgv As New DataGridView
    dgv.Dock = DockStyle.Fill
    dgv.DataSource = RestHours2TableAdapter._Select(item(ComboBox1.ValueMember), TextBox1.Text, TextBox2.Text)
    ...
  13. Replies
    11
    Views
    2,399

    Re: How to call a sub by sender and e

    Public Sub dgv_MouseClick(sender As Object, e As MouseEventArgs)
    For Each page As TabPage In DTC.TabPages
    Dim grid = page.Controls.OfType(Of DataGridView)().Single()
    ...
  14. Replies
    11
    Views
    2,399

    How to call a sub by sender and e

    Good day,

    I have a dynamically generated datagridview and now i want to do a mouseclick event


    Public Sub dgv_MouseClick(sender As Object, e As MouseEventArgs)

    But now i do not know how to...
  15. VS 2015 Re: problem with a dynamically generated datagridview

    EDIT...... I found it again a stupid mistake have to take the ID up in the Query
    Also thanks JMC for the help.

    But now for the next steps with a normal dgv and then i mean not dynamically...
  16. VS 2015 Re: problem with a dynamically generated datagridview

    I am filling the datagridview with this code:

    Dim conn As New SqlConnection(ConnectionString)

    Dim strSQL As String = "SELECT CrewId, (SurName + ' ' + CallName) AS Name FROM Crew WHERE...
  17. VS 2015 Re: problem with a dynamically generated datagridview

    Magic would be nice but is not expected.

    My dynamically generated datagridview for all tabs is named dgv, as described in the posts above

    For saving i thought to use code like below:


    For...
  18. VS 2015 Re: problem with a dynamically generated datagridview

    No it does not, i can not get the dgv of the tabs get connected to the query somehow
  19. VS 2015 Re: problem with a dynamically generated datagridview

    All right i have the dgv now as it should be but i have problems to save all the data from all dgv's from all pages to the database, what is the best way to approach that

    Thanks in advance
  20. VS 2015 Re: problem with a dynamically generated datagridview

    When i let the the program pause and i select the tabpage it goes to the next and when i open that one it goes to the next untill all have been opened and then i do not get the error

    When i take...
  21. VS 2015 Re: problem with a dynamically generated datagridview

    When i remove the line which creates the problem then all the columns apear the msgbox showed 0 for everything
  22. VS 2015 problem with a dynamically generated datagridview

    Good day,

    I generate a dgv dynamically and load it with dat from a datasource, when the data is loaded in the dgv. i want to change the appearance of the columns and hide some columns.


    For...
  23. Re: how to create dynamically tabpages for multiple subjects

    Again i am running into a problem how can add on every tabpage a datagridview from a datasource?
  24. Re: how to create dynamically tabpages for multiple subjects

    Thanks that helped, but i have problems to get the tabpages to be named for every item in the combobox, how can i do that?

    EDIT: Found it
    page.Text = item(ComboBox1.DisplayMember)
  25. how to create dynamically tabpages for multiple subjects

    Good day,

    i have a query that gets multiple subjects and for each of that subject i have to create a tabpage dynamically

    what is the best way to approach that, the subjects can vary everytime...
  26. Replies
    18
    Views
    2,973

    VS 2012 Re: Timeout error when form load

    maybe this can help


    Private Sub wait(ByVal seconds As Integer)
    For i As Integer = 0 To seconds * 100
    System.Threading.Thread.Sleep(10)
    Application.DoEvents()...
  27. Re: Crystal report how to create the second page in Visual studio

    Well i am lucky it is only a 2 page report now so i could do the second page with different fields in the report footer so for now it is resolved
  28. Re: [RESOLVED] Program freezes when getting to meassagebox

    As i see it i am not updating all records only the one in the datagridview
  29. Re: [RESOLVED] Program freezes when getting to meassagebox

    The database table holds various months and years from various people and when i do the UpdateAll it will update all the records/rows with that month and year which are loaded in the datagridview. ...
  30. Re: Program freezes when getting to meassagebox

    Allright i found the problem the mistake is/was that the messagebox was behind the form when i pushed ALT it was showing.
    I have resolved it by this peace of code in the messagebox section:

    ...
  31. Re: Program freezes when getting to meassagebox

    No it does not also, i see now that when i create a mistake the catch messagebox also does not show
  32. Re: Program freezes when getting to meassagebox

    When i replace the messagebox.show to ME.close it closes the program so why does it not show the messagebox
  33. Re: Program freezes when getting to meassagebox

    Yes i did the debugging, also when i remove the messagebox(es).show it does everything what has been coded and the program does not freeze
  34. [RESOLVED] Program freezes when getting to meassagebox

    Good day,

    I have some code in a button click event and after the code i want the messagebox to show, but the program freezes see below code

    Private Sub btnSave_Click(sender As Object, e As...
  35. [RESOLVED] Crystal report how to create the second page in Visual studio

    In my report designer i have the first page set up like this picture below:

    155645

    Now the "details a" contains hours and days when looked there are all days of the month so 31 rows.

    Now i...
  36. Replies
    26
    Views
    2,834

    Re: Cant get the mistake in the update query

    Allright so i have to make the select and insert and update queries in the tableadapter or am i wrong?
    How do i call these queries then?
  37. Replies
    26
    Views
    2,834

    Re: Cant get the mistake in the update query

    I have an autogenerated bindingsource with a tabeladapter.
    I was strugling with collumns getting autofilled with month and year. and then in mt database table all months created got the same month...
  38. Replies
    26
    Views
    2,834

    Re: Cant get the mistake in the update query

    When i put datagridview.datasource = nothing then the messagebox shows up but it doesnt save the data. And no multi-threading so quite strange this one
  39. Replies
    26
    Views
    2,834

    Re: Cant get the mistake in the update query

    Indeed the messagebox.show is not showing also not in the beginning of the code and freezing the program
  40. Replies
    26
    Views
    2,834

    Re: Cant get the mistake in the update query

    You are right did some debugging and came to messagebox.show if i remove that line it is doing what i want.
    But it is quite strange that it freezes on that line of code
Results 1 to 40 of 136
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width