VS 2008 Locking The Tab Page Of A Tab Control?
Apr 16, 2012
Is it possible to lock the tab page of a Tab control ? There are cases where a specific page should be shown and the user should not acctdentally change the tab page . I know I could set as False the property Enabled of the Tab control , but that would ... well actually would disable the page , which I don't want to ...
View 3 Replies
ADVERTISEMENT
Mar 18, 2011
I am developing a parser application to build a call tree from DDL files that have been extracted from a database. The idea is to take a large number of these DDL files and determine exactly what calls what. To do this I am using a .NET TreeView. The final output I am working toward is something like this:
-Proc1
-Proc2
-Proc3
[Code].....
View 2 Replies
Mar 12, 2011
In Visual Basic 6, locking a control would prevent the user from selecting a control without greying it out like disabling it would. Is there a way of doing this in Visual Basic 2010?
View 9 Replies
Feb 12, 2009
I have tab control how to make when i click at some of tabpage to show Msg.show("you clicked on tabpage2").
View 1 Replies
Aug 19, 2009
I'm trying to figure how to click a URL in a page using a web browser control.I've already looped through all the links and pulled the one I need. Looking through the documentation on MSDN and Google, I haven't been able to find a way that clearly explains how to click a URL.
View 2 Replies
Sep 30, 2009
how can i lock a remote workstation?
View 1 Replies
Feb 5, 2010
I'm writing a log parser which is reading a log created by a game. This log can be written to many times a second. My problem is that my program is preventing the writing of the log at times. Is there anyway I can read the log file without locking it?
Sub readLog()
If readyToRead Then
If FileInUse(fileName) Then Return
readyToRead = False
[code]....
View 4 Replies
Nov 25, 2009
I'm using a TabCotrol in my project , and I want to load as many tabs pages as I need with a PDF control within each tab page so I used this code :
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim NewAdobePage As New AxAcroPDFLib.AxAcroPDF
Dim tb As New TabPage
[CODE]...
And now I want to use OpenFileDialog control to load PDF files into any of the already opened AxAcroPDF controls , How ?
View 6 Replies
Oct 21, 2010
What I'd like to do is in my application move a control like a groupbox or frame with content on it from e.g the main form to a tabpage on that same main form using code.
I can change the position of the control using it's location, but I haven't got a clue on how to move it from the main form to a tabpage, or from 1 tabpage to another.
-Is this at all possible and if so, how can it be achieved?
View 2 Replies
Sep 13, 2009
I am writing an application that I want to give to a select number of customers.
What is the best solution to use so that after the trail period (1 month) the application will no longer work.
I was thinking that if they are interested in purchasing the software I will give them a license key or something, to unlock the application. However, I would like to make this unique to every computer.
I am have a very limited budget as I am working on my own. So is there any free 3rd party products that does this?
I was thinking of writing the date the application was installed in the system registry, and each time the application loads it will check if this date is over one month. However, the user could turn back the date on their computer.
Another, solution I was to have the application run some many times. For example, the user can only run 30 times. Then it will lock.
View 2 Replies
Mar 28, 2009
How can I make the webbrowser control wait until a page finishes loading before continuing on to the next lines of codes?
View 2 Replies
Mar 8, 2009
I have a form with a Tab Control that has 18 pages. When I click on a tab it opens the page and select a textbox on that page (txtTextbox1. Select() ). This works for the first 8 pages but not for the remaining 10 pages. Although on these pages I can mouse click on the textbox, enter info, save then click my Add button that clears the textboxes and has the code (txtTextbox1. Select() ). The textbox is selected just fine. The code for all my pages is the same except for the tab name and the control names. The tab key will move the selection to the next textbox in order on all pages and the Enter key is coded to do the same. The first 8 pages have a total of 256 labels, buttons, list boxes, textboxes and checkboxes on them.
View 10 Replies
Apr 27, 2011
I have a user control that checks if a certain query string and session value are present then returns a boolean based on that, if it's true I want to set the master page. The page is throwing an Object reference exception when it tries to call the method EditUser1.UserAuthorization(). Why is this happening? I imagine that the method doesn't exist at that point in the stack. Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit
[Code]...
View 1 Replies
Nov 18, 2011
Using vb.net on an aspx code behind event, is there away to tell from a parent page if the child page popup is open, and then close the child page if it is truly open based on some event on the parent page, like clicking a gridview edit link, again?
View 1 Replies
Jul 26, 2009
Why does CPU usage jump so high when a WebBrowser control is navigating to a page?Is there a way to drop CPU usage?
View 17 Replies
Dec 27, 2009
I want to access a page variable from a user control placed on that page. All the solutions work in C# via casting to the page class. The problem is that this doesn't work in VB. The page class is not selectable from the Intellisense dialog. Manual typing results in the error type not defined. It is strange that C# can do this without a problem. What is the proper solution for this in VB? I had other cases where I needed to access a control on the main page. C# again uses a cast to the page class to access the control. This doesn't work in VB again. So how can I access the page class from a user control in generell?
View 5 Replies
May 21, 2012
I am using <%@ MasterType virtualpath="~/__.Master" %> to embed my master page content into child page to access control belong to Master Page. I have one DropDownList in Master page. And I want to access its SelectedValue in my Child Page.
Problem is when page first time loads and as I am trying to access DropDownList's Selected Value by writing in child Page - "Master.DropDownList.SelectedValue". I am not able to get DropDownList's Value. Its display's Blank.
But When Page.IsPostBack I am able to get SelectedValue of that DropDownList.
View 1 Replies
Jun 3, 2009
I have an ASP.NET 3.5 page with some AJAX, some Validators and some business-rule validation done in the code-behind page (VB.NET).
The Validators set focus to the 'offending' control when an error is detected.
When a business rule is violated, I used the following code to generate some javascript "on the fly" and execute it to simulate the Winforms "MessageBox.Show" functionality:
Sub DisplayMessages()
Dim lblError As New Label
lblError.Text = "<script language='javascript'>" & Environment.NewLine & "window.alert('"
[Code]....
At the end of the "btnSave.Click" code, if everything went ok, calling that subroutine.
What I get is the page scrolling to the top and then back to where it was when the Save button was clicked.
For various reasons, 'MaintainScrollPositionOnPostback="True"' is in the Page directives at the top of the .aspx code. What I'd really like is to make that FALSE for just a moment so that the page resets at the top - again, only if everything is ok and only for this button (there are other buttons on the page that require the page to keep it's scroll position).
View 1 Replies
Feb 12, 2011
I have an asp.net usercontrol which represents a "popup" dialog. Basically, it's a wrapper for the jQuery UI dialog which can be subclassed to easily make dialogs. As part of this control, I need to inject a div into the page the control is used on, either at the very top or very bottom of the form so that when the popup is instantiated, it's parent is changed to this div. This allows "nested" popups without the child popup being trapped inside the parent popup.
The trouble is, I can't find a safe way to inject this div into the page. A usercontrol doesn't have a preinit event, so I can't do it there, and calling Page.Form.Controls.Add(...) in Init, Load or PreRender causes the standard exception "The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases."
I thought I had found a solution by using. ScriptManager.RegisterClientScriptBlock(Page, Me.GetType, UniqueID + "_Dialog_Div", containerDiv, False) which seemed to work well normally, but recently a coworker tried putting an UpdatePanel inside the dialog and now she's getting the error "The script tag registered for type 'ASP.controls_order_viewzips_ascx' and key 'ctl00$ContentBody$OViewZips_Dialog_Div' has invalid characters outside of the script tags: . Only properly formatted script tags can be registered."
How are you supposed to add controls to the pages control collection from inside a user control?
View 2 Replies
Feb 16, 2009
if I have an image in the dictionary that is pulled in from the RESX file..... my code replaces some if a name match occurs. imgDct(dKey) = Image.FromFile(aFi.FullName) so, now the dictionary has a file pulled in. it seems that this LOCKS the original file? so i cant edit it.. and replace it is there a way i can pull the image in without "Locking" the original?
View 11 Replies
Jan 31, 2009
I am having problem with my windows based application in VS 2008. I have a page from where I copy the component and use the same on another page for saving my designing time.It works fine and run without error.But when I restart the solution then the 2nd page where I had pasted the component is not displayed in the form designer. I get the following on the screen
View 1 Replies
Apr 16, 2009
I have a webbrowser control, where I show images (bmp files, that the program creates), and I want to add some UserControls to setup the images (as showing layers, or choosing colors to display). Is easy to do appropiate UserControls on VB.NET, and I know almost nothing about HTML, so, I would like to add standard VB.NET UserControls near the images.
View 12 Replies
Oct 17, 2011
I have an aspx page that has two different user controls. I want to find user control A and be able to set properties, etc., from user control B.
I was thinking I could do something like this:
Dim CMFilters As Control = Me.Parent.FindControl("CMFilters")
...but that doesnt work to be able to set properties and call methods. I somehow need to get the user control and and declare it as that user control type.
View 2 Replies
Jun 12, 2011
I have a text input in textbox1 in tab page 1 and i want that text from textbox1 will be displayed in textbox2 in tab page 2.
View 3 Replies
May 26, 2009
How to add existing Tab page to tab control like i am removing Me.tbIncoming.TabPages.Remove(tbPgViewer) 'I removed in button close and after i want to show in form load eventadil
View 4 Replies
Aug 3, 2011
There are test.aspx page and test.ascx web user control.
I have a button in test.aspx = btn_test and above code in my button is :
Dim ct As Control = Page.LoadControl("test.ascx")
Panel1.Controls.Add(ct)
There is a dropdownlist with value 1 to 10 in test.aspx and there is label_test in test.ascx
I need some code when test.ascx loading, get dropdownlist.selectedvalue and show it in label_test.
View 1 Replies
Apr 23, 2009
I'm trying to use the page control's collection with LINQ. Whereas this works:
dim l = Me.Controls.OfType(Of TextBox).AsQueryable()
the following return an ArgumentExceptionError:
dim l = Me.Controls.AsQueryable()
View 2 Replies
Apr 27, 2012
I have tried everything to no avail. I need to cast the value from a user selected dropdownlist to another dropdownlist on another page. The data in the textboxes are a series of numbers. Also is there a way to display the value in the second dropdown list as well as other values? For example, my dropdown has the values 1-6, user selects 4, which displays first in the dropdown on page 2 but the other values also display in case they want to change there selection??
If Not Page.PreviousPage Is Nothing Then
Dim table As Control = PreviousPage.Controls(0).FindControl("table1")
Dim ddl As DropDownList = CType(table.FindControl("ddlB_Codes"),c DropDownList)
[code].....
View 1 Replies
Aug 26, 2011
[code]...
I have a treeview and a tab control on my design page. Tree view has four parent roots: Animals,Flowers,Fruit Vegetables. It has also a number of child roots.When I double click on a child root at run time I want to creat a new tab page on tab control1 with the name of that double clicked child root and it must have have different number starting from one after the name. For example: jaguar1,jaguar2, apple1,apple2,apple3,... When clicked parent roots mustnt creat a tab page.Each tab page must have the name of the childroot clicked and a number starting from 1... How can write this code in visual basic
View 8 Replies
Jan 7, 2011
I'm trying to find a control in a page. The Id is available as a server control (CheckBox) This throws exception "not able to convert string to double"
Dim taskId As HtmlInputCheckBox
i =10
taskId = Me.FindControl("chkTaskOption_" + i)
taskId.Checked = True
View 2 Replies