I want to add a control in winforms that drops like combo box but can show data like datagridview. I have seen this control in an application but not able to find a way how to do it. (Pic attached)
I am trying to get the id from a url and send it to the client side this is what I did. This is my url : [URL]
Code behind Public Partial Class Edit Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Private _myId As String = Request.QueryString("id") Public Property myId() As String [Code] .....
Error Request is not available in this context This is also what I get when I move the private prop to page_load() "private " is not valid on local variable declaration -
Here is the answer Public Partial Class Edit Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load MyIdVal = Request.QueryString("id") End Sub Private _myIdVal As String Public Property MyIdVal() As String [Code] .....
I would like to check if a URL exists -- without requesting the file. The program needs to check if a PDF or Excel spreadsheet exists at a particular URL. If it does, it might want to download the file, but it should not download it every time.
I currently use the WebBrowser.Navigate method to do this, but it always downloads the file. But I don't want to actually download the .pdf or .xls file, I just want to determine if the URL exists.
I'm creating a VB program to run a psychology experiment and I'm pretty close to done but am running into a few problems. The experiment consists of 8 phases that display on a single form but with different stimuli (pictures and text) being displayed on the form. So for example, at the top of the form would appear "dog" and below that in the center of the screen would appear the word "cat" and then the subject would select one of two option buttons, one being on the bottom left of the screen and one being on the bottom right of the screen.
One option button is labeled "Similar" and the other is labeled "Opposite". I also have corrective feedback displayed after each choice is made. Here are the things I have not figured out
I want to make a simple application on Windows XP with a single button which says "Help" - that will launch Windows Messenger's Remote Assistance and connect to my MSN Messenger ID - this is detailed here: [URL]. This is for my Dad or Mom who sometimes get confused when the Firefox UI resets itself or something other similarly catastrophic happens. I am familiar with the Windows programming model but am unsure on how to go about it - I would like to do this in C# or even VB.net.
For those that are having problems using VB with other technologies or finding samples/content or requesting new VB Language features then there is another way to provide this feedback to Microsoft so that we can work to provide useful content.[URL]..These posts will be actively monitored by Microsoft product team members who are interested to hear from developers.
I've created an executable that's called by another app for processes that require UAC elevated privileges. If I build this project with the below manifest it requests UAC fine, if I add this projects output to my setup project it creates it without UAC?[code]....
First good Monday to all and thanks for the suggestions on path I got it working somewhat.Problem: When a user clicks the comment button I would like outlook client to open so they can submit their comments. We run outlook client 2010 and exchange 2010 server. The Network Administrator is somewhat helpful but I am responsible for coding. Code specifics needed, did some research but not a lot of examples. I originally designed a cute little form with pages that folks could view to answer questions about how to use office software, the boss saw it and now they want more.
I am trying to make it so when I use Me.Controls("Timer1") for example I can access specific commands for a timer such as Stop() Start(), I tried CType() and typed in "Timer" as the type but it says the control type can't be converted to the "Timer" type.
I am able to only add controls that are of type TextBox. My question to you is, can I create a List to hold more than one control type or do I have to create a list for each control type?
Public Shared Function IsType(ctrl As Control, ByVal thisType As ??????) As Boolean Return (TypeOf ctrl Is thisType) I need a function that I can call, for example, to determine if a control is type RichTextbox.dim z as Boolean= IsType(txtBox1, RichTextBox) I ned to determine if a control is a given type (i.e., not always RichTextBox). I don't know what Type to make thisType. Can this be done?Actually I simpified the problem but if the above is answered I can write the function
I am retrieving some records from a database dynamically, not knowing exactly which table I need to query, or even which fields to retrieve. I display this data in a control that looks a bit like a listbox, except each item is two lines: a label and a value. Now, the user needs to be able to browse through this list until he finds the item he needs, and then he should be able to edit the item.
This application will (eventually, this is just a 'proof of concept') run on a mobile device or PDA or something like that, so space is limited. To allow the user to edit a value, I simply show a panel containing some edit control (textbox, checkboxes, combobox, etc), let the user edit whatever he's editing, save the change and display the list of items again.[code]...
I'm trying to create a new server control type in ASP.NET. This control would put a RequiredFieldValidator into a certain place. My class inherits from the WebControl class and it has a ControlID property which is the ID of a given control. The RequiredFieldValidator will be generated near the control with the given ControlID. However, the value of ControlID is nothing. In what events can I successfully use this property?
Public Class MyControl Inherits WebControl '... Protected Property ControlID As String Protected Property IsLinkedBrother As Boolean = False [Code] .....
But ControlID is Nothing for some reason and the event throws an exception. ControlID is never changed after initialization and it is initialized this way: <MyControl runat="server" ID="IDValue" ControlID="ControlIDValue" EnableCliendScript="true" CssClass="Whatever" Display="Dynamic" />
I'm writing a program in which I want to list the values of some of the properties on every control on every form in the application. I can do this for simple controls like Buttons and Labels, but am having a problem when it comes to a complex control like a ListBox. I know how to extract the data when I laboriously code each ListBox individually. The problem is how to do it when it's a generic object buried inside two loops
All my controls for getting data from user are in TableLayoutPanels and GroupBoxes inside TableLayoutPanel, I want to set default selected index of entire CoboBoxes to 0 in all TableLayoutPanelsand and GroupBoxes inside TableLayoutPanel. [code]...
I am looking for a VB control that operates as a more or less transparent or semi-transparent ruler or bar that can be scrolled up and down the form over an invoice or letter, so that the user can see what is under the ruler/bar and thus stop scrolling when he reaches a certain point.
To give a bit more detail of what I am looking for - such a bar is used when someone is setting the focus on a line of a long list of items so that they know where they are all the time. Most people would use a ruler on a paper list to keep track of how far they have progressed down the list. It would be nice though to have the "ruler" or bar as semi-transparent so that the user can see under where he is at on the list or form.
How do I make my app identify the forum type that the webbrowser control is currently viewing? I want to make the app determine weather it's a vBulletin board or a phpBB board, but I don't know how to do it..
I need to develop an inbox/outbox/sent items type interface and I believe that copying the outlook view would make it much easier for my users.I just can't seem to find any control for VB.NET that copies the feel of Outlook.
Does anyone know why a Page_Load would be called twice on a page when requesting an aspx page?I am using .Net 2.0 with the new .net 1.1 compilation model installed. Whenever I request a page, the Page_Load on the aspx page appears to be called twice, so does the Page_Load on and user controls added to that page.
I have a small piece of code that iterates through the controls collection on a panel (below) Everything works fine until I want to focus on a control that doesn't support the selectall method i.e. a datetimepicker. Is there any way of determining the type of control and not call the selectall method when the type is datetimepicker. All my other controls support it so that's the only one I need to exclude.
I need a 2-listbox mover/selection type control such as the example here: [URL] For over a week now I've searched countless forums and done myriads of googles. All I've been able to find is C++ or ASP based stuff. I really would like this to be VB.net, but at this point, I'd even settle for C#.
I've taken a shot at developing it myself, but am too new to the .Net world to really get anywhere with it other than being completely overwhelmed and frustrated. I've even looked at some 3rd party custom control webistes, and am even willing to spend a few bucks for this thing, if I could find one that suits my needs.
I thought I saw how to do this but can't seem to find it now.Is there a way to set the properties of all controls on a Form by Control Type?Meaning, if I have 5 textboxes on a form can I write code like .If page.contol is TextBox then
textbox.forecolor = Blue
Then when the page loads is sets all the textboxes forecolor on the form to Blue.