Possible To Make Custom Message Box Options?

Jan 15, 2011

I was wondering if it was possible to make custom message box options. What I mean is, I'm going to have a button that pops up a message box. The message box will say, for example, "What is 10 x 10?" and I want there to be three options, instead of a Yes/No type of thing: "1000", "100", and "20". Is there a way of doing that? Or would I have to create my own message box using some software?

View 7 Replies


ADVERTISEMENT

Make Custom Message Box?

Jun 1, 2009

Is there a way to make custom message boxes and input boxes that are the same way as regular messageboxes? So if I named my custom msgbox CustMsg I could put the code like this.

CustMsg("This is a custom message box",I don't know what to put here,,"Message")

View 7 Replies

VS 2005 Custom Options On Messagebox?

Jul 23, 2009

Is it possible to have custom options on a messagebox other than Ok or yes no.. for example

View 8 Replies

Add Custom Options To Standard Context Menu Or Use Standard Options In Custom Context Menu

Dec 16, 2010

I have a text box field for which I want to use a couple of custom commands accessible via a context menu. I can add my custom context menu to my text box, but then I lose the standard windows ones (i.e. Undo, copy, paste, etc).

What I really want is a context menu with both my custom options and the standard windows options. I want that to take place only within my application (i.e. not like a shell extension).

View 2 Replies

Create Custom MessageBox With List Of Options?

Oct 15, 2009

I want to create my own custom MessageBox.
The default message box from VB contains a few options (as a parameter) like:
MessageBoxButtons.OK
MessageBoxButtons.RetryCancel
MessageBoxButtons.YesNo
MessageBoxButtons.OKCancel
etc...
How can I create a sub that also has a list of options the user can choose from??

View 3 Replies

Make The Text In A Message Box Scroll Across The Message Box?

Dec 13, 2010

just curious if there was a way to make the text in a message box scroll across the message box

View 1 Replies

VS 2010 Make Class Properties With Multiple Options?

May 20, 2011

I am just learning about making classes and need to make one with 2 properties.Below is the beginning of a class for ingredients in a coffee machine.But I want sugar and water to also hold name (string) ='sugar' and number(integer) = 4 so its like thisIngredients.coffee.name or ingredients.coffee.number[code]

View 3 Replies

VS 2010 Options View Control - Child Options?

Aug 20, 2011

I am in need of a form that shows various options, exactly like the Options in Visual Studio. Since there are so many options I too want them categorized, with a TreeView to the left taking care of showing the right category.The usual 'easy' approach here would be to just place a TreeView control on the form, add some nodes, and give those nodes a tag or key that corresponds to a panel or UserControl with the options for that category.Since there will be a lot of options however, this is not really feasible design-wise; the form would be cluttered with possibly 50 panels, all of which I would need to select and bring to front from time to time to add controls to them that represent the options.

So I decided to create a custom control that does exactly that. The control is very similar to my Wizard usercontrol, users can add OptionsPanels at design time, which inherit Panel and simply represent one panel of options. When they do, the panel is added to a container panel, and at the same time a TreeNode is added to a TreeView. The control uses a custom ControlDesigner to handle design-time clicks in the Treeview, selecting a different node would select and bring to front the corresponding panel, allowing the user to add the controls he wants.

Due to the design time support the problem of having 50 panels is no longer present, only one panel will be visible at a time and selecting the right panel is as simple as selecting the corresponding TreeNode, just as during run-time. Anyway, I got all this working, but only for a single 'level' of categories. As you can see in the Visual Studio options, there can be multiple levels of categories. For example, the Environment node has a bunch of children, where each child represents one 'options panel'. There can even be deeper nesting, see the Text Editor node for example.Let me begin by drawing out the basics of how my control works so far.

The main control is an OptionsView control, which contains a SplitContainer with a TreeView to the left and a OptionsPanelContainer to the right. The OptionsPanelContainer is merely a Panel to which only OptionsPanel controls can be added, and which raises events when this happens, as well as when OptionsPanels are removed from it. An OptionsPanel also inherits Panel, and these are the actual panels the users will see in the control, one for each option category.For now, each OptionsPanel has exactly one corresponding TreeNode (and vice versa). In the Visual Studio options, each 'parent' category usually has a 'General' node as the first child, and the parent and this General node show the same option panel, but I am ignoring that for the moment.

The OptionsView control has a property Panels that returns the ControlCollection (Controls property) of the OptionsPanelContainer (in other words: it returns a collection of OptionsPanels that are in this container panel).

vb.net
<Editor(GetType(Designers.OptionsPanelCollectionEditor), GetType(UITypeEditor))> _ <DesignerSerializationVisibility(DesignerSerializationVisibility.Content)> _ Public ReadOnly Property Panels As Control.ControlCollection Get Return Me.PanelContainer.Controls End Get End Property

A custom CollectionEditor for this property takes care of the designer: even though the property type is ControlCollection, the CollectionEditor knows it should create instances of the OptionsPanel control instead of just Controls.When it does this, a corresponding TreeNode is also created and its Tag property is set to the OptionsPanel. Vice versa, the Node property of the OptionsPanel is set to the node. Hence the node and panel both know their corresponding object.

vb.net
Public Class OptionsPanelCollectionEditor Inherits System.ComponentModel.Design.CollectionEditor Public Sub New(type As Type) MyBase.New(type) End Sub Protected Overrides Function CreateCollectionItemType() As System.Type

[code]....

So far so good, this all works fine. I can add Panels via the designer and when I do a new TreeNode appears in the TreeView. I can select this node and the panel becomes visible (comes to the front).Now, I am a little stuck. How do I implement child option panels? And more importantly: how do I let the user add child panels?The most logical choice I think is to let each OptionsPanel have a property (ChildPanels or something) that returns the child OptionsPanels for that panel. Once the user selects an OptionsPanel then, he can look in the property grid to find its ChildPanels property and add child panels to that.

There is a problem though: what would this property return? It must return a ControlCollection of some container (this is, I think, a requirement for the designer features to work, otherwise panels are not added to the Form.Designer.vb file). But there is no container. I cannot add them to the OptionsPanel itself, that would make no sense because the parent OptionsPanel has its own set of controls (the options itself...), there cannot be another (fully docked) Panel on top of those obviously.The container of the main OptionsView then? That is not an option either, its Controls collection holds ALL OptionsPanels, not just the children of the selected panel. I cannot 'select' only the right panels either, that would require me to return a new instance of ControlCollection, it would be impossible to return the actual ControlsCollection that holds merely a small selection of its controls.

View 5 Replies

Make Stand Alone, Custom Web Browser (with Custom Errors, Or Generic)

Dec 13, 2011

Cookies to be stored in folder and on close delete the cookies The ability to watch youtube vids, view images, and play js/flash games good security, no ads?

View 6 Replies

Make A Right Click Menu And Have It Access Options Like Copy, Paste?

Mar 14, 2009

I'm using the code from the following site to create a file manager within my app: [url]Which, I think is great. When I first started programming, I wanted to use this code, but I couldn't understand it. I love how now, I understand most of it and know how to implement it. Which, I owe much of my progress to some of you at this site Well, back to what I was saying. I want to be able to make a right click menu and have it access options like copy, paste, etc. I'm sure I can figure that out, but I can't seem to figure out how to make a right click menu.I thought I could manipulate a menustrip, but I wasn't sure how.

View 3 Replies

Asp.net - Custom Error Message In IIS

May 9, 2012

In IIS 5.1, i have set the website security to Basic Authentications and i have set the page for custom error in IIS which is directing to c:est.asp file. When user try to access the website, the user name and password screen comes up and after entering the wrong password 3 times, system shows the custom error page which is fine but why does system prompt for the user name and password again (for three times)?

I don't want user login screen on custom error page. I have tried to put the custom error page on the default website and set the security to anonymous but it still shows login screen on custom error page.

View 2 Replies

Custom Message Box (Form) Returns Result

Oct 16, 2009

I've created a custom MessageBox (a Form), that has buttons Yes and No. There is a function popUp() to show the MessageBox. I would call the MsgBox in a parent as follows:
CustomMessageBox.popUp()

Now I want the message box to return a value:
Dim a as Intger = CustomMessageBox.popUp()
But this should only return once the user clicks a button in the message box.

My popup sub:
Dim thread As New Threading.Thread(AddressOf GetResult)
Public Function PopUp(Optional ByVal ErrorMessage As String = "", Optional ByVal Title As String = "", Optional ByVal ButtonType As ButtonType = ButtonType.OK, Optional ByVal MessageType As MessageType = MessageType.None)
[Code] .....
gotResult is a Boolean = false. It the user clicks a button gotResult is changed to true.
result is a integer containing the number of the button clicked.

When I run this code, the result is returned, even if the user doesn't click a button. I understand why, because the main thread of the form is not "paused" while the user has not clicked a button. How can I pause the message box itself, until a button was clicked?
I've tried this:

Public Function PopUp(Optional ByVal ErrorMessage As String = "", Optional ByVal Title As String = "", Optional ByVal ButtonType As ButtonType = ButtonType.OK, Optional ByVal MessageType As MessageType = MessageType.None)
[Code] .....

But now the whole message box is captured in a loop and the message box is like disabled, because it waits for the loop to end, so the user can't click anything.

View 4 Replies

Asp.net - Custom Validator Not Firing (No Error Message, But No Validation)?

Jan 17, 2011

I have a custom validator:

<asp:CustomValidator ID="QuestionValidator" runat="server" ErrorMessage="Please select an option" ClientValidationFunction="QuestionValidator_ServerValidate" OnServerValidate="QuestionValidator_ServerValidate" ValidateEmptyText="true"></asp:CustomValidator>

I have a list of questions provided by a datalist, which I need to ensure a user selects an answer to each question. I then have my validation functions:

Protected Sub QuestionValidator_ServerValidate(ByVal source As Object, ByVal args As ServerValidateEventArgs)
Dim SelectedItem As Boolean = False
For Each c As Control In Page.Master.FindControl("form1").Controls
If TypeOf c Is RadioButton Then

[code]....

When I run the page, there is no validation and no error message. Please can you point out where I am going wrong, I'm suspicious it is at Page.Master.FindControl("form1").Controls.I have previously done such validation by looping through controls via form1.controls but this is unavailable as the page uses a form passed down via the master page.

View 4 Replies

Generate Dialog Result From A Custom Message Box Class?

Aug 3, 2011

I am developing a custom messagebox class like the following-[code]...

View 1 Replies

Adding Font Styles To Drop Down List With Custom Message Using Asp.net?

Oct 25, 2011

I have a drop down list with font names and I would like to display them with their styles and not names and giving that style to a custom message as shown below This is actually what I need it.How do I acheive this?

Here is how I am loading fonts from my system

For Each f As System.Drawing.FontFamily In System.Drawing.FontFamily.Families
DropFont.Items.Add(f.Name)
Next

View 1 Replies

Error Message - Can't Load (or Register) Custom Control: 'comdlg32.ocx'

Jan 25, 2012

I'm trying to run a Visual Basic (4.0) program that has run on every flavor of Windows so far. Using Windows 7 I get the following error message:

Can't load (or register) custom control: 'comdlg32.ocx'

This file is in the same directories as it is in a WinXP machine where it runs just fine.

View 7 Replies

Or Keyword - Does Options = Options Or Does It Set RegexOptions.none

Feb 28, 2010

With the following piece of code

CODE:

The Or keyword is confusing me. So in the above example which variable gets set. Does options = options or does it set RegexOptions.none.

View 9 Replies

Throwing Exceptions For User ? Or Better To Design Custom Error Message Framework?

Nov 10, 2010

I never got into detailed error processing too much when I played in VBA/VB6 a lot. Mostly then, if you ran into a user error (such as some input of theirs failing a validation test of some kind), you popped a MsgBox() with some error information and the critical (or warning) icon, and safely aborted out of the code

In .NET, my reading basically points to exceptions as the end-all in error handling. It looks to me that if you know a spot of code where a user can screw up, you're supposed to catch it with either try...catch blocks (for things like data conversions), or standard if...the...else constructs for other things, and then throw a new exception if needed.

Isn't throwing an exception essentially a forced crash of a program in a sense (granted, you get the option of continuing)? Or are exceptions geared specifically for things like data conversion errors and other "things that shouldn't happen", and resume use of MsgBox() and friends for minor user screwups?

Consider the case of where you have a TextBox that is only supposed to accept numeric data (or heck, just a specific set of characters). Barring some other trick that lets you restrict that field (let's just assume it's freeform, programatically), it would seem a bit of a waste to throw new exceptions everytime they type in an invalid character, or even if the error checking doesn't happen until they press a submit button (like on a webpage). Popping a MsgBox() seems more sane in that case.

So what's the straight dope on exceptions and throwing new ones on user errors? How about if your program also exposes a programmatic framework? Bad usage of one of the programmatic functions definitely seems like new exception territory to me.

View 1 Replies

Make The Microsoft Office Button Menu Excel Options Button Invisible?

Aug 12, 2009

I am creating a VBA application using Excel 2007 and would like to make virtually all of the standard Office and Excel menus invisible to the user and present to the user only my custom menu controls. I have been successful in doing this for all objects on the Ribbon as well as those on the Microsoft Office Button Menu, with the exception of the "recently opened files list" box, that also has the "Excel Options" and "Exit Excel" buttons on it. Can anyone tell me the name of the object for this control so that I can make it invisible?

Here is the relevant snipit of XML code that is in my CustomUI.xml file:

[Code]...

View 1 Replies

Javascript - Make A Select Option Change Options In Another Select?

Oct 3, 2011

I have two drop down. SelCurrentManuf and selCurrentModel. I want the option in selCurrentModel to change depending on the option selected in selCurrentManuf. How do i do it?

<asp:DropDownList runat="server" ID="selCurrentManuf"></asp:DropDownList>
<asp:DropDownList runat="server" ID="selCurrentModel"></asp:DropDownList>

This is how i am currently populating selCurrentModel

Public Sub PopulateCurrentModel()
Dim mySelectQuery As String = "SELECT * FROM Model where ManufID = "+ selCurrentManuf.Text+";"
Dim myConnection As New MySqlConnection(Session("localConn"))

[Code]...

but it only populates the first selected manuf, and doesnt change after

Private Sub selCurrentManuf_SelectedIndexChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles selCurrentManuf.SelectedIndexChanged
PopulateCurrentModel()
End Sub

View 2 Replies

Hypothetical Controls - Options Checked As Enabled In FrmConfig Effects - Controls (like Buttons/menu Options) Are Enabled In FrmMain

Nov 26, 2010

As i'm learning more and more about developing ive just got my head around creating classes and modules, i started wondering about something to do with configuration of applications where deployment is in a more diverse environment say in a company where different branches dont need access to all parts of a program, so i thought id throw the question out there in a basic sense and get some feedback. so i can go off and do some more reading and learning.

So the scenario in my head is like this.

So we have for arguments sake FrmConfig which is the master configuration form, then we have FrmMain which is the root menu our application general user interfaces with. So here based on what options are checked as enabled in FrmConfig effects what controls (like buttons/menu options) are enabled in FrmMain.

View 2 Replies

Make A Form / Message Always On Top?

May 9, 2009

Im trying to make a Form/Message always on top.

View 2 Replies

Make A Logout Message Box?

Mar 15, 2012

I am trying to make a logout message box where it says "Are you sure you want to logout" and the options are yes or No. If user clicks Yes it should logout and its hould show login screen and if user clicks No. It should show the same form or the option remains un changed. below is my code. The problem is even if i click No. it logs out and takes me to login screen.

Dim result As String
MsgBox("Are You Sure You Want To Logout", MsgBoxStyle.YesNo, MsgBoxResult.Yes)
result = MsgBoxResult.Yes

[Code].....

View 3 Replies

Make An Error Message?

Aug 29, 2011

I have a visual basic application with a media player built in that requires two .dll files.I wish to have an error message appear when the media player tries to start withought the files instead of a weird crazy confusing one that starts bu defult. is there any code like "if WMV.dll = not in directory than msgbox.show "You are missing the required files" I wish to show this to make it easier to identify by my users.

View 3 Replies

Asp.net - Display Specific Error Message On Custom Error Page

Sep 1, 2011

I know it's possible in asp.net to create a custom error page in a web app, by putting the following line in the web.config: <customErrors mode="RemoteOnly" defaultRedirect="frmErrorPage.aspx" />

I have had to do this for my web app, since it is clearly much tidier than letting the program bomb out with it's ugly default error page. My custom error page just has the customer's logo and a brief message saying "Error has occurred. Please return to homepage"The trouble now is that I have no way of knowing what caused the error, when a customer reports it.

Is there a way to make the actual error message appear on this custom error page too?

View 2 Replies

Forms :: Make A Form Act Like A Message Box?

Sep 11, 2009

How can I make a Form act like a message box, where you can't return back to the main/parent form until it has been closed?

View 4 Replies

How To Make Each User Have A Different Color Message

Jul 17, 2009

With the code i have written can someone tell me how to make each user of the chat room have a different color message(text color) and were to place the code to do that.[code]

View 1 Replies

How To Make MSN Style Popup Message

Apr 25, 2011

I am trying making a form to apear in the corner when a timer goes off. I have a loading function that loads all the times into arrays and sends it to a thread that runs a loop till todays date = date time. The problem I am having is I cant get the popup form to initialize properly. It either doesn't load the labels or background and the window is instantly unresponsive or it just blinks onto the screen and off before it does anything.

View 1 Replies

Make A Message Box - Pup Up For 3 Second And Then Auto-close

Aug 18, 2010

Is there away to make a kind of message box, there pup up in maybe 3 second, and then close down auto.

View 2 Replies

Make A Message Box Appear When The User Presses Alt K (then) Alt E (then) Alt J?

Apr 17, 2009

i want to make a message box appear when the user presses Alt k (then) Alt e (then) alt j . is this the correct code to use?:

Private Sub form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txt3.KeyDown
Dim intcount As Integer = 0
If e.Alt And e.KeyCode.ToString = "k" Then
intcount = intcount + 1

[code]....

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved