control

Silverlight control layout update in runtime

Hi, I have a silverlight control that has a few element such as: Image, TextBox and a TextBlock. The application shows a list of the same control and the controls are placed in a specific layout, in grid with rows and cols. Now, I would like to be able to modify all the controls layout and arrange the element differently (preferred ...

DateTimePicker resets day

Hi all, I am using DateTimePicker with Australian date formatting set (dd/mm/yyyy) The problem is when user enters a day which is outside of the month (mm), control resets that day to "1". This obviously is a quite confusing obstacle for user - it's not natural to enter the month first and then enter the day [culture-wise] Is there a...

MultiColor Label Control

hi all is it possible at all to somehow make the label contorl multicolored? i have a rich textbox that the user enters text into, and if they change the font for some words in the rtf, and changes colors, and underlines one or more words here and there etc, i need to be able to display the resulting text, with the correct styles set by...

ASP.NET Custom Server Control Build -- Validator

I am writing a DateValidator control to function as a validator of all type for dates. It will function as an Required validator, a Min/Max validator, and a Range Validator for date comparisons on the client side. All in all, I have it written and it functions: In an ASPX page. For some reason, when adding it into an ASCX User Contro...

WPF custom derived control style

I have a custom control derived from Button: class MyControl : Button{} And suppose, this class is empty (has no members). In the application's main window resources I use ResourceDictionary that contains styles for most WPF controls (so called theme): <ResourceDictionary Source="BureauBlue.xaml" /> So, all controls on the...

list of controls with templates in silverlight

Does anyone know where to find a list of controls that you can set the template on in Silverlight? I've wasted several hours now trying to create control templates only to find that the control doesn't support the template property. By "doesn't support" I mean: <Style x:Key="blah" TargetType="Border"> <Setter Property="Template"> ...

How to FindControls in repeater control ?

I want to enable or disable 'ParticipateBtn' depending on EventStartDate. I am getting this error:Object reference not set to an instance of an object. <table> <tr> <td align="right" style=" font-weight:bold">Start Date : </td> <td><%# CheckEnability((DateTime)Eval("Event_Start_Date")) %></td> ...

C# Form Problem: new form losing control and randomly hiding

Hello, I'm encountering strange behavior with forms on a c# 3.5 app. On a button click, my form1 hides itself, creates a new form2, and shows form2. Form1 also contains the event method triggered when form2 closes. Here's the code inside Form1: Form2 form2; void button1_Click(object sender, EventArgs e) { this....

Dynamic textbox inside gridview tab key press

Hi all, We are using dynamic text box inside the gridview. When tab key pressed on each textbox inside the grid we need to do some calculation using total value from the database and value in the previous textbox and the result should be displayed in the next textbox. Regards Geetha ...

Why is the control inaccessible due to its protection level?

I'm trying to access a control's text property from program.cs and it says that it is inaccessible due to protected level. How can I fix this please? ...

How to get ASP.NET HyperLink control to encode ampersands in Text attribute?

I use the following control to output a HTML link: <asp:HyperLink ID="hlEditDetails" runat="server" CssClass="arrow-forward" Text="Edit Details &amp; Photo" /> However, when it does, the markup is generated as: <a id="ctl00_hlEditDetails" class="arrow-forward" href="/EventName/EditDetails.aspx?ID=1">Edit Details & Photo</a> The une...

iPhone + file upload control

Hello, I have an application which uploads file from iPhone to web server. Problem is that I want to give users a control like from which they can select the file / photo from the device and which is than uploaded on server. Can anyone help me ...

Navigation failed while using WebBrowser control in VS.NET 2008.How to resolve?

Hi I like to create a simple web browser in VS.NET'08.I finished coding but while running it shows "Navigation to web page was canceled".Help me resolve this problem.Though i invoked the Navigate function inside the constructor,its not working. public Form1() { InitializeComponent(); webBrowser1.Navigate("http://goog...

Adding child to user contol in design view

I have a user control in WPF. I have to add children in the design view when user control is added to a window. ...

Creating curve chart showing stock market fluctuations with different colors using chart control

Dear All, I am working with chart control to show stock market fluctuations using asp:chart control. I am taking one of the value as median to show fluctuations. Any value greater than median value has to be shown in green(e.g.) whereas any value lesser than median value has to be shown in red(e.g.). I succeeded in representing the g...

"paint" like control within a web page

I am looking for a Java UI control which allows users to draw drawings which can internally stored as an image. I am looking for a very light weight control which does not slow down the page rendering. Any pointer? ~Sri ...

How to check absolute control visibility and how to be notified for changes of absolute visibility

I have several controls inside my form and I perform several changes (Text, Font, BackColor etc.) on these controls. My changes are necessary only if the controls are visible. So, I want to stop performing my changes on controls that are not visible. I want to keep changing my controls when they become visible again. I can use Control.V...

Force create handle for Control C#

I'm currently creating a silent print module. The current control I'm using is, it's making sure that the control handle is already created (IsHandleCreated). I did everything to cheat this with no luck at all. Do you have ideas in mind on how can I create a handle for the control without displaying any in the screen? ...

WPF - fill with data control, that is inside of another control

Hello, i have written some code, which fills controls with some data from a database. Everything works fine if controls are put directly in a window. But how to fill controls, which are inside other controls, such as TabControls, GroupBoxes etc. My code looks like this: Some window: private void LoadDataP() { if (ID.Length > 0) ...

Is speed control over music on an iPhone plausible?

I'm writing an iphone app, and I would like to have the user able to slow or quicken a pre-made sound file. Is this possible? If so, how would you do it? Edit: This looks like a dup of the following post: http://stackoverflow.com/questions/1191313/iphone-sound-adjust-speed-of-playback-of-audio-file-while-playing ...