control

programming an universal remote control

I have a remote control RM200 and I want to program it so I can detect key presses and send them to applications. Now, which API can I use in Windows? HID usb API? IRDA API? I'm confused. My remote is an IRDA remote but sometime I read that I can program this device with HID USB API???? ...

Ajax Toolkit in Control Jquery

<script language="javascript" type="text/javascript"> $(document).ready(function() { $("#TextBox1").click(function() { alert("bla bla bla bla bla") }); }); </script> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> <asp:TabContainer runat=...

Add support for fields to databound controls

For example when using a gridview. When you specify the columns BoundField for example won't work if you are binding it to a field instead of a property. I guess this is so because when the gridview is looking for the DataField property it looks for a property and not a field. Now the question is how can i change this behavior to make ...

Launch VLC in Java and connect to it via rc interface

I've already seen this thread, but I'm still having an issue: http://stackoverflow.com/questions/1731299/starting-vlc-player-in-java It appears the Java bindings for VLC are no longer under active development and do not support everything possible on the command line anyway. Given the following code, I can't launch VLC from a Java appl...

ParseControl in Dotnetnuke ASP.NET changing onclick to javascript instead of c# method provided, strange behavior

Having some strange behavior here. I have some XSLT which generates some html with a few ASP.NET Link Button Controls String mstring = sw.ToString(); var myctrl = Page.ParseControl(mstring); foreach (Control Control in myctrl.Controls) { if (Control is LinkButton) { ...

How to get "Control no longer visible" notification in Silverlight when any parent is hidden?

I need to receive some kind of notification when control is no longer visible in view. That is if I have control deep in tree (like Border -> Grid -> StackPanel -> TextBox) I need notification on TextBox when Border gets hidden. I DO NOT have access to Border itself, imagine like wrapping control of everything gets collapsed, I still nee...

WPF - two rows of tabs in a tab control - tab wrap

I have a WPF tab control with a largu number of tabs and they are presented in a sequential line all across the screen. Which mean that a user needs to scroll sideways in order to view all the tabs. Is there a way to create two rows of tabs or make the long row of tabs "wrap" into two or more rows? ...

How to use Control.FromHandle?

Hello there, i saw a method called Control.FromHandle wich (should) give you the access to it. Now, i wanted to try it using this code [DllImport("user32.dll", SetLastError = true)] static extern IntPtr FindWindow(string lpClassName, string lpWindowName); // Find window by Caption only. Note you must pass IntPtr.Zero as the...

Resizing Controls At runtime.

Hi All Does anybody know of any sample code laying around anywhere that would enable me to resize a picturebox at runtime when the mouse cursor is draging the bottom right edge of the control? Any help at all will be appreciated. Thank you ...

Editable Label Controls

Hi All Does anybody know how I could go about creating an Editable Label Control? I need my users to be able to Edit Labels (Also change parts of its style info), but have found no helpful info anywhere online. Any help at all is appreciated Thank you ...

page child control

asp.net page is also a control. how can I access child control within page control? this.page.? ...

Is there a way to display a image in WPF stored in memory ?

What I got is something like a screenshot making application. (managed to serialize, thank god!!!) When a button is clicked a screenshot is taken by accessing a handling classe's method. now the tricky part is that the class has another method for operating with the above said result, in such a manner than when the respective handling me...

How to add the same control into multi panel in C#?

I have a button called button1 and two panels called: panelA and panelB (visible is false by default) and the following code (WinForms): panelA.Controls.Add(button1); panelB.Controls.Add(button1); panelB.Visible = true; // I see the button1 panelA.Visible = true; // I don't (ofcoz panelB.Visible is still false) MessageBox.Show(panelA.Co...

ASP.NET Checkboxes/RadioLists Arrow Keys

I have an ASP.NET web application for data entry, and we have big lists of radiobuttons, and long lists of checkboxes, in some sections. The client wants to be able to be able to navigate and manipulate these controls with their keyboard, like the tab/space/enter/right-left-up-down-arrow-keys. Are there any ASP.NET controls that I can ...

Problem with Google visualization inside Ajax Toolkit Tab Control

I'm trying to use a google visualisation, the column chart, inside an asp.net AJAX Toolkit Tab Control, but I'm having small (literally) problems. If I add the visualisation to the tab that's displayed by default when the page loads, the bar chart displays correctly, however, if I add the same control to another tab and reload the page...

Why won't control update/refresh mid-process.

I have a windows form (C#.NET) with a statusLabel that I can not seem to get to update in the middle of a process in event handler methods. My code looks like this... void Process_Completed(object sender, EventArgs e) { string t = "Process is finished!"; this.Invoke(new StatusLabelUpdator(updateStatusLabel), new...

DotNetNuke 4.9.2 WebUpload Control Null Exception

Trying to use the dnn webupload control in a dnn 4.9.2 module. I am using this in the settings.aspx of my module. When I load the page I get a null exception on this line in the page_init: Me.ModuleConfiguration.ModuleTitle = Services.Localization.Localization.GetString("UploadType" & FileType.ToString, Me.LocalResourceFile) I tried t...

Put a GUI control on a different thread?

I'm assuming it's possibly to do so as programs like google chrome have gone one better and put each tab on a separate process. So how can i put a GUI control such as a datagridview on a separate thread? ...

WinForms Control.BeginInvoke asynchronous callback

I have a number of Janus grid controls that need to be populated on an application startup. I'd like to load these grids on different threads to speed startup time and the time it takes to refresh these grids. Each grid is on a seperate tab. Ideally I'd like to use Control.BeginInvoke on each grid and on the grid load completing the t...

WPF Document Viewer Styling

I am trying to restyle the document viewer in WPF and I have restyled everything but the tool bar at the bottom. The problem I having is figuring out how to style the toolbar at the bottom and its child controls. Does anyone know how to restyle this? Thanks. ...