I am trying to check all the checkboxes on a webform (aspx) page, which is inside a master page, depending on the ID of the checkbox. The checkboxes are created dynamically, so I only know the prefix for finding it. So, I need to find these checkboxes by iterating the controls on the page somehow. It's not working out. Any help would ...
Hi,
Does anyone know how to get the control associated with a region in Prism.
For example, if I have the following code to register a region
RegionManager.SetRegionName(Outlook.navigationContainer, "navigationContainer");
How can I get the control Outlook.navigationContainer via the name "navigationContainer"?
Thanks heaps.
...
I have a numericupdown control on a C# Windows Form, and am interested in adding a leading zero to its value if it is < 10. (It is for the user to enter the minutes value of a time.)
I am not very familiar with overrides/inheriting yet in C# but it is looking as though I may have to do that.
It looks like this post on EggheadCafe has t...
Let's say you have two Controls, Alice and Bob, and you want to swap their position. By that I mean that after the swap:
If they are living in the same ControlCollection, Alice should have the index of Bob and vice versa.
If in different ControlCollections, Alice should have the same index as Bob, but be in Bobs ControlCollection and v...
I have an TUpDown control whose Associate is set to an instance of a TEdit subclass. The edit class calls RecreateWnd in its overriden DoEnter method. Unfortunately this kills the buddy connection at the API level which leads to strange behavior e.g. when clicking on the updown arrows.
My problem is that the edit instance doesn't know t...
I have c# form which have several controls on it, part of the controls are located one on another. I want a function that will take for input a control from the form and will return the image that has to be behind the control. for ex: if the form has backgroundimage and contains a button on it - if I'll run this function I'll got the pa...
I'm trying to make some static controls transparent on a windows dialog, but I'm having difficulty with one windows message.
Windows happily sends me a WM_CTLCOLORSTATIC message when drawing static controls, but this message is also sent to readonly and disabled edit controls. So - given just a hwnd to the control, how can I tell what k...
I want a ComboBox which has no dropdown button but can still be opened when I click on the text in the combobox.
Is this possible with a WPF combobox?
...
I've got a pretty simple web site project that I want to build using CruiseControl.net.
On one page there is a user control nested within a repeater control, and I need to get a strongly typed reference to that user control in the ItemDataBound event handler:
ASP.usercontrols_stars_ascx stars = (ASP.usercontrols_stars_ascx)e.Row.Fin...
I have a Stackpanel and want that the items automatically set their sizes regarding to their contents but the items should not automatically fill the height of the Stackpanel (But Stackpanel should have auto height according to largest item). I also tried WrapPanel which has the same problem.
I want the TextBox "test" be be vertically c...
Is is possible to embedd a TextBox in another TextBox. It does not have to be a TextBox, any editable text-component will suffice. I tried it with TextBox and got compiler errors.
Reasoning:
I want to create some kind of source code editor. I want that string literals in my source code are allowed to contain all kinds of special charact...
Assume, I have a form ...lets say WinForm... with 'n' number of controls.
I populate them with a default value during the LOAD. Then, the user gets to play with all the controls and set different values for the controls and submit the form. Here is where I find myself writing a series of "if" conditional statements handling the value o...
If the user enters non-numeric and numeric values in a textbox, how do I keep only the numeric part?
...
I want that from the PreviewTextInput handler a new control is created and focus is set to it. But even after calling Focus() on the new control, the cursor is still in the old textbox.
The handler UserControl_PreviewTextInput is registered on the UserControl which contains this textbox if this matters.
private void UserControl_Preview...
This is for ASP.NET. Think about the multiview control. It has 1 to many view controls. Each view control has the ability of holding controls, but, yet, only one view is visible at a time.
Keeping that in mind, I'm thinking I want to "tell" the non-visible views to NOT LOAD, therefore, NOT LOADING the child controls.
In my sample, duri...
Background:
I'm going to start studying/coding at the local university's library. Since I'm not a student, I won't be able to utilize their wireless internet access. Since StackOverflow is such a great resource, I want to be able to take it with me, so I'm building a small desktop application to load/search/display the most recent data d...
Hey guys,
I have a question about wiring web server controls. From many of the examples that I have seen the event handler has been declared with a private access modifier. I tried doing so as shown:
<asp:Label runat="server" ID="lblMessage" Font-Names="Verdana" Text="Hello" />
<br />
<asp:Button runat="server" ID="btnS...
Sometimes I do despair when working with ASP.Net - another problem that shouldn't be!
On the web form there is an ASP table. In the ASP table there is a user control which I am making some changes to. In the ASP table there is a text box....nothing out of the ordinary so far!
In the code behind, as part of the Page_Load, I need to ac...
I'm new to Prism, and I tend to just do as in the samples I see; place the Regions inside an ItemsControl. I have read that more controls can be used for defining region, but not all. However, I haven't seen an overview on what controls can be used to define Prism regions and not. Is there a rule or a list to it?
<ItemsControl x:Name="...
I have a couple of listboxes on a WPF Windows, with Height="Auto" Width="Auto" set on the form
The form sizes perfectly on different resolutions, but the problem is that when I press the maximise button a thick "Black L" is visible while the form resizes. I have seen this on quite a few WPF applications, but not had to solve the proble...