The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
hi to all
i have add one tool bar in my mdi menu ... which contains add delete query ..etc all buttons but on click any of them it should triger the cmdadd_click of active child windows.
thanx
pawan
RPRamesh Praveen Syncfusion Team April 8, 2003 06:59 PM UTC
THis cannot be setup in the designer. You will have to listen to the Click in a event in the mdi main form in which you should get the ActiveMdiClient, cast it to your type and then call another method in that type.
-Praveen
PJpawan jainApril 9, 2003 04:42 AM UTC
> THis cannot be setup in the designer. You will have to listen to the Click in a event in the mdi main form in which you should get the ActiveMdiClient, cast it to your type and then call another method in that type.
>
> -Praveen
thanx 4 ur answer ...... but ....
when i used below codes ---
Dim i As Integer
Dim p As Button
MsgBox(ActiveMdiChild.Controls.Count)
For i = 0 To ActiveMdiChild.Controls.Count - 1
MsgBox(ActiveMdiChild.Controls(i).Name)
If ActiveMdiChild.Controls(i).Name = "CmdAdd" Then
p = ActiveForm.Controls(i) // Error ?
p.PerformClick()
Exit For
End If
Next
i got error at the time of casting ... how can i remove this error ... error is --->
Specified cast is not valid ....
error at [ p = ActiveForm.Controls(i) ]