Hello,
I have a Winforms DataGridView in my application. When the user selects a row and hits enter, I load a new form with details related to that row. It takes about a second to get the data and show the screen. Some of the users are pretty fast and they start entering keystrokes relevant to the form e.g Pg Down/Pg Up, even before...
hello,
i have a dual monitor setup and i want my c# application to maximize its window on a specific Screen.
how can i do that?
thanks!
...
Suppose I wanted to create an open source Windows Forms project written in .NET. I am pretty well-established in my opinion that the System.Windows.Forms suck big time. I love Developer Express' controls, but they cost an arm and a leg and I don't see how their per-developer licensing would make it possible to use them on an open sourc...
I have a windows forms applicaton that stores several small icons as resources for the application. I have been using the select resource screen within Visual Studio which gives you the option of using a Local Resource or a Project resource. Obviously the project resource method provides a way to use the same image multiple times which...
When you bind properties to a view how do you handle the properties visibility and edibility for users and object state?
I have seen several examples of using an authorized attribute on the poco's property. But this does not seem flexible.
The best that I could come up with was to store this display information in a dictionary the vi...
I have several textboxes on a windows form.
I can't paste text into any of them using CTRL-V, though I can still right click and select paste. This is pretty annoying.
I have tried this with the form's KeyPreview as both true and false. TextBox.ShortcutsEnabled is also true.
...
Hello everybody,
My background is pretty much ASP.Net, and I was asked to develop a small windows application. I tried to use a grid to present and select data, and I tough that the equivalent in windows forms to the ASP.Net's GridView was DataGridView. I'm not sure yet if that is the case, basically, in ASP.Net, you have the _RowComman...
Launching your app automatically immediately after install is suprisingly tricky. The advice that's out there if you google the problem is varied but most of it unsatisfactory.
We're using the built in Setup & Deployment project in Visual Studio.
So, how to do it?
What doesn't work:
The simplest solution suggested is to add your app...
Hi ,
I am tring to connect AS400 iSeries database from winform application
The AS400 server is iSeriesDB2. i added IBM.DB2.ISeries.dll to reference and added and tried following code , but getting exception in first line . please let me know if i need to install any drivers or any other dll.
Dim cn As iDB2Connection = New iDB2Connecti...
When I add a WebBrowser control on my TabPage, it doesn't have a border.
I can't find a BorderStyle attribute.
How do get the control to have a border? (3D, sunken, whatever)
Only by the scrollbar on the right you see there's actually a control there...
...
Hi, is there a way I can get a Load event for System.Windows.Forms.Control just like System.Windows.Forms.Form.Load?
I want to run some initialize code before the control first shown.
Also, it would be nice to be able to do the same for System.Windows.Forms.ToolStripStatusLabel which is not actually a Control, but works like one.
Idea...
Hi
I am wondering how do you re show a hidden windows form(in this case a windows mobile form but probably done the same way in windows forms).
Like Say I do this
Load Form 1
Click on a Button to Load Form 2 up
Click on a button to load Form 3 up and hide Form 2.
Click on a button to close Form 3 up and show Form 2.
I know how to hid...
Hi
I have a panel that has lots of labels and checkboxes. I want to grab all these controls and resize them?
How would I do this? Would this be like going through the panel for all the controls then resizing them?
Or do you think it would be better to re render the whole form again with the new sizes. However this would require me to...
Hi All,
I'm making a program that does stuff (Sorry, I'm not allowed to say what it is), but I want to be able to let Windows Speech somehow "know" that there are linklabels and buttons on my Forms, so that when I say "Next" or "Start" etc, it will click those buttons. Just like when you are using IE and you are on Google.com and when y...
I have a
BindingList<T>
which is bound to a datagridview. One property in my class takes long to calculate, so I threaded the action. After the calculation I raise the OnPropertyChanged() event to notify the grid that the value is ready.
At least, that's the theory. But since the OnPropertyChanged Method is called from a differend ...
Hi,
In the DataGridView there are rows sorted by priority (first row has the highest priority) and I want to enable the user to change the priority in the user interface. The best way to do it would be to simply drag and drop the selected row but I think the logic to implement this functionality is quite complex.
The other possible way...
Hello
I have a basic winform, calling an external program (SVN). I want to display the output produced by SVN in a textbox in the form.
Here is my code for calling this external program :
private void SVNcmd(string args, string workingcopy)
{
textBoxOutput.Text += workingcopy + Environment.NewLine
+ args + Environment.NewL...
I have a (rather large) application which occasionally gets 'stuck' whilst loading - with controls half painted etc.
From what I have managed to work out from logging, this happens after the end of the _Load event.
The only time it happened to me when running from Visual Studio, I tried doing a pause, and it just took me to the Applica...
Hi,
Can anyone please explain to my why the form in the code below gets out of focus when selecting a treenode in the tree? What should happen is that the form/button should get the focus when the tree disappears like the listview example but it doesn't.
Code example:
using System;
using System.Collections.Generic;
using System.Compon...
I am trying to create an image of a Panel and save it to a folder. The problem is the panel has scrollbars and the image generated is only for the visible portion of the Panel.
The code I use is something like Panel.DrawToImage. Could there be any help out here to save the entire Panel as a picture and not just the visible portion?
...