How can I make a part of the form partially transparent in C#?
I want to make a part of a form semi-transparent, with additional text on that part which is not transparent. How can I accomplish this in C#? ...
I want to make a part of a form semi-transparent, with additional text on that part which is not transparent. How can I accomplish this in C#? ...
Hi folks, I've got a simple winform. In it has a single TextBox control. In that, i've wired up the KeyPress event. Why? I'm trying to capture everything the user types in that textbox. But, when they hit return or enter, i then grab everything they've typed and send it to a command parser to do stuff. I then display on the screen (in ...
I am (still) writing a small application which requires me to use several windows forms to show to the user. Some of the forms just show progress messages while the application performs tests using several external devices. The forms will usually be used in order (see below) but there may be some errors picked up from the devices, in w...
I'm experimenting with this hybrid MVC pattern, though the question probably pertains to a range of patterns. It works great for many common situations. However, I now have a control that represents an arbitrary-depth tree similar to a file system. It's possible to turn each tree node on or off ("checked"). I'm stuck trying to figu...
I have a DataGridView in virtual mode. I only implemented the CellValueNeeded eventhandler as described in http://msdn.microsoft.com/en-us/library/15a31akc.aspx. Implementing the rest of the events only seems needed when you want to be able to edit the cells manually. I would like to programatically edit a DataGridView cell value. I ...
I'm trying to make a trackbar with a custom graphic for the slider thumb. I have started out with the following code: namespace testapp { partial class MyTrackBar : System.Windows.Forms.TrackBar { public MyTrackBar() { InitializeComponent(); } protected override void OnPaint(System.W...
Winforms 2.0. Stick a DateTimePicker on a form. It defaults to TODAY. Click on the dropdown arrow to show the Calendar, and click on TODAY. The ValueChanged event DOES FIRE, even though it is already set to today. What i would like to do is replicate this same functionality - I would like to reset it (in code) to today, and next time i ...
In Visual Studio (2008) when you place a textbox on a Windows Form, and drag it around, you see very helpful guidelines which help you align it (left, right, top or bottom) to other controls. You also see a line the represents the bottom of the text in that control helping you align the text within your textbox, to the text within a labe...
Hi, I've an xml file like this <div class="details"> <a href="/Details/Empinfo.asp?empid=134">Employee details</a> </div> now i want to get the empid (i.e 134) from the given xml file in c# winforms. Can somebody help me how to get the emp id Thanks in advance ...
I am new to C# can anybody tell me on How to show a new Form on click of a button. ...
Hi, I'm trying to create a text file in my winforoms application. It is working fine but it is creating in its default location (like in bin folder). But i want to save that created text file in my userfiles folder. How can i do it? this is my trail FileInfo fileusername = new FileInfo("userinfo.txt"); StreamWriter namewriter = fileuse...
The situation: MainForm (assigned to the MainPresenter) is up and running. The user click a ShowFoo button - an event is passed to the MainPresenter which in turn creates new FooPresenter and the FooView. How should I proceed now ? Where should the presenter be created and where should the view be created and most importantly, where shou...
We have CAB (Composite Application Block) based smart client winform application. One of our software requirement is to replacing the text dynamically when the user change the language option provided in our application. We support around 6 languages including east-asian(Chinese/Japanese), European Languages(Russion, spanish, English,...
I was wondering if SO could help simplify some logic. I have a windows form (C# 2.0) which contains a System.Windows.Forms.MenuStrip. I want to dynamically add ToolStripMenueItems to the MenuStrip. The added items will be driven off of a database (but for simplicity I have removed that part from the code below). I would like to be ...
I have a winforms application that I want to display an icon, and display the icon next to the icons on my taksbar for like my AV sofware, and the volume control. Any idea how to do this? Thanks in advance. ...
I am not sure my question makes any sense. Google Wave is using HTML 5 and such. But if I have a desktop (say winforms) application, can I leverage google Wave for collaboration/discussion? Does it even make sense? If so, what's the API? ...
I want to paralelize a 3D voxel editor built on top of Windows Forms, it uses a raycaster to render so dividing the screen and getting each thread on a pool to render a part of it should be trivial. The problem arises in that Windows Forms' thread must run as STA - I can get other threads to start and do the work but blocking the main t...
I found a thread on MSDN that shows how to add an item to the context menu of a winform title bar. Unfortunately it does not show how to register an event with the custom menu item and I have been unable to figure out how to do it. Below is a sample app that can be copied and pasted into a new Windows Forms Application. I would appreciat...
this one is written in C++. Can I use it from a WinForm application? if so, what do I have to do different to use it from a VB.NET Winform app? If not, does anyone know of a decent freeware alternative? ...
I need to know what are the things going on here.Actually my aim is to add a column additionally and display the contents.I Added column but i want to know the codeflow required to finish to display items in that column ManagedDeviceCollection list = new ManagedDeviceCollection(); try { if(SpoServer == null) return; _lis...