Great video. Thanks. I used this technique in my current project. I have split view in my main form and have a tree view on the left, and a number of these user controls on the left. I was able to add a static event handler in the User Control that allows me to trigger a method in my main form in order to update the TreeView from the User Control when making changes. That works nicely. The trouble I'm having is trying to go the other direction and that is to affect graphics objects like textBoxes, and txtLabels in my User Control form from the main form. It's easy enough to create and execute static methods and change static properties from the main form in the user control, but bridging the gap to the non static elements of the User control seems to elude me. My goal is to be able to click in the Treeview and have graphics objects updates in the User control. At present I'm calling a static method that updates static local variables in the User control, and then having to click a button on the user control to load those changes. I would love it to be automatic. I've found a number of suggestions on the web for how to do this, but none of them seem clear. I quickly scanned through your videos to see if you address this, and found nothing. If you have addressed this I would really appreciate a link. Again, thank you for sharing your knowledge.
This is what i have been looking for, BUT: There is no Panel in WPF, there is DockPanel,WrapPanel,ToolBarPanel,Grid and Canvas. Which do I use and how exactly i assign a module to it? Thanks!
Hi, this works great! Thank you so much! However I tried using this method to add a user Control to a user control. But it didnt work... Is there a way to do this??
Hi, May I ask you? I am trying to use two user control. Though, I accomplished to transfer from the first one to the second, I cannot hide the first one. Any ideas?
Hi Fox Learn Could you help creating an video on how to create tabcontrol based on tables from database. Pls Ex. Category(tab,), subcategory (suntan) then products. Please
hello fox learn?. Nice tutorial.. i have a question. how do i set the _instance to null again.. i mean how do i initialize the ucmodule1 so that _instance is null.. Thank you!..
First I received data from one user control to another when I add but second time, I can 't receive data when I add? How to receive data second time by adding ?
Fox Learn hi imagine i has 3 user control eg 1,2,3 each one has button to bring to front. now user control 1 has two buttons when i click on it user control 4 must be bring to front. how can do this? and i have button as back when i click on it viewed user controls should be appear. how do it.
i have user control inside of form1 how would i do if i have a user control and in its code i have an integer and would want to make an item in the main window ex form1 become invisible when integer or string is my desired value? i cant seem to get the integer from user control into the form1 window... :/ i have a user control that has username and password and then in form1 when username and password is wright it reveals form1's items (visible = true)
+THUNDERBOLT Hi, You can use properties to get value from user control. You can view this video th-cam.com/video/6nqn9AAfoZQ/w-d-xo.html. Similar for the user control. Thank you !
Hi can you make e Tutorial where you Load a Xml File which contains Controls in this Xml and your create this UI after read the xml file? 1. step read xml which contains controls 2. step generate UI whit this xml file Thank you!
public static UcTma Instance { get { if (_instance == null) { _instance = new UcTma(); return _instance; } else { return _instance; } } } vill be like this :D
I appreciated your lecture and felt as if you were speaking directly to me.
It takes me how many hours to search through the internet, and finally found the solution. Thank you !
Simple, quick, efficient - excellent!
Thank you so much :)
@@foxlearn Hello! please write for me email davranalpay@gmail.com
Thanks!!
this is much better than dragging all the usercontrol to a mainform the using bring front?
It helped me a lot Thanks Thanks Thanks Thanks
Very helpful and efficient! :) Thanks!
Simply Superb, just amazing!!!
Thank you !
Thank you .. Simple and use full , efficient
Thank you !
Good💐💐💐
Great video. Thanks. I used this technique in my current project. I have split view in my main form and have a tree view on the left, and a number of these user controls on the left.
I was able to add a static event handler in the User Control that allows me to trigger a method in my main form in order to update the TreeView from the User Control when making changes. That works nicely.
The trouble I'm having is trying to go the other direction and that is to affect graphics objects like textBoxes, and txtLabels in my User Control form from the main form. It's easy enough to create and execute static methods and change static properties from the main form in the user control, but bridging the gap to the non static elements of the User control seems to elude me.
My goal is to be able to click in the Treeview and have graphics objects updates in the User control. At present I'm calling a static method that updates static local variables in the User control, and then having to click a button on the user control to load those changes. I would love it to be automatic. I've found a number of suggestions on the web for how to do this, but none of them seem clear. I quickly scanned through your videos to see if you address this, and found nothing. If you have addressed this I would really appreciate a link. Again, thank you for sharing your knowledge.
Hi, You can call the method invalidate or validate to redraw your control, please try again. thank you so much
How add event to usercontrol
For example whent dubile click pass data from usercontrol to form
This is what i have been looking for, BUT: There is no Panel in WPF, there is DockPanel,WrapPanel,ToolBarPanel,Grid and Canvas. Which do I use and how exactly i assign a module to it?
Thanks!
+1986nesha Hi, You can use Canvas. Reference msdn.microsoft.com/en-us/library/ms754152(v=vs.100).aspx . Thanks
@Cham2Too i have the same problem have you found a solution ?
Graciass de graciasss!! .. por este compartir de video tutorial 😃
Great tutorial! One question.I want to have a button inside the usercontrol1 that functions as exit the usercontrol. What is the code for that?
Hi, You can add button, more controls to the user control. thanks
thanks for tut
Isn't this just stacking up the forms on top of each other? If yes, what's the best way to dispose them?
You can remove them from panel, then call Dispose method. thanks
시청 완료
Do you have written commentary about this code?
Hello Fox Learn can you please possible upload this code here?
Hi, this works great! Thank you so much!
However I tried using this method to add a user Control to a user control. But it didnt work... Is there a way to do this??
You should add a panel to the usercontrol, then you can add the usercontrol to the panel
Hi, May I ask you? I am trying to use two user control. Though, I accomplished to transfer from the first one to the second, I cannot hide the first one. Any ideas?
You should use panel, then send your control to back
THANK YOU FOR THIS TUTORIAL IT HELPS ME ALOT GODBLESS AND STAY UPLOADING VIDEO TUTORIALSS
Thank you so much !
how to fill datagridview in FORM 1 from custom user control?????
how can I pass value from one user control to another user control?
Hi Fox Learn
Could you help creating an video on how to create tabcontrol based on tables from database. Pls
Ex. Category(tab,), subcategory (suntan) then products. Please
Thank you so much for this.
However, I'm having some errors - get: not all code path return a value.
Please check your code again. i think you miss something
@@foxlearn same problem i have. get missing
hello fox learn?.
Nice tutorial..
i have a question.
how do i set the _instance to null again..
i mean how do i initialize the ucmodule1 so that _instance is null..
Thank you!..
_instance = null;
@@foxlearn thanks alot
hope one day you will make a video on how to save a datatable in a dataset to a database...
First I received data from one user control to another when I add but second time, I can 't receive data when I add? How to receive data second time by adding ?
please make video on nested user control
Ok. Thank you for your suggestion
i have a problem "" get: not all code path return a value"" i m using VS 2019
Please check your code again. i think you miss something
hai! usercontrol has buttons when click button, how to display another user control inl same pannel and go back or remove?
Hi, You can add another usercontrol to the panel, then set the usercontrol is bring to front control. thanks
Fox Learn hi imagine i has 3 user control eg 1,2,3 each one has button to bring to front. now user control 1 has two buttons when i click on it user control 4 must be bring to front. how can do this? and i have button as back when i click on it viewed user controls should be appear. how do it.
Can this method be used at Visual Basic ?
Yes, You can do. I'll upload tutorials for vb.net soon
Thanks very much :)
thank you very helpful!!!
Thank you !
How to pass the values from form to User control by using those instances?
+TomokaChan Ai Hi, You can define the properties in UserControl. Thank you
+Fox Learn Thanks! :)
I want send data from form to user control ? How do that ? Thanks
Thank you for your suggestion. I'll upload the tutorial as soon as possible
You can improve your code like this:
public static ucModule1 Instance => _instance ?? (_instance = new ucModule1());
Thank you !
Good
Thank you !
Thanks
i have user control inside of form1
how would i do if i have a user control and in its code i have an integer and would want to make an item in the main window ex form1 become invisible when integer or string is
my desired value?
i cant seem to get the integer from user control into the form1 window... :/
i have a user control that has username and password and then in form1 when
username and password is wright it reveals form1's items (visible = true)
+THUNDERBOLT Hi, You can use properties to get value from user control. You can view this video th-cam.com/video/6nqn9AAfoZQ/w-d-xo.html. Similar for the user control. Thank you !
How can I pass values from user control to form
OK. Thank you for your suggestion. I'll upload soon !
Please come down to us from the video tutorial for (text-to-speech )
Thank you
Good Job!, thanks
You're welcome. Thank you !
Hi can you make e Tutorial where you Load a Xml File which contains Controls in this Xml and your create this UI after read the xml file?
1. step read xml which contains controls
2. step generate UI whit this xml file
Thank you!
OK. Thank you for your suggestion. I'll make soon
Fox Learn You can maybe read this xml and generate a combobox with his values. i think this a very good example. Thank you so much.
have you prepare this video? if yes please send me link
Very helpfull
Thank you !
where would be its practical implementation in real life application?
Thanks very much
thank you so much!
You're welcome & Thank you !
thank u mam
Thank you !
{Thank you so much!!!! :)}
Thank you :)
how about vb code sir hope you can give me some examples
Thank you for your suggestion. I'll make the tutorial with vb.net soon :)
thank bro
Great explain thank you very much beautiful girl :D
Thank you so much :)
Desing Patron Singlenton
Yes
public static UcTma Instance
{
get
{
if (_instance == null)
{
_instance = new UcTma();
return _instance;
}
else
{
return _instance;
}
}
}
vill be like this :D
Thank you !
заебись, спс
bro it's not working
xd
you lie