control

How to reference a control's properties in Access

For instance, I have a query which takes as a parameter the text property of a drop-down box [DDB1] of Form1. How do I reference the property? My stumbling around google has suggested that it should be something along the lines of Forms![Form1]![DDB1].text But I have been unable to find a definitive syntax for such references. Any ide...

How to make a piece of WPF content take up the entire application window

I'm working on an application that contains a number of content areas. I want to implement a behavior such that in response to user input, any of these content areas can be toggled to fit the entire application window, and optionally back to its original position again. I experimented with several approaches and none of them seem optim...

Grid View Fixed Header for horizontal and vertical

.Freezing{ position:relative ; top:expression(this.offsetParent.scrollTop); z-index: 10;} for the above code do anyone know how to modify it so that it can be apply to fixed header for horizontal and vertical scrolling!!! any suggestion would be appreciated!!!!! ...

Reusing a Control in another Windows Forms Project

I've got lots of web experience but am a total novice when it comes to Windows Forms so this might be easy to answer: I have Project1 which I've added a reusable control to which allows filtering and searching of data and presenting results. I now want to use the same control in another Project. When I open Project1 and select my form...

Why is control going inside IF?

char *token = "gkjsdhvcxvcvbcbcv" char c[90]; strcpy( c, token); c[sizeof(c)-1] = '\0'; char *broken = strtok(c, " "); if ( broken != NULL) { //Should not come here as there is no white space??? } ...

Getting Selected Control.

Hello I have a "canvas" (which is just a Panel Control), and the user can click a button to add certain controls to the canvas i.e. labels, link labels, images etc... And then they can edit those controls, like they can edit the text of the label they just added... But I'm trying to let them choose a new font and a new color for the co...

how to have the c# wpf webbrowser control load mobile version of websites

I have a simple WPF application with a webbrowser control. When I direct the control to load a page I'd like to have the control tell the server it's trying to load the page from that it's a mobile device and therefore load the smaller version of the page. I know a lot of sites just add mobile before the address, so google.com's mobile p...

How to use SetFocus on text box control?

I am trying to setfocus on text box. SetFocus(txtUserName); I am not seeing any change on web page. what is a difference between .focu() and setfocus() and what is the functionality of each? ...

Sharepoint: How to add audience filter to custom control?

In MOSS 2007 I want to add a custom control to the global link section of a master page and have it only visible to a particular audience. The audience are the members of an active directory group who have logged in via SSL and need to be given a link which will log them out. How can I filter a custom control so that only these users w...

C# Get control by name

I have a ToolStripMenuItem called "myMenu" How can i access this like so: /* normally i would do: */ this.myMenu... etc /* but how do i access it like this: */ String name = myMenu; this.name... This is because i am dynamically generating ToolStripMenuItems from an xml file and need to reference menuitems by their dynamically genera...

iPhone's UILabel with URL detection

I'm looking for an iPhone control that can simply display some text and detect URL's (http, email, tel) inside that text. UILabel doesn't support URL detection. UITextView can do that, but it's too heavy for use in chat application that I'm developing. Any suggestions will be appreciated. ...

Stop/Start service in code in Windows 7

I am trying to write a app and service which monitor a given set of services and a) makes sure they are running and b) based on certain criteria, restart them as needed. I keep running into an access denied error. If I simply iterate through the processes on the system, find the one I want like so: foreach (ServiceController sc in Ser...

How to create a Mobile Web User Control

I'm making some mobile web pages to be accessed by smartphones and such. However, I do not see either Mobile Web Form, or Mobile Web User Control in the list of installed templates in Visual Studio. I probably need some mobile toolkit or something like that, but I can never find what I'm looking for on MSDN. Anyone know what I need to...

How to control the memory usage of processes spawned by a JVM

I am coding an application that creates JVMs and needs to control the memory usage of the processes spawned by the JVM. ...

ASP.NET Event Handler problem on Postback

Hi I have a bit of a doozie. I have a control with a click event attached. As far as I can see the event should be raised during postback. Things I have checked: The __Eventtarget is correct. The __EventArgs is correct. The control can be found by using page.findControl([string in __Eventtarget]) after init, after load and during prer...

WEBBrowser Control; Is it possible to save the Webbrowser Content to a SQL DB?

Can the content of a webbrowser control in C# winforms be serialized for saving to a sql server db for retrieval and display? Would that be the route for saving and retrieving html content to and from a db? ...

BUilding Flex project with unit testing on cruise control

Hi, I have a flex application build with actionscript 3 on flex builder with unit testing on it using flexUnit4. I want to build this project on my cruise control and i don't know how? ...

ASP.NET AJAX Control Toolkit - Change Appearance of AsyncFileUpload Control?

Hi, I tried asking this at ASP.NET Forums but no one had a solution. I'm starting to think there isn't one. What I'd like to do is customize the look and size of the AsyncFileUpload control's 'Browse' button while hiding its textbox. Alternatively, hiding the AsyncFileUpload entirely and calling its functionality from a button whose ...

How to enable ribbon menu?

<r:RibbonWindow.Resources> <ResourceDictionary> <!--Ribbon Commands--> <r:RibbonCommand x:Key="cmdPrint" CanExecute="RibbonCommand_CanExecute_Print" LabelTitle="Print" LabelDescription="Print" ToolTipTitle="Help" ToolTipDescription="This is used to Print" SmallImageSource="Images\printIcon.png" LargeImageSource="Imag...

c#: How do I determine if the ScrollBar for a Scrollable control is currently displayed?

Title says it all...is there a way for me to check if the Scrollbar for a control is currently displayed or not? I want to use it so I can determine how to size the children of the Scrollable control, which is somewhat dependent on whether or not the ScrollBar is displayed (the Scrollable control can be dynamically resized). ...