winforms

[C#] WinForms Buttons in relative positions when form resized

I've searched for two days trying to find a solution to this. My problem in which I need to solve is this: I have a WinForms Application written in C#. It's designed pretty much how I want it to be with two columns (SplitContainer - setup like Windows Explorer, sidebar, et al). The non-sidebar panel will be setup with an image of our co...

Gantt view or hierarchical grid

Hi, Is there any any free Gantt view grid control or hierarchical grid view available in winforms? I require a grid that looks like an MS project task list. But it should not contain a right side calendar view as in MS project. My requirement is just to maintain hierarchical data with multiple columns. Please suggest where can I get t...

How do I work with WIndows Forms in WPF?

How do I work with WIndows Forms in WPF? In my WPF program I created a Windows Form class. In this Form, I placed an OK button and I went into the properties of the button and set the DialogResult to OK. Now, I am calling this Dialog (Window Form) from the MainWindow.xaml.cs: DialogResult dres; dres = form.ShowDialog(); ...

WinForm And Looping

I have a WinForm set up and a process that loops until a button is pressed on the form. When I try to run my code, the form does not even display. I suspect this is because the code gets stuck in the loop and doesn't get far enough to display the WinForm. How can I get the form to display and the loop to run after that point? ...

Ensuring that all callbacks were completed before sending a new request through a DuplexChannel using WCF

I am experiencing some issues when using a Callback in a WCF project. First, the server invokes some function Foo on the client which then forwards the request to a Windows Forms GUI: GUI CLASS delegate void DoForward(); public void ForwardToGui() { if (this.cmdSomeButton.InvokeRequired) { DoForward d = new DoForward(Forwa...

How to Get a Specific Column Value from a DataTable?

I have a datatable. I need to fetch a certain column value based on the user input. For example, lets say the datatable has two columns CountryID and CountryName. I need to find CountryID in the datatable based on the user input country name. I could just open a connection with DB and run the query select countryID from Country where co...

Handwriting Controls similar to Journal

We are looking for a handwriting control with similar functionality as journal. We would use journal if I could find a way to embed it into a winform. We used Agilix Infinotes however it is buggy when you have 8+ pages of notes written up, not to mention very slow at converting to text. They have apparently stopped supporting infinote...

is there a Megaupload API out there?

I want to do my own manager... and want to know if there is something to develop it faster... thanks in advance. ...

Programmatically automating a web login

I am trying to create a C# Winforms application that will automatically log me into a site and download data. Specifically, I want to have my application automatically log into my online banking site, log me in, and download my transaction history. I can do this manually by logging in through a web browser and downloading it. I am trying...

Directions and Opinions on Creating Update System for the Application.

Hi people. I just try to figure out a good solution on designing the update process for a windows form application i created. I think of a button inside the app for manual checking of an update and checking when starting the app. Only I'm not familiar with technics. I though to have the update setup file in a FTP Server and checking the...

How can I save something without showing a SaveFileDialog()?

I made a program to take a screenshot of the screen. How can I save the image without prompting the user for imput? ...

Sliding & Fading controls on a C# form

Hey there, I'm trying to implement a way to slide&fade controls around (more than one at the same time possibly) elegantly. So in other words, say i had a picture in the top left corner, and a texbox in the bottom right corner, i'd like to be able to have them slide. not just snap. slide, to the opposite corners and replace eachothers po...

.Net: Which one has better performance: setting image property of one control in design time or in run time?

Which one has better performance? setting image property of one control in design-time or in run-time? ...

Is there any inbuilt support or native library in the .net for parsing html file ?

Why html agility pack is used to parse the information from the html file ? Is not there inbuilt or native library in the .net to parse the information from the html file ? If there then what is the problem with inbuilt support ? What the benefits of using html agility pack versus inbuilt support for parsing information from the html f...

display PDF file into WinForms

Hi, I am working on C#.Net windows application. Here i create report using Infragistics.Documents.Report and export to .pdf & .xps format. Here i want to bringthose 2 files(.pdf & .xps) into WinForms and display. How to bring saved .pdf & .xps file into win forms. Thanks, ...

"Dynamic" localized display of custom DateTimePicker format

I have a Winform application with 2 DateTimePicker's on it, initialized as follows: private void InitializeComponent() { ... this._StartDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; .... // Note: I use a custom format, because I don't want to display seconds this._StartTime.CustomFormat = System.Globalization.DateT...

Proper Form Application Design

I'm creating a WinForm application in C# and one of its functions is displaying text in text boxes. I'm coding the logic for querying a database in a separate class and am unable to access the text box element in the class I'm creating (I'm getting a "name" does not exist in the current context error). Do I put all of my form logic int...

WinForm Event "On Select Tab"?

Hey SO, I'm building a WinForm application in C# and would like to know how to trigger code when a certain tab on a tab menu is selected. Thanks! ...

LINQ 2 SQL Nested Table Insert Error makes NO SENSE

I have the below LINQ method that I use to create the empty EmploymentPLan. After that I simply UPDATE. For some reason this works perfectly for myself but for my users they are getting the following error --> The target table 'dbo.tblEmploymentPrevocServices' of the DML statement cannot have any enabled triggers if the statement cont...

How can you speed up the display of WinForms in C#?

How can you speed up the display of WinForms in C#? I am finding that forms are being painted quite slowly, even if the window is being 'reactivated' (ie. switched to) after having been already loaded. Other languages seem to be render forms a lot quicker. Is there a way to speed things up? Using C# in VS2005. ...