dcsimg

Search:

Type: Posts; User: tonyallan8128

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    468

    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?
  2. Replies
    8
    Views
    468

    Re: Call button from another class.

    So no answer?
  3. Replies
    8
    Views
    468

    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?
    ...
  4. Replies
    8
    Views
    468

    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...
  5. Re: Bind Datagrid colunm width to another Datagrid

    Yes and if I had known what code tags were I would have. Thank you.
  6. 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...
  7. 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
  8. [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...
  9. 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.
  10. 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”....
  11. [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...
  12. 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"...
  13. 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...
  14. 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...
  15. 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)...
  16. Re: How to add a container for code in forum thread ?

    Thank you very much for that.
  17. [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
  18. Re: Convert C# to Visualbasic.net

    I'm no expert I just try. That worked . Thank you TG.
  19. [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;
  20. 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"/>
    ...
  21. [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...
  22. 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.

    ...
  23. [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...
  24. 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.
  25. 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...
  26. 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...
  27. 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.
  28. 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...
  29. [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...
  30. Replies
    2
    Views
    1,128

    Re: Creating PFD files with VB.

    Thank you. Will check out and give feed back.
  31. Replies
    2
    Views
    1,128

    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...
  32. Replies
    4
    Views
    999

    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. ...
  33. Replies
    4
    Views
    999

    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.
    ...
  34. 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.
    ...
  35. Replies
    4
    Views
    999

    [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-...
  36. 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...
  37. [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...
  38. 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 =...
  39. Re: Determine the index position of button control.

    Im looking. Thank you.
  40. [RESOLVED] Determine the index position of button control.

    Hello.

    I have a situation where I need to be able to determine the index position of a button control.

    I have 2 panels. Panel1 has several forms created at runtime, in Panel2 has several...
Results 1 to 40 of 64
Page 1 of 2 1 2



Featured


Click Here to Expand Forum to Full Width