Disable Or Make Readonly A Particular Tabpage?
Jul 21, 2009Using VB.NET in Visual Studio 2005, how do you disable or make readonly a particular tabpage?
View 1 RepliesUsing VB.NET in Visual Studio 2005, how do you disable or make readonly a particular tabpage?
View 1 Repliesi want to make checkbox as readonly not enable/disable.
View 1 RepliesI' havea doubt on vb.net windows applicationwhile im using tab pages when i 'm moving fromabpage1 to tabpage2 all the controls in tabepag2 must be cleared(if checkbox is checked ,it should be unchecked when we move to tabpage2
View 3 RepliesI'm having a problem disabling the TextBox.ReadOnly attribute. Here is my code.
If (ListView1.EditItem IsNot item) Then
Else
If User.Identity.Name = "shinya" Then
[Code]....
but It's not working. I have placed the code in ListView1_DataBound event.
I have the following code that sets a DateTimePicker as Readonly (and it works well). But to give the full effect of being readonly, I would like to implement the ability to change the Backcolor and disable the ability to use the calender. how to change the Backcolor and disable the Calender?
Public Class ReadOnlyDTP
Inherits DateTimePicker
'This hash table stores all the controls extended by this extender provider
[code]....
I am trying to display an usercontrol(has several panels one on top of the other panel) on tabpage. I am using below code to achieve this.
[Code]...
I am using System.Windows.Forms.TabPage to store an entire TabPage for later use in My.Settings. Here is a brief description of the application.
I have a TabControl that has 3 tabs. One for user input, another tab for equipment settings, and then a final tab for Oven settings. On the user input tab, if the user de-selects the checkbox for Oven, the oven tab is saved to My.Settings and hidden.
I can then run the application without oven control. After running, lets say the user would like to re-run, this time with the oven. They go back to the input tab and re-select the Oven checkbox. However, the Oven tab doesn't re-appear. When stepping through the code, the is nothing stored in My.Settings for the oven tab page. Why not?
Also, I can open the application, and check, then uncheck the oven checkbox and the tab is hidden, then returns. I can do this all day. However, after running the tab will not return.
I create a tabbed web browser, when it loads it has two tabs, one is the main tab with web broswer, the second one is a new tab option when its clicked it creates a new tab. but it has no web browser.this is the code for the new tab.[code]
View 9 RepliesDear ALLCould you please tell me:How to save a TabPage that has ListBox Items ?How to load a TabPage that has ListBox Items ?Or only saving & loading ListBox Item
View 13 RepliesIs there any way of making controls that aren't textboxes into readonly controls? Specifically I have a date time picker (but I have the problem occasionally with other controls), that I want to make ReadOnly as opposed to disabled so that the user can see clearly what is in the control but cannot edit it. Making a control like this disabled makes it hard to read and furthermore, gives the impression to the user that they are to ignore the field, which defeats the object.
I'm sure a suggestion will also be to stick the information into a text box, however there are other date time picker controls that CAN be edited in the same window, and it would make life a lot easier if the layout of each was exactly the same.
In Vb.Net 2005, how is it possible to make the TabPage.Text to appear when the DrawMode of a TabControl is set to OwnerDrawFixed. I have even tried to set the TabPage.Text in the Form_Load event but of no avail.
View 1 RepliesI used this code to duplicate the contents of the tab.
Private
Sub
Form1_Load(ByVal
sender As
[code]...
But I want the tabpage to display the title of the site?
I am making a program to save it to (.txt).I am making it using System.IO.So far, my program can save the file already.But, I don't know how to make it readonly programatically.
View 3 RepliesI am using a PropertyGrid control to edit my class properties and I am trying to set certain properties read-only depending on other property settings.This is the code of my class:
Imports System.ComponentModel
Imports System.Reflection
Public Class PropertyClass[code].....
This is the code I am using to edit the values:
Dim c As New PropertyClass
PropertyGrid1.SelectedObject = c
The problem is that when I set SomeProperty to True, nothing happens and when I then set it to False again it sets all properties Read-Only.
In Vb.Net 2005, how is it possible to make the TabPage.Text to appear when the DrawMode of a TabControl is set to OwnerDrawFixed. I have even tried to set the TabPage.Text in the Form_Load event but of no avail.
View 1 RepliesI have a tabpage. And I have a combobox in it.When I hover my mouse over it, my tabpage's paint function runs.Why?The Combobox has no functions handled. It is just a Combobox.I move the combobox out of the tabpage, and now the tabpage won't paint when I hover my mouse over the combobox. Weird..
View 1 RepliesI am developing desktop application using vb.net and vs2008.I have a DropDownList that I don't want it interact with use when the info is locked. But if I disable it, it is greyed out and the text is not easy to read.Is there any way to make radiobutton like readonly textbox?I want text of the DropDownList looks black and itself is not clickable.The above shows a disabled DropDownList with greyed out text and a readonly textbox
View 3 RepliesIn Vb.Net 2005, how is it possible to make the TabPage.Text to appear when the DrawMode of a TabControl is set to OwnerDrawFixed. I have even tried to set the TabPage.Text in the Form_Load event but of no avail.
View 1 RepliesI just want to know 2 things.
1). How do you make a Vertical TabPage like shown?
2). How was the Event Image buttons done (to the very right with icons on)?
I have many textbox inside a group box so when radio button is clicked i want to make these controls readonly. Is it possible,and again on another radio button click again i want to make readonly false in vb.net.
View 1 Repliesthe code bellow try to make the same effect that textbox1.readonly = True in an combobox...the code to do this are in a form class and because i never had work with class i don't knoe the way to call this class..
Option Strict Off
Public Class ComboBoxReadOnly
Inherits System.Windows.Forms.ComboBox
[Code].....
I Try so many times to change TabPage Size and Form Size when I shif from One TabPAge to another, This because every TabPAge consist of defrent volume of control which need to enlarge and reduce the size. But I couldn't make it.
View 2 Replieswinforms .net 3.5 Ultrawingrid 9.2 In my subclass of Ultrawingrid.Ultragrid :
[Code]...
This works fine. But when the grid is dropped on a TabControl tabpage, the ctrl-tab looks very different to the sub above. e.keycode is seen as controlkey {17} I realize that by default cntrl-Tab moves between tabpages. I need to override this behavior. My thought is I probably need a subclass of the tabControl which will pass the keycombo through just as the form does but I confess to being clueless as to how to accomplish that. I tried to override the onkeydown of a tabcontrol subclass and just issuing a return and not and base call to onkeydown if the ctrl-tab combo was pressed but it seemed to see the e.keycode as controlkey as well.
[Code]...
I m using VB.Net Framewok 3.5. I have Tab control having two tabs when user using one tabItem How I can make other tabItem de-selectable or disable. So user can't migrate from one to another.
View 2 RepliesI just want to disable the TabPage3 to make it not clickable but it simply not working for me. Any idea why? I'm trying to use VB2008. :)[code]
View 13 RepliesI have followed a tutorial on how to make a Picture viewer. I have a next and back button that read off a counter. I have a couple of questions on this.
1. If there is just one picture in a folder and you hit the next or back button, the application crashes, is there a way to disable these buttons if there is only one?
2. Every time I open a new folder, the contents get added onto the list to go through, is there a way to overwrite the old files so only the new folder shows?
I can't stand this font smoothing on VS2010. Is there any way to turn it off?f you don't know what I'm talking about, compare the VS2010 screenshot to VS2008
View 2 RepliesI am confused what will happen, when I disable a timer. Will it finish the process and then disable or will it immediately disable without completing process? for example
[Code]....
I want to run getMessage from somewhere else, so I need to disable timer during that time to be asured not to override anything and also before timer disable it should complete that function code.
to disable right click and to disable the start button and task bar?
View 4 RepliesI already build an Antivirus but the problem is When the windows start show the UAC message for Users, so that let them aware from it.So how can I turn it off on bith windows Vista and win 7? or make my software as a secure software for Windows?
View 1 Replies