Search:

Type: Posts; User: tonyallan8128

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Re: Accessing dataTable data with Dataset

    Thank you very much jmcilhinney. I just couldn't see it.
  2. [RESOLVED] Accessing dataTable data with Dataset

    Just when I thought I had a grasp on DataTables.

    In the code below after making the Datatables and dataset I cant read the data from the Tables using the dataset.

    What am I missing?

    ...
  3. Replies
    8
    Views
    3,043

    Re: Call button from another class.

    Well there's a challenge for programmer's out there. jmcilhinney says my question cant be done. Anyone up for it?
  4. Replies
    8
    Views
    3,043

    Re: Call button from another class.

    So no answer?
  5. Replies
    8
    Views
    3,043

    Re: Call button from another class.

    Another answer a question with a question type.

    passel why can't you comprehend that the code is a reduced part of a larger problem?

    Why do you waste your time answering with empty questions?
    ...
  6. Replies
    8
    Views
    3,043

    Call button from another class.

    Hello,
    I have 2 classes MainWindow and Window1. MainWindow has 2 buttons , btn1 which calls a message box and btn2 that opens an instance of Window1 (instanceOfWindow1).
    Window1 has a button btn1...
  7. Re: Bind Datagrid colunm width to another Datagrid

    Yes and if I had known what code tags were I would have. Thank you.
  8. Bind Datagrid colunm width to another Datagrid

    New to Xaml and having a bit of trouble getting my head around binding and how to use it (love it just struggling with it).
    I have 2 datagrids. dgTop and dgBottom. Both are set...
  9. Re: Changing background color for Datagrid Rows at run time

    Thank you Ken Cash and KGComputers I tried both solutions and both did the job.
    Have a top day.

    Tony
  10. [RESOLVED] Changing background color for Datagrid Rows at run time

    Hello.
    Ok the situation is .
    I have a Datagrid populated from a Datatable.
    Every second row has a back ground color (AlternationCount="2") just to make the grid easier to read.
    Any row that has...
  11. Re: Correct use of Addhandeler and Removehandeler

    Thank you. Yes adding the proper signature to the "WriteToLabel(sender As Object, e As RoutedEventArgs)" worked a treat. All part of learning.
  12. Re: Correct use of Addhandeler and Removehandeler

    Yes the code does run and the addhandler works, But the removehandler does not.
    Ok. Same question but with a simplified code.
    In this code when the widow first loads label should show “Label”....
  13. [RESOLVED] Correct use of Addhandeler and Removehandeler

    Hello there, ok I am trying to understand adding and removing event handelers.
    In this very small example I have 1 button and 2 labels.
    When the button is clicked for the first time label is loaded...
  14. WPF Change a DataGrid column from Read/Wright to Read only in back code.

    Hello , I have a Datagrid set up this way.


    <DataGrid x:Name="dgTop" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Height="48" RowHeaderWidth="0"...
  15. Identifying the number of Buttons and Labels in a StackPanel.

    Hello .
    I have a situation where I need to be able to count the number of controls I have added to a stack panel. I have built this simplified solution to illustrate what I mean. When a button or...
  16. Re: Close WPF window that is running within another WPF's grid.

    Correction ...

    Window1.xaml.vb should be like this (I changed names for 2 buttons and posted wrong file) Soz.



    Public Class Window1

    Private Sub ButtonMessageBox_Click(sender As...
  17. Close WPF window that is running within another WPF's grid.

    Hello,

    I have a Wpf window(MainWindow) with 1 grid (Grid1) that contains 1 button(button that when clicked launches another WPF in Grid2) and a second grid (Grid2).

    The second window (Window1)...
  18. Re: How to add a container for code in forum thread ?

    Thank you very much for that.
  19. [RESOLVED] How to add a container for code in forum thread ?

    A basic question. When I post on this forum how do mark an area to place code in?

    What do I need to do to mark the start and end of code ?

    Thank you Tony
  20. Re: Convert C# to Visualbasic.net

    I'm no expert I just try. That worked . Thank you TG.
  21. [RESOLVED] Convert C# to Visualbasic.net

    Hello,

    Iv been trying to convert this piece of code.

    ChildWindow child = new ChildWindow();

    object content = child.Content;

    child.Content = null;
  22. Re: Run winform inside WPF window.

    Thank you for the timely response. It is a WTP.
    So this is the code for a textbox.

    <WindowsFormsHost Margin="0,23,0.4,-23.2">
    <wf:TextBox x:Name="textbox1" Text="Hello World"/>
    ...
  23. [RESOLVED] Run winform inside WPF window.

    Very new to xaml. Is it possible to place a window form inside a WPF window. I realize that winform controls can be used , but I'm talking about the whole form being placed in the WPF window. Thank...
  24. Re: Counting column values directly from Dataset Datatable.

    Thank you wes4dbt. This was exactly what I was looking for. I have now worked that into my code and it is counting on the contents of the datatable rather than the contents of the database table.

    ...
  25. [RESOLVED] Counting column values directly from Dataset Datatable.

    Hello.
    I have a Data base with a table called Stock_Adjustment_Table and a column called STOCKRECORDNUMBER.
    I use the following code to count the number of times that the value...
  26. Re: Datatable incorrectly loading from datasource.

    Yes. Good have changed that too, just because I can.

    daGOODS_RECEIPTS.SelectCommand.CommandText = "SELECT * FROM STOCK_ADJUSTMENT_TABLE "

    Thank you.
  27. Re: Datatable incorrectly loading from datasource.

    Thank you Shaggy. I am here to learn and take advise. I have adjusted the code to use SelectCommand.
    Is this what you meant ?



    connection.Open() 'Open connection


    'create a new FB...
  28. Re: Datatable incorrectly loading from datasource.

    Thank you.

    Wasn't quit as bad as I first thought.

    Changed Update.Command to fdDataAdapter
    daGOODS_RECEIPTS.UpdateCommand = New FbCommand("SELECT FIRST 1 * FROM GOODS_RECEIPTS WHERE...
  29. Re: Datatable incorrectly loading from datasource.

    Thank you both for your efforts. Yes had really made a dogs breakfast of that(add excuses here). Will redo and repost result.
    Again thank you both for your time.
  30. Re: Datatable incorrectly loading from datasource.

    Thank you for your prompt reply Paul.

    However your suggested changes do not appear to have altered the result.
    Values filled into GOODS_RECEIPTS datatable appear in GOODS_RECEIPTS_DG datatable...
  31. [RESOLVED] Datatable incorrectly loading from datasource.

    Can anyone please tell me what im missing here. This code is supposed to make a dataset "ds", make three data tables (GOODS_RECEIPTS, GOODS_RECEIPTS_DG and STOCK_ADJUSTMENT_TABLE ). Then load the...
  32. Replies
    2
    Views
    4,008

    Re: Creating PFD files with VB.

    Thank you. Will check out and give feed back.
  33. Replies
    2
    Views
    4,008

    Creating PFD files with VB.

    Hello.

    What is the best way to produce a PDF file in VB.net? Just want to take some text and variables and put them together in a PFD file. Would like it to be open source if possible. PDFDoc...
  34. Replies
    4
    Views
    1,641

    Re: MaskedTextBox Problem

    29000 posts. I wounder how many actually have any content ? How much easier could have i put the question to you. Spoon fed perhaps. ...
  35. Replies
    4
    Views
    1,641

    Re: MaskedTextBox Problem

    There you jmcilhinney. Told you sick with me and you might learn somthing. This link gets to the heart of the problem.
    ...
  36. Re: MarskedTextBox operation in Panel.

    There you jmcilhinney. Told you sick with me and you might learn somthing. This link gets to the heart of the problem.
    ...
  37. Replies
    4
    Views
    1,641

    [RESOLVED] MaskedTextBox Problem

    Hello everyone.
    Ok. What point am I missing here.
    Visual Studio 2010, Basic.
    If you
    1- make Form1
    2- Add Panel1 to Form1
    3- make Form2
    4- add Button1, TextBox1 and MaskedTextBox1 to Form2
    5-...
  38. Re: MarskedTextBox operation in Panel.

    Yes thanks . Im aware of that. This is a cutdown for the purposes of fault isolation. Would u like to read through the entire code (probably not). This is part of a much larger project that requires...
  39. [RESOLVED] MarskedTextBox operation in Panel.

    Hello.
    Could someone please explain what I am doing wrong here.
    I have 2 forms (Main , GoodsReceived) , in the form Main I have a panel (panel2) that GoodsRecieved runs in.
    Main form has panel2...
  40. Re: Determine the index position of button control.

    Thank you Ian.

    As i didnt create the forms and buttons all in one go but in a adhock fasion so i couldnt tag them easily.

    This is the lines i eventually used.

    Dim currentButton As Button =...
Results 1 to 40 of 66
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width