-
- opening PDF cocument fro mresources
by miscal
- 8 Replies
- Last post
by miscal
- how do I open a PDF document stored in resources of my application
-
- Adding large numbers of columns to DataGridView
by wjousts
- 3 Replies
- Last post
by timvw
- I need to dynamically add a bunch of columns to a DataGridView. I create all my columns and then add them using AddRange but still the performance of this step can be very slow. For example, adding around 300 columns is taking 9-10 seconds. Is there any way to speed this up
-
- Tree view context menu: How to get the node clicked?
by J Andrews
- 8 Replies
- Last post
by Wojciech Krzy?ak
- Hi, I have a tree view, which contains a few nodes, say Node1 to Node5. Every node is associated with the same ContextMenuStrip. When the user right clicks on any node, the same menu pops up. When the user clicks on a menu item, I want to identify which node he clicked on. I have event handlers menuItem_Click and ContextMenu_Opening, but none of these tell me what were the mouse co-ordinates. I c
-
- Adding an image to a subitem in a listview
by Lucy_H
- 4 Replies
- Last post
by Lucy_H
- Hi I want to just add an image to a subitem in a listview. I have found many examples on the internet but they all look to complicated. Here is my code for adding files and directories into the list view. (I presume that the code to add an image for each row in the subitem would go here):
this .listViewFilesAndFolders.BeginUpdate();
foreach ( DirectoryInfo di in dirs)
{
lvi =
-
- Problem with C# and SQL: table doesn't save data
by CarlosSantamaria
- 2 Replies
- Last post
by CarlosSantamaria
- Hello, I created a SQL DB with a single table using C# 2005 Express and SQL Express, and after doing that I dragged the table to a form to create the datagrid. Up to that point everything was working fine. The problem I have is that the data I add to the table (by clicking the floppy disk icon on the datagrid) is not really recorded in the table and each time I run my application from VS, the ta
-
- Two forms and checking 2nd forms text box
by ShawnKY
- 10 Replies
- Last post
by ShawnKY
- Hello all, I am coming from a VB .NET background and I am a little confused with how to access another forms properties in C#. Basically I am taking one of the exercises from my VB book and trying to convert to C# to help me learn C#. Anyhow, here is the task at hand. Form 1 is basically a list view of items that were sold for a particular day. One of the buttons on this form allows the user to op
-
- Insert images into RichTextBox in C#
by Divya63
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi,
I would like to know if it is possible to paste small images consecutively on a richtextBox. I am using an approach where in I have the images ready with me...and I copy them to a clipborad and the paste it from the clipboard on to the rich text box...
However, the problem here is that I cannot paste these icons continuously one after the other..
Another major problem is that,
-
- Using Threads in Serial port Connection
by Asemeh
- 2 Replies
- Last post
by OmegaMan
- Hi, I have a component which is connected to the serial port and I want to send and recive data via the following code. The GUI should be always running and wait to get the data , thats why I used a single thread . there is no problem while the output is printing in a messagebox but I can not use a listbox or any other controls to print the output, so an error message occures. Please let me know i
-
- Form only saves last changes to database
by wayliff
- 9 Replies
- Last post
by wayliff
- Hello
I have a form with a datagrid view. The data on the form changes according to the selected item on the datagrid view.
On Form Load
Me .TblContactTableAdapter.Fill( Me .DataSet.tblContact)
Me .TblStateTableAdapter.Fill( Me .DataSet.tblState)
On Ok_button_Click
Me .TblStateInfoBindingSource.EndEdit()
Me .TblStateInfoTableAdapter.Update( Me .DataSet.tblSt
-
- missing control
by wilsoneden
- 4 Replies
- Last post
by wilsoneden
- Hi.. I'm experiencing something that I don't know how to say (seems like the control is missing or something). Please point me some keywords to the error in this image and what caused the missing DataGridView. This happens once in a while during debugging while I have not released the application. Thanks.
-
- How to change splitter border color.
by Rodolfo Caporale
- 3 Replies
- Last post
by RedCurry
- Hello.
When I use split container controls and select border style to fixed single, always appear black.
Anybody know how to specify a new color
Thanks.
-
- Database Question
by Nefer-Ra
- 5 Replies
- Last post
by Nefer-Ra
- I have two forms, a Main Form of a CookBook, and another form that should Add Data to the CookBook. The first form has bind navigator, DataSet, BindingSource and a Table Adaptor. Now, when the user clicks an "Add" button, a modal form appears where the user has three fields like Title, Ingredients and Recepie. When he writes those fiels, and clicks the add button, everything will work fi
-
- checkedlistbox item height
by scottm
- 3 Replies
- Last post
by scottm
- Hallo
I am struggling to change the height of items in a checkedlistbox. I have tried making it owner drawn but to no avail. If anybody could help me with this it would be greatly appreciated. Thanks
-
- Can we put GIF image
by Hardik Doshi
- 4 Replies
- Last post
by Yu Guo ¨C MSFT
- I am using .Net 2005 and project type is windows application.
Can we put GIF image in the window application type form I have put one gif image in the form with picture box control.
But when application runs, it is static.
The gif is for rotating arrow but when I put and in running application, it is static.
-
- Details View Add to SQL
by Lawrence 007
- 2 Replies
- Last post
by Lawrence 007
- Hi,
I have a detailsview that is being populated by Items in my Database. I have a button in the Item template as well as a Text box. The item description and Price is being displayed by Labels.
If someone clicks the button, what code can I use to add that "Item" that was clicked to a Orders table in my SQL database with the Text box quantity as the Quantity.
This wo
-
- User control with some translucent parts
by arcoant
- 10 Replies
- Last post
by arcoant
- Hi, everyone! I'd really like to hear (or read ;)) some help on solving my problem. I want to create a custom user control. I'd probably derive it from Control class, I want to draw everything on the control by myself (it's actually not going to be really complicated). The problem is that I want to draw some kind of a shadow that drops onto the background of this control. Obviously, it has to be
-
- Report Viewer DataBinding ?
by thukralz
- 1 Replies
- Last post
by Guang-Ming Bian - MSFT
- I have my own set of queries written and have the results in a dataset. If I was to bind that to a datagridview is simple and straight.datagridView.databind = dataset;
In this case I'm using Report Viewer Control available in VS2005, How can I use the dataset I have to bind to this reportviewer.
Secondly, I have created .rdlc where I have matrix, table in the report. How can I bind t
-
- ContextMenuStrip Event Handler question
by bassplayer
- 1 Replies
- Last post
by Amr Elsehemy
- I have a ContextMenuStrip that I dropped on my form (pcellmenustrip) and I dynamically add ToolStripMenuItems to it with this code: For counter As Integer = 0 To mylist.Count - 1 Dim tsmi As New ToolStripMenuItem() tsmi.Tag = _mylist.Item(counter).myId tsmi.Text = _mylist.Item(counter).myDescription AddHandler tsmi.Click, AddressOf pcellmenustrip_Click items.Add(t
-
- Communicate Between User Controls in C# Windows Application
by sanjangr
- 6 Replies
- Last post
by Oleh Svintsitskyy
- Hi, I need to send some data between two user controls i use within my windows form. the 2 user controls are initialized at runtime. I have put my 2 user controls in 2 tabs in the same form. i need to call a method in one user control from the other control when an event occur in the other control. how do i go about doing this. how can i call the other control's method from one control please hel
-
- Control's Paint event takes too much time
by danni123
- 6 Replies
- Last post
by danni123
- I want to open new form (from main form) with a chart control (dundas), because the data to loaded is huge, it takes a lot of time to control to be "painted" on form, this results form-freeze.
How can I avoid this freeze
While the control is being painted I want to display new window with marquee status bar, but I don't know what should I put in thread (or background worker
-
- 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
-
- HTMLDocument.InvokeScript and permissions in IIS
by Rod Yager
- 5 Replies
- Last post
by Rong-Chun Zhang - MSFT
- I have an application that invokes javascript from a webbrowser control and it work perfectly when it is on my local IIS. When I move it to an actuall web server I get "Access is Denied" error when invokescript methods are called. What do I need to setup so that this will work
IIS is 6.0 and OS is 2003 Server R2.
-
- hightlight item Listbox
by cisco0407
- 2 Replies
- Last post
by Gavin Jin - MSFT
- How can i in code highlight a item in a listBox
-
- datagridview datetimepicker without time format problem
by oceansis
- 8 Replies
- Last post
by Gavin Jin - MSFT
- i am using that c# code for datagridview datetimepicker from this link
http://msdn2.microsoft.com/en-us/netframework/system.windows.forms.idatagridvieweditingcontrol.aspx
but i do not want to print time in date, i want only print the date like "07/02/2007". how can i do that on this code. thanks
-
- WebBrowser control shows HTML code
by Aussie
- 8 Replies
- Last post
by Figo Fei - MSFT
- Hello,
I've a project where i'm assigning a HTML string to the DocumentText
property of the WebBrower. On most PCs there's no problem with it, but
there are PCs which show the actual HTML code instead of the webpage.
Any idea's what's the reason and a possible solution :)
Regards,
Aussie