-
- How to disable DataGridView to sort?
by Henry_Yang
- 4 Replies
- Last post
by Jay Vora
- Hi, Guys
There is DataGridView control in my C# application, which is bounded to a data table.
when i change the cell view of DataGridView, the DataGridView will be sorted, How can i disable sorting of DataGridView. i tried the as the fowlowing
DataGridView1.Columns["ColumName1"].SortMode = DataGridViewColumnSortMode.NotSortable.
i set all the colums sortmode to NotSo
-
- How can I set a digital clock on my windows form project in C#?
by LORDTEK
- 10 Replies
- Last post
by missuniverse
- Hi,
The question is very simple. " How can I set a digital clock on my project "
I want to put a digital clock seems like that " 2006-09-23 Wendsday 23:12:48 GMT " means " YYYY - MM - DD ' DAY ' HH : MM : SS ' GMT ' "
I am master of C and php however I am newbe in the visual languages.
Thank you...
Edit: I am using C#
-
- ToolTip Font Change?
by AlexBB
- 14 Replies
- Last post
by AlexBB
- Is it possible to custom set up the .Bold property as well as to manipulate the font size for ToolTip objects
Thanks
-
- C# Progress Bar
by SameerSCT
- 14 Replies
- Last post
by SameerSCT
- Hi,I need to implement s progressbar in my application. However, I need to pass the progressbar.value variable to some evaluating function (which say loops 1000 times) so that the function can update the value of the progress bar as the loop gets executed. However, progressbar.value is a property and hence it cannot be passed as a reference to the evaluating function. How then can I update the val
-
- Need help with setting up a comboBox
by Sorci
- 4 Replies
- Last post
by Sorci
- Hello fellow members,
I am working on a C# program using Visual Studio 2005 Professional Edition. I am having some difficulty setting up a combobox. I would like to have the combobox set up to access certain files on my computer hard drive (C:/). I have the file names set up in the combobox, but I am not sure how to bind them to the corresponding files on my hard drive. My research on MSDN
-
- MSI with custom action(created vai vs2003) insatll hang on vista
by masue
- 3 Replies
- Last post
by PhilWilson
- Hi,
I created a window service and msi install file vai vs 2003.
I try to install it on vista, it "hang"...
If I remove custom action, it will install well.
I try to modify custom action type from 1025 to 3073. The insatll progress run failed , too.
Does anyone have solution
-
- Dragging form around the screen
by jpate86
- 2 Replies
- Last post
by jpate86
- I want to make so that if you click and hold on a spot where no controls exist on the form, then when you move the mouse around the form location follows the mouse. Basically I have some forms with no control borders on them, but I want to emulate the action of clicking and holding the mouse button on the title bar then have the form move accordingly. If anyone can help me out with this that would
-
- Button Event Not firing ( should be simple )
by andrewcw
- 2 Replies
- Last post
by andrewcw
- I have a class that will call a user interface display ( form ) & feed it process info to update. The form also has an abort button to let the process know to stop doing its work. It sounds simple. I'd like the form to raise an event in the class. But I need some clues. I also tried sending the form a reference to the class so it's Abort button could set a property that's examined periodically
-
- How to create a different UI
by Helixpoint
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- I would like to get away from the same ole boring interface. Are there and examples I can download that does this. For example. This is a simple interface.
http://www.pctools.com/res/zoom.html /res/images/registry-mechanic/screenshot.gif
-
- Button Click
by Xaid
- 6 Replies
- Last post
by Xaid
- Just a small problem. I'm having problem clicking a button in my webbrowser inside my form . private void btnSubmit_Click(object sender, EventArgs e)
{
HtmlElement Button = this.webBrowser.Document.GetElementById("post");
Button.InvokeMember("post");
} Thats my code I don't understand why it doesn't work . Any insite is much appreciated.
-
- Best way to Implement
by Yuven
- 6 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Retreive 20000 records from the database and bind to datagridview1.
Its a time Consuming job
So I used 2 background worker.
On Button Click the First backgroundworker(backgroundworker1) will create and do step1.
step1 - Disable Button , Get top 50 records from database and display in the datagridview1
On Completion of the backgroundworker1 create Second Background worker2 an
-
- DataGridView System.IndexOutOfRangeException: Index x
by Salizar
- 2 Replies
- Last post
by Salizar
- Here's the Setup.
DataTable 1 contains CRM data, cases, Customer names, Rep Name, Dates, etc...
DataTable 2 contains Stats about the CRM data, Total Rep Cases, Assigned, Resolved, etc. Normal CRM information.
There are two DataGridViews on the Form, Grid1 and Grid2, holding data about Table1 and Table2 respectively.
Heres where it gets ugly.
When changes are made to Table1 the st
-
- Button click with API ?
by kadir950
- 1 Replies
- Last post
by Rong-Chun Zhang - MSFT
- I want to click "Ok" on IExplorer's messagebox by using API without using the mouse. Can you please help me
-
- Toolbar images missing in VB.net
by deken_99
- 4 Replies
- Last post
by deken_99
- I have a windows application I've created with vb.net 2003. The startup form has a toolbar on it that contains images (save, new, etc). On my computer, and most others, the toolbar and images work perfectly. But on a rare number of computers the images do not show up. The toolbar buttons function fine, only the images are missing. The computers are running the same executable and there are various
-
- Creating DB2 Querry using .net
by maveric_sam
- 0 Replies
- Last post
by maveric_sam
- Hi,
I am developing an application which connects to DB2 server and hence executes some querries there such as extracting data from the tables in the database. When I try to create or declare a cursor, the error pops up saying :
ERROR [42601] [IBM][CLI Driver][DB2/NT] SQL0104N An unexpected token "DECLARE CRSR CURSOR WITH HOLD FOR SELECT * " was found following "BEGIN-
-
- Getting the number of listbox items in another form
by Lucy_H
- 4 Replies
- Last post
by Lucy_H
- I have two forms. Form1 with a listbox (with 3 items) and a button. When this button is clicked form2 should open. On Form2 there is a tabcontrol with 4 tabpages. When Form2 loads I want it to show with just 3 tab pages. So on Form1 i have the following variable defined:
public int countItems { get { return listBox1.Items.Count; } } On form2 I have made form1 public ( public Form1 frm1; ) and i
-
- Maximum button
by Jerryk
- 4 Replies
- Last post
by Jerryk
- I'm using vb.net..
1. How can I open a form as though the maximum button was clicked.
2. How can I determine the size (height and width) of the form after it is maximized.
On question 2, the size reported after maximizing is really small and is the same size reported when the form is minimized.
Private Sub frmMyForm_resize( ByVal sender As Object , ByVal e As Sy
-
- How to add a link to the executable to user's programs menu?
by bpeikes
- 2 Replies
- Last post
by bpeikes
- I have a setup project for a solution which has 3 projects, one executable and two assembly projects. I add to the installer project the "Project Output" for the executable project. The setup project automatically adds the all of the referenced assemblies. I want to add a link to the executable on the User's Program Menu in a subfolder. I right click in the subfolder and select "Cre
-
- Saving changes in DataGridView
by HKEC
- 1 Replies
- Last post
by Gavin Jin - MSFT
- Assuming DataGridView is getting data from a datatable. How do I save the changes a user made on a DataGridView Can someone point me to some sample code. Thanks.
-
- How to: Webbrowser NewWindow and Navigating equivalent to axWebbrowser
by WilfridB
- 14 Replies
- Last post
by CEisen
- At first, I enjoyed the new webbrowser control but then I noticed that the args provided by the events NewWindow3 and BeforeNavigate of the axWebBrowser had not been implemented in the new control. Arg. Good news, the guys from Microsoft gave us the a workaround recently in C# and said they will publish a sample soon on MSDN. In the mean time, here is some VB.net code inspired from
-
- usercontrol with a collection
by Chardiot
- 13 Replies
- Last post
by decyclone
- I am creating a usercontrol which contains "tabItemsList" which is a collection derived from collectionbase and typed to a class "tabItem" which is derived from object.
All works fine in design. If I drop my cotrol on a form I get an ellipses button next to tabItemList in the properties window where I can add items to the list and these are drawn at design time.
H
-
- Custom panel not refreshing properly in designer
by MrBones
- 8 Replies
- Last post
by MrBones
- So I have a really simple class "PanelEx" that all it has are the following styles set in the constructor: SetStyle(ControlStyles.Opaque, true); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); Because of these the designer doesn't refresh my panel. I thought there was a way to handle certain things like if in design mode, but I forget how to d
-
- adding a user control to the Toolbox
by bruce027721
- 6 Replies
- Last post
by bruce027721
- I am having problems adding a user control to the Toolbox in the .NET environment. How do I do this
Thanks for any help.
Bruce
-
- Regarding changing Font size and the application getting crashed.
by Girish Gangavathi
- 1 Replies
- Last post
by TaylorMichaelL
- Hello all,
I am facing problem which is very strange.This is regarding the
Changing the system language to Dutch(Netherlands) and dynamically
chanfing fontfamily to "verdana" and fontsize to a floating point
number then the application crashes.Can anyone help me regarding this.
If font size is an integer it doesn't crash.
-
- HTMLDocument Class
by meighlough
- 1 Replies
- Last post
by OmegaMan
- Does anyone know what the equivalent class (if it exists) is in .NET v1.1 I made a program in VC#Express 2005 (.Net v2) and now I'm remaking it in .Net v1.1 because I need to use the proper build wizard rather than click once wizard. Basically, my app hosts a webbrowser control, loads a html file and selects the controls on the html document using the HTMLDocument class. I need to be able to do