Hello guys,
I'm using this tutorial from MSDN (to the letter) and I'm failing to add new rows to my datagridview component.
http://msdn.microsoft.com/library/7tas5c80%28en-us,vs.80%29.aspx
When I try to add a new row, there is an error: "At least one of the cells do not have a cell style defined". According to the code, the CellStyle ...
I've searched on SO and found answers about Quartz.net. But it seems to be too big for my project. I want an equivalent solution, but simpler and (at best) in-code (no external library required). How can I do to call a method daily, at specific time?
I need to add some information about this:
the simplest (and ugly) way to do this, i...
Hey:
i am very new to windows form UI development. now i am just doing all the drop and drop for UI design. but the problem is that all my UI elements are fixed size. when i maximum the window. the window gets bigger but all the UI elements in the window stays in the same size, and it looks awkward. is there a property could be set so t...
I have a very annoying problem and I'm trying to find the simplest solution possible, but I seem to keep complicating it.
My program displays a custom dialog box using the ShowDialog function (I create this form using a New constructor), but while my program waits for input in the dialogbox, my program continues to run other code, (I'm...
hi i have on object (serverconnection from sqlserver Managament object ) i need send this object to other form to configure connection option and connect so object return but when i send this object to form2 how return it or when i use form.ShowDialog() when this return or how return from this
...
I have this code:
foreach (var item in ListView1.Items)
{
ListView1.Items.Remove(item);
ListView21.Items.Add(item);
}
the loop stops at half of the items?
Any idea?
EDIT
Well, maybe it's my mistake, I need to clarify that this is UltraListView control from Infrajistics,...
I have a college project that I want to do as 3 Tier Winform Application so that I need only to update my application at one place (ie the server). Does anyone have suggestion on how to do this? I have to work with a client machine, and a fairly good server. I want the server to house the Database and the Business Logic, and want the ...
Scenario: Winforms DataGrid control in which one of the columns is a comboBox control (NB: not datagridview).
The DataSource for the DataGrid is a dataView, with essentially two ID fields, lets say OrderID, CurrencyID; i show the CurrencyName in the combo and grid, but store the CurrencyID. So, the DisplayMember for the combobox is Curr...
I am using Entity framework and have 1 field in database AddedDate that is DateTime and not null, so I need to pass DateTime value.
But the problem is I have to pass DB Server datetime. How can I manage in this sceario or how can I get DB Server datatime to pass this.
I need to some unique solution, because I am this on many forms.
E...
Hi, i'm trying to make a small project that uses multiple forms (dialogs) for different states and ran in a few problems.
My dialogs are Login, Settings and Display.
When application is started Login form is displayed
Application.Run(new login());
from it the user can open Settings form or, if certain requirements are met, the Display...
I want to execute custom query to get datetime of DB server select Getdate() using entity framework. How can I do this?
Thanks
...
I'm working with a bit of code that is structured thusly:
Form A has user controls B and G within it. User control B has User control D within it, and user control D has a "refresh" method. User control G has user control F within it, and user control F needs to call the "refresh" method in D.
1) Short of restructuring the code (It's l...
Hi All
I have a ListView Control in WindowsForm and also this Listivew has a checkBox I Just want one thing that when userClick on CheckBox I want this Event
I used ItemCheck and ItemChecked Event but these event is firing every time even when Firstime my form is loading
...
While collecting some training data for NLP, I discovered that it is impossible to select parts of 2 adjacent words in a RichTextBox.
For example: you can not select "lect Me" from "Select Me" in a RichTextBox using mouse..!!
However it can be done using SHIFT key
Is there a property to be able to select parts of adjacent words not the...
Hello everyone,
I am having quite a hard time with my C# Application's textbox validation. The thing is, the said textbox should only accept decimal values. so it means, there should be no letters or any other symbols aside from the '.' symbol. The letter filter, i can handle. However, i don't exactly know how I can manage to filter the...
I receive text from a *.csv file in any date format
For example: dd/mm/yy or dd/mm/yyyy or mm/dd/yyyy or 4 may 2010......
How I can convert to just a single type of format: dd/mm/yyyy ?
I'm working on C#, .NET 3.5, WinForms
Thanks in advance
...
Private Sub HScrollBar1_Scroll(ByVal sender As System.Object, _
ByVal e As System.Windows.Forms.ScrollEventArgs) _
Handles HScrollBar1.Scroll
Me.BackColor = HScrollBar1.Value
End Sub
How can I set the BackColor of the form? How can I use an RGB value?
...
I found a lot of posts that dodge this topic, but none that actually addresses this case.
I have a ComboBox bound to a List<State>, where State is a business object that has Abbreviation and Name properties:
this._stateComboBox.DataSource = ((Address)this._addressBindingSource.DataSource).States;
this._stateComboBox.DisplayMember = "Ab...
hi
i have this text format:
8/27/2009 8:23:06 AM
Thu Aug 27 12:42:22 2009
08/12/2009 20:22
i need to get this: dd/mm/yyyy
how to do it in C# Winform code ?
thank's in advance
...
I am using C# and WinForms to create UI of my application.
I have main window and dialog, which is shown modal to the main window. Dialog window is not shown in task bar. I go to another application and return back by clicking at the main window task bat icon. I can see locked main window but cannot see dialog unless I select it in Alt-...