VS 2008 Allow The User The Option Of The Form To 'not Be Shown Again'
Apr 22, 2012
im hoping to be able to create a form that welcomes users to the application that i have created, however i want to be able to allow the user the option of the form to 'not be shown again'
I brought up a new project in Visual Studio 2010 and found that there are no gridlines on the form. I went to Tools, Options, Windows Form Designer, General and found the Show Gridlines option set to True. I tried turning it to false and back to true with no change.
I have a VB.NET 2010 Forms Application which includes a form with a textbox, and two buttons which I call from the main form using .ShowDialog
I've messed with something such that I can no longer prevent the dialog from closing when the user clicks the Ok button but has entered invalid information.
Here is the handler for the OK button's click event:
Private Sub cmdOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOK.Click If SomethingIsWrongWithWhatTheUserEntered Then
basically i'm making a webbrowser, and i want it to select and option from a dropdown ComboBox, on a certain button click. I use this code which i found it on these forums as well:
For Each element As HtmlElement In WebBrowser1.Document.GetElementsByTagName("select") If element.GetAttribute("id") = "wrapper_opacity" element.SetAttribute("value", "51")[code].....
The problem with this code is that it just inputs the selected value, but it doesn't really SELECT it.The option selected is shown, but not activated.
Is it possible in VB .NET to find out if a form is loaded? Also, is it possible to find out if a form is shown at the moment? I think for the second issue it's enough to get the value of the property of the form: MyForm.Visible However, I don't know how I could find out if a form is loaded or not.
I add a button to a form each time the user clicks a menu option as:
[Code]....
This draws a small blue line at the bottom of the button to show it is highlighted. Just like the mouseoverbackcolor property on a button except this will draw the line. It works fine until you slide the mouse very fast between the buttons. It is as if the mouseleave event doesnt always fire.
I've built a contact book in vb08. I've created the database in ms access 2007. I connect in and show the data and drag it to my form it works 100%. I can add and delete entries everything but how do i add a search by surname option to the form?
aside from the difference mentioned below, what are other difference the two events might have and how will affect the application as a whole? What is more preferred to use and why?
Form Load: *Do stuff* Form shows up on monitor Form Shown: Form shows up on monitor *Do stuff*
The end result we're looking for is a slideshow effect where a section of our main form shows a sequence of secondary forms which fade in/out on a timer.We can fade the forms in/out when they're shown individually, but the opacity setting doesn't seem to work when they're shown inside another form. What I've got, for testing, is code that should simply reduce the opacity to 10% after showing the inner form for a half-second, long enough to notice the reduction-except I don't see any change.
Dim f As New Form2() f.TopLevel = False Me.Controls.Add(f)[code]........
The opacity change takes effect without refreshing the form when shown 'stand-alone' but I've tried refreshing both the inner & outer form anyway, with no change.
I am currently creating a tool that can manage local user accounts on Windows-PCs. I am using the functions described on
this MSDN page ; and after some struggling, I got most of them to work.
Unluckily, I haven't found a way to set the option "User must change password at next logon" while creating a new user account. I use the
NetUserAdd -Function to create the new user. I set the level to 1 and supply a
USER_INFO_1 -Structure . This structure accepts flags, and the flag UF_PASSWORD_EXPIRED seems to be exactly what I want - but when I set it, the user can log on without changing the password first...
I'm developing on Windows 7 Ultimate 64-Bit using Visual Studio 2010 Express.
Here's my code:
#Region "Constants" Public Const UF_PASSWORD_EXPIRED As Integer = &H800000 Public Const USER_PRIV_USER As Integer = 1
I can show/hide a form, but is there anyway for me to check if a form is hidden/shown? After the form calls InitializeComponent(), and activates the OnLoad Event, it automatically calls the Show() of the form. I do not wish my form's default startup mode to be Shown. I tried overriding onshown method and call Hide in OnShown. It works but this method looks pretty ugly to me though so is there anyway that I can stop the form from even calling Shown when it was first initialized?
I have an MDI application that can either run in TABBED or WINDOWED mode. When a user selects something from the menu a form is shown. All menuItem clicks pretty much look the same:
Dim frm As New <SomeForm> frm.MdiParent = MDIParentForm frm.Show()
I moved a project so I could work on it in two places. When I opened the project, I have only worked on it from one computer, my form did not show in the solution explorer so I moved it back. I opened the project and everything was there but I was not able to see my form layout in designer view. The code is there and it builds and looks right but I can't see any of my form components and I need to edit some properties.
I have a MDI app. At the moment I merge my context menu from my child to the parents tool strip menu. But now I don't get a context menu show in my child form?
When I initialize a new form to open, the subroutine in the new form starts before the new form is shown on the screen and so when the subroutine finishes and the MsgBox comes up, the form isn't showing. Is there a way to make the form pop up first before the subroutine starts?
I have a MainForm which contain SecondaryForm as a control of the MainForm.SecondaryForm contains DataGridView which loads data from sql server and I add a collumn named SUM that SUMs all the values of the same row. This is provided within the LOAD event of the SecondaryForm.When SecondaryForm.Load events finishes, the program goes back to MainForm right after the line "SecondaryForm.Show" and here the values of the column SUM disappear.When i write those values runtime, they never disappear.
I have two forms for my application, that are visible in the Windows taskbar. When a modal dialog is popped up on the main form, the secondary form is locked. However, when the user clicks on the secondary form on the taskbar, it appears over the modal dialog box, and is basically frozen. Is there a way to ensure that the modal dialog box does not draw underneath the secondary form? The topmost property is no good, since this draws on top of everything, even stuff not related to the application.
I am busy with trying to convert data from an application so that it can be shown in HTML form via websites. I need to make a tree wherein I have 3 main categories each with their own sub-categories. These are the categories/sub-categories.
I want too allow my users to be able to choose wether they SEE VISUALIZATIONS in the player in my app when listening to Audio through the Player. Also, how doo I let them choose different visualizatins for the player?
I'm creating an app like a CRM ( Costumer Relationship Managment ) for a school but I have some questions I'd like to be answered.
It will have a main user ( Administrator ) and that user can create another users to access the app. The app will work locally and I would like to know a method to save that information @ localhost without being acessible to edit or view by other users.
Im thinking in a Access DB with all info and then make all information needed. But how to secure it without anyone else could access it or modify id? An encryption method would be the best way?
I am working on an application that I want to give the User the option of using a password and sign-in or not. I have added three items to the "Settings" , these are:
1) SignInRequired (True or False)
2) UserID (string)
3) Password (string)
My problem is that I'm not sure where I should put the code. Should I use a module and set it as the opening form, or shall i put the code in the first form the viewer sees, which I tried and due to other situations the form has several different appearances, a this is causing a problem.
How can I give option to user to design there own reports? i.e. They should be able to define 1. Report Title 2. Reports Fields(When they click on Work Order button they should be able to view Work Order Table column and they should be able to select columns then a report should be composed. Then all the Column should be in the form datagrid. Is it possible.
I have a Windows Form application with a form that has an underlying data set. When the users click a particular button, the code clears some fields on the form but also is suppose to update a value in the underlying dataset on a field that is NOT displayed on the form.
In VB6 and VBA this is very easy to do. I simply says Forms!formname!NameOfUnderlyingFieldNotshown and pass it the value. How do I do this in VB.net with a Windows Form and underlying dataset?