Hello,
I am using ultraTabControl, using usercontrol and changing the property of tabPage controls ( e.g., visibility, text etc.)
control could be any ultracontrols. What I'm experiencing is the required change I am able to do, but it is not reflecting on ultraTabControlPage till the time I click on the other tab & then the desired tab.
I replicated my query in the sample available in the following link:
drive.google.com/.../view
I tried to trigger the ultraTabControl1_SelectedTabChanged event, but no luck.
There is no such error, but it needs to be done like this. In my actual project, I'm working across the winforms. SO come up with this sample
Thanks for the sample Divya,
It's working!!!!!
I will implement this in my project & revert for any concern.
Hello Lizzy,
Thank you for making issue more clear with a sample application.
In the sample i noticed that the issue is about the instance of the form , i created another property for the form and hooked up with the ultraTabControl1_SelectedTabChanged and its working as per your expected behavior.
Attached the updated sample here for your reference.
TabControlControls.zip
the sample link is here , please ignore the previous link.
https://drive.google.com/file/d/156xpcIFW3odcMXz0FQPJAfgO4f2J1wio/view?usp=sharing
Hello Divya,
Thanks for the reply.
The sample replica of my requirement may sound confusing, let me explain it with more clearer details. I made changes in previous sample, kindly check on the latest one:
https://drive.google.com/file/d/15RcKctTrkC8W6qBFcL0AF8g03qcBA-Vd/view?usp=sharing
here is ultraTabControl with 4 tabs, each tab having similar control ( in sample) Green/Red & label.
whenever a user clicks on a specific tab green or red pictureBox , it should be replaced by red or green pictureBox in that specific tab only. Which I am able to do with the current sample, you can check on.
Let say ,user clicked on tab1 and clicking Green pictureBox , it should get replaced by Red pictureBox and with certain text in label of tab1 only, not any other tab.
thing is on clicking on Green , it should immediately display the red one along with label text. But there is no change reflects. ultraTabControl able to render the same when i click on tab other than tab1 and then again clicked on tab1.
Now, I hope , m able to explain my requirement.
and , there is no such error. I need way out to achieve this.
Thank you for contacting. I am able to run the sample,I am little unsure of what you are trying to do ,although looking at the code I noticed that in ultraTabControl1_SelectedTabChanged event you have switch cases for tabIndex ,instead you can have cases for active tab index and can change the visibility and text of each individual active tabs. So like this:
switch (ultraTabControl1.ActiveTab.Index )
If this is not what you are trying to do then please provide the steps of the issue and expected behaviors for clear understanding of the issue.
Regards,