i have a login form , and another form with 2 tabs , if the user is admin ( compared with the database ) i want the two tabs to open , if not only on tab !this is my code so far and its not working ?
Code:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
I am building a web browser with tab control using VB 2010. I have everything working good so now I want to have it save the browser tabs when I shut down the browser and have them re-opened when I run the browser again like Chrome or Firefox would do.
I find myself with the dilema of opening massive numbers of IE windows/tabs on subjects. This is really great content, but then I need to restart my computer. Rather than going into each and recording the URL/window name (which is listed in the window title bar, relating to the content of the web page), is there a way to capture that information within VB.NET (in a WinForm app)?
I have created a web browser and am trying to get the link that is clicked that would normally open in a new window to open in the current window as I do not want to open any other windows or tabs. This is the code I have so far and it seems to work well kind of anyway, it opens the last url not the new one. Sometime it will open just an advert, it seems to open what ever link was last loaded on the site. [code]
I just had to rebuild a PC and saved my old project files -- hopefully I'm going to be ok with a new installation. I just opened my new install of VB2008 and clicked on a project.
I am building a web browser with tab control using VB 2010. I have everything working good so now I want to have it save the browser tabs when I shut down the browser and have them re-opened when I run the browser again like Chrome or Firefox would do.
im making a tabbed web browser for private use which is basicly done apart from the fidly bits however i want to be able to hold down the "ctrl" key and press t to open a new tab like google chrome and firefox, im verry new to programing and dont even know where to start, so far i have been watching youtube tutorials and reading tutorials on here which has got me to the point where i can actualy use the browser and its verry handy but this would be an excelent feature.the way i open new tabs at the moment is by click a button called "new tab" using the following code. [code] these i could probably work out with google searching but im not to bothered if i can get it to work.
I was wondering if there was a solution to replacing the tab control's tabs with custom tabs made in Photoshop. I know there are plenty of super expensive programs that can do it, but I was wondering if there was a way to do it programmatically. I was thinking that maybe it could linked in some way with a .DLL?
My code is basically a file parser/editor and it handles most files fine as they hold a handful of records concerning family members. However there are a few files that crash when trying to deal with them. Here is the problem.Each family member record creates 3 tabs that hold an average of 3 group boxes each. Each group box holds an average of 3 text boxes.So each member record creates 3x3x3 = 27 text boxes and some files get up to 289 family members which = 7803 text boxes.
The problem is the rare file with 400+ member records = 10,800 text boxes which causes a crash due to using up all the window handles. Each member has a separate tab page (with 3 subpages) but really only a dozen or so member pages are visible in the GUI with scroll arrows to move through them so I was thinking of somehow making the GUI a scrollable window so the tabs get built, displayed and disposed as the user scrolls left and right through the member tabs.
The files are parsed into a 3d list DataList(x,y,z) where x is the page number, y is the group box number and z is the text box number. So all the data is available. The code then traverses MyList and builds GuiList(x,y) where x is the page number and y is the groupbox number with all the textbox.text linked to MyList(x,y,z) locations so all text changes are reflected in the MyList.
I already have a memberCount variable and I am thinking of building, say, the first 30 member tabs with the middle 10 being visible in the GUI. If the selected tab > 20, then dispose of the first 10 tabs and create tabs 30-40.I am thinking I will keep all the member tab pages so I don't have to deal with inserts and indexing problems but just dispose all the group boxes and text boxes for tab pages out of view. I already have a deep clone sub that clones members when the user wants to add a new family member and I am thinking I will have to add something similar when a tabpage is passed in for disposal, it traverses and disposes each text box, then disposes the group box for each group box on the tab page.Additionally, another routine will rebuild the group boxes from the data held in MyList(x,y,z) when a tabpage(x) is passed in.
I was wondering if it was possible to have a program open Firefox, and have it open a bunch of tabs that all go to a link with a video, and then have it automatically play that video?
I have a tab Control with three Tabs.How do I specify that the three tabs Labels should all be equal size and each occupy 1/3 of the total tab width.In a previous product I used in VB6 there was a "Tabs Per Page" property that would do what I want.
I am using a Tab control for a large scale project. I am wondering, how can I change what the tabs look like? I saw three options (Normal, Flat, and Button) but is there a way to use my own image as the tabs?
I'm making a web browser that has tabs. I know how to add them and add a web browser control but I don't know how to change of the text of the tab to the web browser'snside each tab page. My code is:
Dim NewTab As New TabPage("TabPage" & Form1.TabControl1.TabPages.Count) Form1.TabControl1.TabPages.Insert(Form1.TabControl1.TabPages.Count - 1, NewTab) Form1.TabControl1.SelectedTab = NewTab
i m trying to load the tabs dynamically.(Using AjaxToolKit). Firstly, when i hit button1 on pageload, it loads tab1() (works good) and when i hit button2, itloads up tab2() All these tabs are ascx pages. In tab1 i m loading WebUserControl.ascx. it works okay.
Issues:
1) When you runthe code, first click on button2, it doesn't load tab2 dynamicaly but it does when u hit button1 for the first time.
2) Repetitive clicking on button1 or button2 should load the same tabs next to eachother again and again but it doesn't
3) Thirdly, the main issue is that I m tryin to load another .ascx on loadtab2() which should have webparts in it. I should be able to load an another custom usercontrol into these web parts dynamically. But i m not able to do so.
I have two tabs on a form, and I would like to know how can I display the second one when a button is clicked? The name of my tab control is tabSurvey.
Well, this time my target is to add and rename Tabs with tabcontrol, e.g.
I have a form and have added a TabControl to it and in the TabPages i have added RTB's,now i have also added a button which should add a new tab page to the TabControl, the thing is i know how to add a NEW tab but i also need to have a new RTB in each New created TabPage and after i create a new TabPage i wanna add the Title of that New TabPage. To add New Title to the New TabPage i have created a New Form in which i placed a TextBox so that that text that i type Into that TextBox should appear as the New TabPage Name.
Here's some code i tried, and i know that there's missing something and i know that the code may be written wrong but that's all i know, unfortunately?
Code: Private Sub AddNewTabTool_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddNewTabTool.Click Dim rtb As New RichTextBox
What I'm trying to do is emulate something that we have in C++ in Visual Basic. I have a large table of 25+ columns that I need to display in a grid (don't want a scroll bar). I'd like to use a DataGridView instead of a nightmare of textboxes and add "tabs" to a datagrid view. Lets say the initial tab shows columns 1 - 9, Tab 2 shows Columns 1 - 5 and 10 - 15, tab3 shows 1 - 5 and 15 - 18, etc....
I have buttons a few text boxes etc on a form, however I want to move it all to a tab (as in the tab control). I add a new tab control, cut all the buttons and textboxes, paste them into the tab control on tab 1. All good so far. When I run it, and click the buttons, they dont do anything. Do I need to move all the code to somewhere else or something?
here is a code i made for a tabbed web browser but i have a probem i want the tabs to write the name of the site that you visit?
Public Class Form1 Dim i As Integer = 1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim browse As New WebBrowser
Using VB.NET 08 I'm using the following code which loops through a datagridview and makes the buttons found in the list visible
HTML Code:CallByName(Me.Controls("btn_" & list.Rows(J).Cells(1).Value()), "Visible", CallType.Set, True)
This code works fine with no issue with the buttons on on the form. However when I placed the buttons in to a tabcontrol on the same form I get the following error:Object variable or With block variable not set.
Does this error relate to the way CallByName calls the button handler and that its different to they way you could otherwise produce the same result using
I'm making a notepad program and it's working out good except for when you close the form. I've tried to write a script that when you click the exit button will preform a check. For each tab in tabcontrol1 it will have a pop up asking if you want to save but only if the tab text doesn't = "New Tab" and has so content in its Rich Text Box. If the user clicks yes then it will save if no it just closes the tab. But if the user click cancel and aborts the close then it needs to stop the form from closing. But since there are multiple tabs I figured I'd use an array to hold the values of what was pressed and at the end if the array contains "no" or "n" then it wont close. But it doesn't work. Here's my code.
Public Sub closingform(ByVal e As System.Windows.Forms.FormClosingEventArgs) If TabControl1.TabCount >= 1 Then Dim i As Integer = 0
I'm administering an application written in vb.net 2005 and running on windows XP but displayed to the client through citrix. The client has recieved a big red x over on of the tabs. I am unable to duplicate it?