I am learning how to develop Windows Forms applications with Visual Basic Express 2008, and my testing/learning application has a TabControl with a few test pages (3, for example, the number isn't relevant here).
Now, I am handing the MouseClick event on the Tabcontrol, and I can't seem to be able to figure out how to get which tab was ...
I have a list of classes that represent mydatabase tables for example Address,Client.
My GUI tends to be a grid of data and an data entry form. This works fine for single table data entry however I now have a form that has client information and their address.
I was thinking of using a ViewModel combining the Address and Client class ...
Hi.
I am creating a TextBox control subclass using Windows Forms. I am using the WM_NCCALCSIZE to change the client area (to enlarge the non-client area) but I have not found any solution on how to make the non-client area transparent.
Is there any simple way to paint to non-client area in WM_NCPAINT in transparent way to duplicate the ...
I have created an application ,( c#,winforms) on VS 2008, i want to make installer of this application...
how is this done.
I want my installer to
copy all the files that my
application is using to a user
choosed path (copy the files on
chocice, some for server-side app and
some for client side)
also install .Net 3.5
check for SQL ...
I am new in data binding.
I have those classes:
public class Foo : List<Bar>
{
public string FooName { get; set; }
}
public class Bar
{
public string BarName { get; set; }
public string BarDesc { get; set; }
}
And I have a List<Foo>
I would like to have Foo items in ComboBox, and Bar items in ListBox. When I change sele...
I'm just a beginner at VB.NET...
I want to be able to insert a combobox control onto my form through code but I'm not sure how. Google doesn't seem to answer.
Something along the lines of (I have no idea)
Me.AddControl("Combobox")
I would obviously then need to set the properties to setup the position/size etc.
Thanks
...
All,
As far as I understand ASP.NET MVC is the framework that implements the MVC pattern released my Microsoft. I wonder why there is no Winforms or WPF MVC implementation ?
The reason I am asking is that I am planning to start on a new big WinForms project and ideally we are looking for a framework that implements some kind of common...
I am currently investigating whether to build a windows application using unmanaged C/C++ or in .NET and would like to know of the kind of performance and responsiveness that is capable with a managed C#/.NET GUI app?
Not surprisingly it looks like the fastest most responsive applications (e.g. chrome, spotify, etc) are written in unman...
An application I'm working will have a number of forms with a lot of shared functionality. For instance, each form will have a DataGridView, many of the same buttons, much of the same UI code and so on.
I'd like to implement this by creating a base version of this common form, subclass it for all these very-similar-but-not-quite-the-sam...
Hello Community,
i've a problem with the height of the System.Windows.Forms.Combobox-Control. I can't change it. I want to use that to write an own implementation (owner drawn custom control).
The following code does not work for me (It's only to try). The height is still 21px!
public class TestBox : ComboBox
{
public TestBox()
...
Showing text in Textbox that's got enabled set to false or read-only set to true produces black on grey text, which isn't very nice to read at all.
What's the easiest way to show read only text nicely in Winforms?
...
hi, I am looking for a better way to verify that no field is left blank in a form, currently this is my implementation, if you have a better one it will be welcomed, note tha I am using KryptonControls.
private bool verify(Control c)
{
switch (c.GetType().Name)
{
case "KryptonTextBox":
{
if ((...
Hello,
I'm tyring to add a feature to my app that sends a nudge to all users of my program (family members inside the house), and when they receive the nudge the window of my app on their computer shakes for a second...
Can somebody please suggest how i'd have to go about this? I've never worked with tcp/ip before.. Is this what I shou...
I found that while trying to find the owning toolstrip of an item, it wasn't a easy as just looking at the owner of the item. Below is some pseudo code that I think should work. Can anyone see any problems with this or should it work in all cases?
(1) Is type of Item.Owner a ToolStrip?
(2) Yes, Return Item.Owner
(3) No, Item = Item.Ow...
My winforms application is rendering very choppy. Is there a technique that can be used to either draw a form off screen, or to have it be hidden until the layout has been processed? Anything to help speed up the visual load of my forms.
Thanks for any help.
edit:
Forms have a couple grids each, and around 20 - 30 additional control...
Hi All,
I keep getting the following error when debugging.
Cross-thread operation not valid: Control 'richTextBoxReceivedMsg' accessed from a thread other than the thread it was created on.
Here's the code that it points to:
public void OnDataReceived(IAsyncResult asyn)
{
try
{
SocketPacket socket...
Earlier today i was suggested in here to use a DataGridView to print messages that needed a individual mark as read.
I followed the suggestion, and with some reading online i managed to bind it to my message list with the following results after some tweaking.
Currently i have 2 issues, the first one is that i didn't find a way to re...
Hi,
I have a simple WinForms type application (main form, couple of sub-forms, minimize to system tray with notifications showing here).
I was going to move to WPF however I'm hearing some people say go silverlight (out of browser).
Question - Which way should I go for a simple desktop winforms type app? WPF or Silverlight?
Tks
...
Howdy,
I came across Marc Gravell's elegant and witty solution to the problem posted by Matt ( title "C#/winforms: how to best bind a propertygrid and a System.Data.DataRow" ), and have used same solution in one of my applications.
Using some excerpts from Marc's code :
DataTable table = new DataTable();
table.Columns.Add("ID...
I have a database containing two tables, Products and Licences. Licences.ProductID has a foreign key reference to Products.ProductID (i.e. licenses for that product).
How do I represent that relationship in a WinForms DataGridView?
When feeding the DtaaGridView (SQL Metal and through LINQ to SQL), the ProductLicences.ProductID, it auto...