-
- How to get a listing of printers?
by milicica
- 2 Replies
- Last post
by Ken K.
- How can I get a listing of printers in local network or local PC I want use the listing as source to give the opportunity to choice printer. Thanks for any help.
-
- help with DataGridView
by shimshon
- 1 Replies
- Last post
by hrubesh
- hi all.
can i use button inside a column, and let the user see text next to the button.
** when the user will press the button, it will open a modal form, and when he will close that form i'll insert the data to the current cell, so the user will see the data and the button, and he can press it to edit the data.
-
- What am I missing to install a windows service?
by C McQuade
- 2 Replies
- Last post
by PhilWilson
- I'm attempting to construct a setup/installation package for a windows service, thus far I have completed the following steps:
1.) Added an 'installer project' by right clicking -> "add installer" on the service1.cs file. This added a ServiceInstaller1 and serviceProcessInstaller1.
2.) I set the ServiceName to the name of the project (MonitorWebSite), the startType as Automatic,
-
- DataGridView.VisibleChanged bug
by bpeikes
- 1 Replies
- Last post
by Ken Tucker
- I have a DataGridView on a tabPage and I've wired the VisibleChanged event. It is only getting fired when the grid becomes visible not when visibility turns to false. Very strange.
-
- editing a cell 1k to 1,000
by Darren Gulliver
- 4 Replies
- Last post
by Darren Gulliver
- Nice Documentation Mark, Thank You.
Straight from VB6 I've started trialing VB 2005, and wow what a change. Most syntax is stright forward and I'm grasping pretty well. I'm having slight difficulties with the DGV, I'm sure its easy enough but I've not had that much to do with Editing Data with any grid. Populating the grid using a DataSet not a problem however I'd like to mimic code we use
-
- identity columns and seperate data access layer project
by kryptonneke
- 0 Replies
- Last post
by kryptonneke
- I've got a c# project that uses a Typed dataset to get data from an Access Database. All the tables in the database have ID fields that are autonumber columns. Now in a dataentry form I do something like
Code Snippet
sessionsBindingSource.AddNew(); ... fill in some values for the session ...
sessionsBindingSource.EndEDit();
sessionsTableAdapter.Update(rmDataSet) However I al
-
- ComboBox referesh
by TechNoFear
- 2 Replies
- Last post
by TechNoFear
- Hi,
I'm using Initialise() to populate a ComboBox, then I'm using DSSComboBox_SelectionChangeCommitted() to populate a second ComboBox and matrixComboBox_SelectionChangeCommitted() to populate a third.
When I return to the first ComboBox and reselect, the second ComboBox changes, but when I make a new selection in the second ComboBox the third does not change.
I have tried col
-
- vb will write record to sql one time and not the next
by aerospaced
- 14 Replies
- Last post
by aerospaced
- I've encluded the code. I have a problem a new record is created or an old record edited, you must press save 2,3 or 5 times to get a record to save. I put a msgbox to read the records modified reply from sql server and I will get a one back, but when I close the program and check the sql server, the record was never written. But If I hit it 4 or 5 times, it will save; or if I add a new record, it
-
- richtextbox scroll vertical bar
by dophine
- 2 Replies
- Last post
by dophine
- hi,
when I scroll the vertical bar of richtextbox programmatically, how can I change the text according the movement of the vertical bar since the text remaid the original position.
-
- Getting random sc-win32-status 64 errors in IIS 5.1 when downloading larger files.
by Wout
- 1 Replies
- Last post
by Wout
- Hi,
I have a problem with a ClickOnce app that I'm trying to deploy on my computer (XP Pro) using IIS 5.1. I'm trying to install the app locally on the same computer, but randomly the download of dll's fails. Some dll's download ok, but it looks like bigger dll's are problematic (especially dll Microsoft.DirectX.Direct3DX.dll fails most/all of the time, which is 2.6 MB). When it fails, IIS
-
- Asynchronous calling question
by andriscs
- 13 Replies
- Last post
by andriscs
- Hi, I have a method that calculates directory size recursively. With large directory structures it is quite slow so I decided to start it on a separate thread so I could use my form meanwhile. I read a lot about threading but something is not clear. Here is my code:
Code Snippet
delegate long MyDirSizeDelegate(DirectoryInfo di); ... DirectoryInfo di=new DirectoryInfo(dir); MyDirSize
-
- How to make the User controller text font....
by Tapojjwal Mandal
- 6 Replies
- Last post
by Tapojjwal Mandal
- Just like this message editor....The user can bold the text....Change the Font....Set the color......Like this and also when the user submit....The all fonts property will store into database....I need help.
-
- VB.NET Windows Forms App VERY SLOW after upgrading from .NET 1.1 (VS2003) to .NET 2.0 (VS2005)
by NBrus
- 8 Replies
- Last post
by NBrus
- Hi,
I have recently moved to using Visual Studio 2005 for all future development work and so I upgraded an existing Visual Studio 2003 Windows Forms Application to use .NET 2.0. There were a few things I had to fix after the upgrade wizard completed (with no errors), but mostly relating to initialising declared variables etc, nothing drastic.
However, I fully expected my application
-
- A timer .. no I jsut need to pause for X
by kcdclan
- 6 Replies
- Last post
by Bruno_1
- I don't get how I can pause with a timer. I know how to use a timer a little. But I gess I don't really udnerstand them. Therefor I have like 3 on my program right now becasue i dont get how to pause. My code looks sorda like this.
private void timer3_Tick_1( object sender, EventArgs e)
{
label13.Text = "1" ;
int i;
mshtml. HTMLDocument obj;
obj = (mshtml. H
-
- Panel scale factor
by Ice72
- 7 Replies
- Last post
by Yu Guo ¨C MSFT
- Hi,
I need to "scale" a panel to allow user to zoom/unzoom the panel's controls. I use the existing panel property,
but I note that there is any way to detect the real zoom factor (which change due to some panel-internal logic,
I suppose, due to the fact that is slightly different from the passed one).
Is possibile to detect the real zoom-factor I need, with zoom d
-
- Creating Custom Collections for Custom Control inheriting from DataGridView
by Anonymous585517
- 0 Replies
- Last post
by Anonymous585517
- Hi,
We are trying to extend the DataGridView with some more functionalities which needs collections like "ValueItems", "Splits" etc., We are trying to extend the properties and collections of a TruDB Grid into the MS DataGridView control. We are successful in creating the Extended Custom Control which inherits from DataGridView. But we don't know how we can achieve the cus
-
- Clicking on an ErrorProvider icon disables future pop ups?
by Mitsurugi
- 1 Replies
- Last post
by nobugz
- This seems to be either the intended behavior for the control or a bug. Is there a way to allow the pop up messages to continue showing up -Thx
-
- Is there an easy way to return the Number of records retrieved by a stored procedure?
by Chicken Leg Willy
- 2 Replies
- Last post
by Chicken Leg Willy
- I am creating some reports that involve, potentially, a large number of records. I am retrieving the records using a stored procedure. which works fine, as it is. I would like to give feedback to the user to let them know something is happening while the records are being retrieved and loaded into the report.
The only answer I have found so far, searching these forums, is to retrieve the data w
-
- "datagridviewcomboxcell value is not valid" when i want to bind object to datagridviewcell
by Aun
- 5 Replies
- Last post
by Aun
- Have anybody have idea to solve my problem!!
i have a class name clsProductUnit, have 2 properties, Unit and Price. (This Class represent Unit of Product)
Assume that "A product have 2 Units"
when user select product, i bind 2 objects of clsProductUnit to comboboxcell
(I bound by using object, not string)
PROBLEM OCCUR when user dropdown and select any Unit from combob
-
- Bindable User Control always causes HasChanges
by SiN!
- 6 Replies
- Last post
by Kiavash
- Hi,
I'm experimenting with a user control(Numeric Only Textbox) that is set bindable. I've created a public property "Text2" that is bindable and which in turn formats the data and passes it to "Text" for the user to view.
I got pretty far before realising that when it is bound to a database field, it will cause a "HasChanges" after EndEdit. Even if there is no
-
- How to get a Screen's name?
by jtackabury
- 6 Replies
- Last post
by jtackabury
- I see that System.Windows.Forms.Screen has a "devicename" property, but it looks like this "\\.\DEVICE1". I want to get a Screen's nice name like "Generic PnP Monitor on ATI Radeon 9600 Pro", just like what is displayed in the Windows display properties. Does anyone know of a way to do this Thanks, Jon
-
- Can I store a bitmap file in a globally accessable file, instead of a form's imagelist?
by Carver42
- 9 Replies
- Last post
by BKV
- Hello,
I am aware of the methods for storing images in an imagelist that resides on a form. But sometimes my tree node does not have the form's pointer.
I would like to store some of my bitmaps in a globally accessable singleton object.
Has anyone done this
Thanks for the help!
Bob
-
- Please help...
by nmahesh567
- 2 Replies
- Last post
by nmahesh567
- Hi,
Code Snippet
I have following dropdown to display color for each option. It works when it loads, but on click it gives error that color.FontColor is null.
Could someone tell me why on click, it is getting null value for color.FontColor
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; u
-
- mdi child child communication
by Bughira
- 4 Replies
- Last post
by Bughira
- I have made an mdi application with two child forms. I want to control the enabling and disabling of contents of second child on the basis of first child form conditions. Can anyone help me out
-
- How do i populate a datagridview cell with an unbound data after input information on a cell?
by ruivlessa
- 11 Replies
- Last post
by billb59
- Hello,
I want to populate, in datagridview control, a row cell with to fields (to simplify the example). I have a sql database with a table named Products.
The datagridview will show the code of product and in the next column for the same row the correspondent description. I want to insert manualy in each row the product code and after that using for instance the CellEndEdit event conect to