-
- Is there a way to export a datagrid to an Excel or html format file?
by HappyTomato
- 6 Replies
- Last post
by TallMike
- Hi all.. thanks for taking the time to help in advance!! :) I've written a win application that has a datagrid which displays certain contents from a database, is there a way to allow the user to export the contents of that datagrid to maybe an excel file or html file so they can print it out themselves I've done a lot of googling and most i could find were for web applications and not winform..
-
- Toggle ToolStripSplitButton
by ron2464
- 3 Replies
- Last post
by Dav? S. A???????
- Hi,
How can I create a ToolStripSplitButton that I can toggle (similar
behaviour to the ToolStripButton)
Sample or hint would be much appreciated.
Regards,
Ron2464.
-
- capture text from textbox
by IMBack
- 7 Replies
- Last post
by IMBack
- HI ..
I have some text in a textbox. and I want to allow a user to select some text and convert it to BOLD by clicking a button.
Is there away to capture what user selected once the user clicked a button.
Thank you,
-
- DataGridView Bug or my mistake
by paha
- 2 Replies
- Last post
by paha
- Hi, i came across some ugly bug with DataGridView and PictureBox (for instance) when bound to the same filtered sorted table. May be i'm missing something, please help to understand let's say i created BindingSource bs = new BindingSource(); BindingSource.DataSource = myTable; my table has the following structure ID int (Primary Key) NAME varchar ACTIVE short PICTURE blob with only one row e.g Nam
-
- Getting a TableLayoutPanel to Scroll in "real-time", not delayed after scroll thumb de-clicked
by SpockMonster
- 8 Replies
- Last post
by SpockMonster
- I've created an application that puts several rows of controls inside a TableLayoutPanel. I set AutoScroll to true. I notice that when I scroll, it does not scroll the contents until after I let go of the scroll thumb. How can I make it scroll in "real time"
For example, a DataGridView control scrolls the contents while moving the scroll thumb up or down.
How can I make a T
-
- How to enable/disable the close button('X') in window form ?
by ye thiha
- 5 Replies
- Last post
by John Spadafora
- Hi All,
I would like to disable/enable the close button('X') on the window form.
Does someone know how to do
Thanks,
walker
-
- Controlling the painting of propertygrid cells?
by TanTS
- 0 Replies
- Last post
by TanTS
- Hi all, I need the property grid to display "(Empty)" string when there is actually no value entered by the user for my application. However, when the grid item value box is clicked on, the "(Empty)" string text needs to be cleared and the caret should be at the start of the line. Ideally, the "(Empty)" text should be italic and gray in color whereas the actual value
-
- Customized Setup [to add our/custom dialog within setup]
by kaushalparik
- 14 Replies
- Last post
by Jamboi
- hi all, i am working with Desktop application, and trying to create a setup project. i finalized my application and now creating the setup for that application. what i need to do is, with in setup dialog boxes, i have to add my custom form which will ask for DB Details like DBServer name, User Name, Password, name of Database and SQL Server Selection etc., So, Besides my main application, i also
-
- Resizing with step
by BD_Elektrona
- 2 Replies
- Last post
by nobugz
- Hello! I have one form which height must be changed with step (for example 15 pixels) and i tried to do that with the following code:
Code Snippet
Public Class Form1
Private Const HEIGHT_STEP As Integer = 16
Protected Overrides Sub OnResize( ByVal e As System.EventArgs)
MyBase .OnResize(e)
Me .Height = Me .MinimumSize.Height
-
- Bound combo boxes
by nikky85
- 14 Replies
- Last post
by nikky85
- Hello there, I'm beginner programmer and I need some help about bound combo boxes. I develop win app that use 3 combo boxes bound to 3 columns of one database table (ex. first column contains States, second Districts and third Cities)I use three binding sources for the boxes each contains one column( I want to choose state from first combo then district with this state in second and city from this
-
- SQLDataSource Edit Problem
by dzoll
- 3 Replies
- Last post
by Caddre
- I have a GridView with a SQLDataSource. I want to use ASP.NET's built-in editing feature, so I have a CommandField in the SQLDataSouce with ShowEditButton="True" and the necessary DataKeyNames line in GridView. If I have a static SELECT statement, editing works fine, but if I dynamically change the SELECT statement during page load, edit doesn't work. When I click "Edit," the
-
- I am new, a derived textbox problem
by Antony Lai
- 2 Replies
- Last post
by nobugz
- Hi,
I am new to .net framework. I just want to test to make a textbox just accept numbers. Then I create a normal Windows Form application. Then change the Form1.Designer.cs. I add:
using System.Windows.Form;
at the begining.
Then add the follows just after the namespace statement within the braces:
class DigitTextBox : System.Windows.Forms.TextBox { protected overr
-
- Security exceptions running a .NET 2005 application from a mapped network drive
by ASGMikeG
- 24 Replies
- Last post
by ASGMikeG
- Hi,
Why is it that I'm able to successfully run a .NET 2005 exe from the local hard drive but when I copy the same EXE to the network it fails with a whole lot of security exceptions
Regards
Michael
-
- Combobox use in visual studio
by daroud
- 4 Replies
- Last post
by daroud
- I have 2 forms: "Family" & "SubFamily", in the "Family" form i want to use a combobox to select the "SubFamilyName" and i don't know how.
I add another bindingsource for "SubFamily" but it doesn't display the "SubFamilyName" and that's what i want to display
-
- Visual Inheritance and events
by Sha_woop
- 11 Replies
- Last post
by Rong-Chun Zhang - MSFT
- I created a form with two buttons, one as modifier protected and the other as private.
When im creating a new inherited form, i cannot find all the events associated with the button, having the modifier as protected. How is it possible for me to have all the events associated with the button in the inherited form
-
- Precise positioning
by F&#225
- 4 Replies
- Last post
by Fábio
- Is it possible to position controls with a very high precision besides the default one . I mean, If I want to set
the Top property of a control in tenths or even hundredeths of a milimeter. Would it be possible
I know this is particularly usefull if I need to draw controls in a very large zoomout state.
Thanks in advance for any response.
-
- How to display simple numeric data from a local array variable using datagridview
by Paulp
- 3 Replies
- Last post
by Paulp
- Hi,
I am struggling to understand how to display some simple numeric data from a locally declared data array in VB.
One used to be able to use something like mydataflexgrid.text=myarray(n) in the old VB version - please advise of some simple code to demonstrate the equivalent function
I have looked at the unbound data example and notes, but just cant get my head around it!
-
- DataGridview cell default style
by kiheuer
- 8 Replies
- Last post
by kiheuer
- Hello,
Can I set the CellDefaultStyle for just certain cells on my datagridview If not is there a way to set individual cells default styles I loose the formatting of the cells when I use cellformatting event after the user sorts the datagridview.
Thanks,
Kim
-
- AcceptButton and CancelButton keep being cleared :(
by Andrue
- 2 Replies
- Last post
by Andrue
- I am designing a form and the AcceptButton and CancelButton properties keep being reset to (nothing) by the designer.
The form contains a couple of buttons and user control and that's it. Why is it doing this
-
- ClickOnce manifest SHA1 for DLL changes during recompile in Visual Studio
by jonas108
- 3 Replies
- Last post
by Yu Guo ¨C MSFT
- I have a visual studio 2008 beta 2 solution with several projects. I only want the changed DLL files to be downloaded to the client when we release a new ClickOnce package.
From reading previous posts I have understood that the .manifest file contains SHA-1 hash code computed on the DLL files. ClickOnce checks this hash code and only downloads if it the hash code has changed. The problem we
-
- Visual Studio C# 2005; Windows Form; Serial Port; Writeline() problems; worked and now doesn't; please help
by hell_a_wired
- 11 Replies
- Last post
by hell_a_wired
- I'm trying to make a windows form for a device that I often connect to using hyperterminal COM1, 9600 baud, parity none, 8 data bits and one stop bit. My problem is driving me insane cause I have no idea what it can be (I'm a newbie to visual studio). The code below was already working and now it doesn't would there be a reason for this Also if I set a break point at the beginning of the code so t
-
- Time slider Control
by Deepa Hoysala
- 2 Replies
- Last post
by Deepa Hoysala
- Hello All,
I am searching for a time slider control in which a range of values can be selected using 2 thumbs (same as the one used in google earth to view timeline)
Anyone who can help me in finding/creating such control or if it can be used as a third party control in my project (using c#.net 2.0)
Thanks in adv,
Deepa
-
- Visual Studio enhancement request for publishing ClickOnce
by Sentient
- 2 Replies
- Last post
by Sentient
- It would be really nice that Visual studio 2005 (or the next release) will show any progress indication when publishing files. (Or is there a more verbose setting )
I'm looking for hours at the message
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
Building XXX...
Connecting to 'ftp://XXX.com/_downloads/'...
Publishing files...
But I reall
-
- Datagridview and Insert sql command
by TommyGL
- 4 Replies
- Last post
by TommyGL
- Hi, I need help here...
I have datagridview as follow:
ID || 100 || 200 || 300 || XXX || YYY || ABC || 1 || 4 || 3 || A || B || DEF || 3 || 4 || 5 || F || G ||
How to read the datagrid and then insert into database to 2 tables and the result in database will be:
table1: ID || weight descr || kgm || ABC || 100 || 1 || ABC || 200 || 4 || ABC
-
- How can simulate button clicking in multiple threads environment£¿
by gzcjun
- 8 Replies
- Last post
by gzcjun
- I'm trying to simulating a button containing in a form.By reading some reference articles,I'd seen that most of them suggested to use webbrowser control,and then acquire htmldocument2 dispatch to get IHTMLInputButtonElement interface.But I'm now doing real time system,it demanded to get infos as soon as possibly,so I must use multiple threads to solve it.From some articles,I heard that webbrowser