Using Winforms, C#, .Net 3.5, and Microsoft ReportViewer 2008:
I have a 3 page report in ReportViewer that I want to send to PDF as different pages. I have the code below that will copy all 3 pages to PDF but is there a way of splitting up the pages or specifying which page to render into PDF? It knows there are 3 pages... so seems like...
I'm a C# developer taking my first steps in Windows Mobile development. I've installed Visual Studio 2008 SP1 and the Windows mobile 6 Pro and Standard SDK's. Now I am trying to create a simple winforms application.
The problem is that when I set the Target Platform to Windows Mobile Standard, I seem to be missing a lot of controls. For...
Good day. I'm developing a Windows application and working with Windows Forms; .Net 2.0.
I have an issue databinding a generic List of Car Rental Companies to a DataGridView when that list contains (one of its properties) anoother generic List of Car Makes. I also have a UserControl that I need to bind to this [inner] generic list ......
Hi all. I have created a C# DLL that has some forms in it. ( I needed it to be a DLL, not a Windows Application.)
How can I run it as a Windows App? Should I create another app and load it? How? What do I need to learn to do that?
please let me know if I should explain more about my question.
...
I have a form that is showing a MessageBox using MessageBox.Show, and trying to receive events from the Help button on the MessageBox so I can execute my own code. The Microsoft documentation shows how to do this; however, using what is suggested does not work. Here's a shortened version of my code:
Private Function MethodName() A...
Hi All.
I'm trying to understand databinding in Winforms apps and have developed a test app with odd behaviour. I have bound the Checked property of the Checkbox control to a single-row, single(bool)-column DataTable object. Checking the box updates the DataTable cell fine as you would expect, however I would also like to change the Che...
Just wondering if there's a known way of getting a Mono System.Windows.Forms application to go fullscreen on Ubuntu/Gnome.
Mono is 2.4.2.3
Ubuntu is 9.10
Doing it on Windows requires a pinvoke, clearly not going to work here.
This is what I get setting window border to none, window position to centre, and state to maximised:
Update...
I have datagridview on my winform. I am displaying records in the datagridview. Now after displaying the records on the datagridview, I want to remove the row from datagridview which has one or more empy cells that is no value in the cell for that row. So for that I am checking each cell for every row if there is any cell empty or null t...
Dear all,
How to add data to dictonary from xml file
scenerio:
I've declared a dictonary like
Dictonary<string,string> SampleDict=new Dictonary<string,string>();
and my xml file is like
<Data>
<Element ValOne="1" ValTwo="0" />
<Element ValOne="2" ValTwo="2" />
<Element ValOne="3" ValTwo="4" />
<Element ValOne="4" Val...
I have a problem on calling my private method on MouseWheel event. In fact my mouse wheel event gets fired properly when i only increment a variable or display something in Title bar etc. But when i want to call a private method, that method gets called only one time which is not the requirement i want to call that method depending on th...
I want to show 10 records per page in a datagridview on a window form and user must click next button to show next 10 records. Is it there some property in DataGridview or do i need to create a custom control.
What i need to do to achieve this.
...
C#: How do you manage filling form controls with Master data ?
I mean do you create for every base tables (which you have created in a Database so far) a class and then calling method classes from UI ? or what?
...
I have different instances of an [.NET 3.5] C# win forms application that run on different machines.
All instances use the same SQL 2005 db.
I need to send an alert and to refresh grids [contained in user controls] when another instance of the application changes smth in db.
Which is the best way ?
Thank you very much.
...
In a WinForms application I need to detect when the contents of a System.Windows.Forms.WebBrowser is double clicked which in turn opens custom winform dialog box.
I note that WebBrowserBase disables the Control.DoubleClick event but I've not worked out how to override this behaviour.
...
Look at the bottom component where GroupBox is Open Work Orders. What components is this?
...
Hi,
I have winforms application and it has reference to library MyLibrary.
MyLibrary has method:
string[] GiveMeNamesOfAirports()
{
string[] lines= File.ReadLines("airports.txt");
foreach(string line in lines)
...
}
And when I run my Winforms application:
I get error:
file couldn't be find.
I was trying other function:
string[]...
I couldn't find any close answers to this, so I'm consulting the experience of SO users:
Scenario:
I have two small C# winforms applications where one behaves as a server or host, the other as a client. They share data via SQL Server, in terms of configuration settings.
I am currently launching the client application (which only needs...
I have converted postcode boundary polygons to point data (point[] for each polygon) from GIS Shape Files.
I am wanting to show this in a c# windows forms application.
I have managed to show this using the System.Drawing (GDI+) DrawPolygon() method.
Graphics g = this.CreateGraphics();
Pen pen = new Pen(Color.Black);
Brush brush = new ...
I'm writing a custom TreeView from ScrollableControl. I decided to show tooltips when the mouse hovers over nodes with text too long to display.
I find that when tooltips are shown, the user is not able to click the node to select it because (I think) he's clicking the tooltip window, not my control.
Is there any easy solutions? As far...
Dim Comp = From C In db.Table1 _
Select C.Completed, C.Taken, C.Namne
Datagridview1.DataSource = Comp
Am using the Entity Framework and Columns Completed and Taken are of bit Datatype. When the query results are displayed in the datagridview, these bit columns are returned as of ColumnType Textbox - so i get a Datagridview textbox col...