control

Enforce control width or height?

I have a control for which I need to enforce a certain Width or Height, depending on a property called Orientation, which, obviously can be Vertical or Horizontal. So if the Orientation property is Vertical, then the Width must always be 2. If the Orientation property is Horizontal, then the Height must always be 2. I have tried ma...

C#: How to Bind Button.Enabled to Whether If There Is Any Item Selected of a ListView

Hi, I have a question about Control.DataBindings. How can I bind Button.Enabled to whether if there is any item selected of a ListView? i.e.: Button.Enabled = ListView.SelectedItems.Count > 0; I know that I can use ListView.SelectionChanged event to do this. I'm just wondering how can I use DataBinding to do the same job. Thanks. ...

Communicate with Flash object from WebBrowser with C# .Net

Hello, I am trying to make myself a simple metacafe uploader, and I am using the webbrowser to do that. Everything was working great with loggin in, navigating to upload page etc... I used the HtmlElement and setAttribute/Invoke to click and set the text fields: HtmlElement password = wb.Document.All["sPass"]; assword.SetAttribute("valu...

ajax control toolkit 3.5 is not working for visual studio 2008 ? can any one help ?

When I drag the textboxwatermarkextendor control from the tool box , it is adding the textboxwatermarkextendor control to the textbox. but when I execute it , the control is not showing the watermarktext. any one please help ? ...

Databound WPF ComboBox with 'New...' item

Hi all I have a combobox which is databound to a list of elements. But in addition to that list of elements, i want to have another item. This item should display the text 'New...' The idea is if they select one of the normal elements, it performs some action involving that element. If they select the 'New' element, it will take them to ...

how to define the "depends" for the running kernel

package A depends on package B-kmod and B-kmod has several variants. like B-kmod--{generic,pae-generic} etc. and in turn B-kmod depends on linux-image of the same flavor. i'd like A to have depends on B-kmod-$(uname -r). how to express this in control file? ...

Change the bpm of a song while playing it in python

Hi, i'am looking for a way to attune a song to the heart rate of someone. I have a song in mp3 or wav format and i want to accelerate the speed of it while playing it. Or playing it in loop and between each loop accelerate it or slow it. Ideally it will be in python. Do you know a way to do that ? Regards and thanks. Bussiere ...

wpf schedule control

Hi, I'm looking for a very simple schedule control for WPF. What I need is something like daypilot or the Outlook scheduler but with minimal functionality. I simply want to show a day separated in 24 interval (one for each hour). Inside these 24 hours, the user has to define events/task, non-overlapping each other. That's for theory. Pr...

Custom WinForms Control -> Serialization

I've written a small framework. Then I've written a new WinForms control, which hosts my one framework, and a designer. Now my problem: The host control has a property of a class type. Whatever I try: The property is lost at runtime. Could someone explain me, what attributes I need? ...

Silverlight multiple views

Hello, Sorry for dummie question, I'm quite new in silverlight. I want to dinamically change the layout in my app: for example, I've got two radiobuttons: male and female, and I want to show additional controls depending on the gender selected. For example, if user checks male option, combobox1 should be shown, and if user checks anoth...

How to assign Text to A file upload control on an aspx page?

My file upload control is in page for editing records so i want to retrieve the path stored in database and assign it file upload control. i have written select query to get data but i do not know how to display the stored file path in file upload control. ...

How to detect whether an object is ready in JS?

My web app includes an ActiveX control. However, when I run the app, I got error "object expected" error intermittently. It seems sometimes the control is not ready when I call its properties/methods. Is there a way that I can detect whether an object is ready using JS? Thanks a lot. ...

How to make arrays of button in vb .net 2005

hi there :) i just want to ask on how to make an array of buttons in vb .net 2005. It seems very different in vb6 'coz in vb6 you have just to add an index on its property but in vb.net there is no index property. Can it be made by designing in on the form just like copying and pasting on the form in vb6? ...

ASP Login Web Control events are not behaving as expected

I have an .aspx page that contains an <asp:Login> web control. For authentication, I have another class (MyMembershipProvider) that inherits the System.Web.Security.MembershipProvider class. The login process is working fine - i.e. username/password is properly authenticated by the MyMembershipProvider object. My question is in regar...

Could not disable volume control notification icon on Ubuntu 10.10

I am annoyed with the pop up of volume control notification on GUI of my Ubuntu 10.10 ,The volume slide bar moves automatically.Its flickering on my screen and hinders my work.I wonder why ,I am new to Ubuntu ,Please let me know how to put off this notification I tried sudo mv /usr/share/dbus-1/services/org.freedesktop.Notificatio...