winforms

Accessing Browser Favorites (WinForms/C#)

Where and how can I access web browser Favorites and history? Is it the same place for all browsers? Thanks! ...

Winforms: Change Datagridview image on mouseover

I'm having trouble changing the image in a DataGridViewImageCell on mouseover. According to a few sources it should be as simple as changing the value of the cell to the desired image. However, nothing seems to happen when I try this. Here is the code: private void dgvThingProgramsOnPlace_CellMouseEnter(object sender, DataGridViewCellEv...

[C#] Add a expander (collapse/expand) to a Panel WinForm

I have a panel containing a datagridview and 3 buttons at the bottom of a Form, i wanna to add the possibility to expand and collapse this panel, is there a way to do it in a Windows.Forms application ? Someone have done something similar ? ...

how do I delay action on mouse enter rectangle c#

I would like to delay an action by several seconds after a mouse pointer has entered and remained for period of time in a winform graphics rectangle. What would be a way to do this? Thanks c#, .net 2.0, winform ...

How can I get notified in C# WinForms of external MS Access database updates?

I have a DataGridView that displays data from a MS Access database. I'm using a DataSet with a TableAdapter and a BindingSource to link the data to the DataGridView: tableAdapter = new AccountsTableAdapter(); dataTable = new Accounts.AccountsDataTable(); tableAdapter.Fill(dataTable); tableBindingSource ...

How to handle a custom event in a XtraGrid control

I am trying to solve a problem with a DevExpress XtraGrid in a winforms app. I have created a custom RepositoryItemButtonEdit control and have one unbound column in a XtraGrid that uses it. This control is a custom search field which throws an event when it has completed a search. What I am trying to do is add an event handler to the ce...

Is there a way to see a selected part of a web page's source using c#

I've created a webbrowser in C# and I want to be able to select part of the web page and have the source appear in a text box. So far all I've managed to do is get the whole page's source using: private void btnSource_Click(object sender, EventArgs e) { string PageSource; mshtml.HTMLDocument objHtmlDoc =...

VB.NET OpenFileDialog Latency on Win7

I have a winform, VBExpress 2008 with a single button and this code behind it to illustrate the problem: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click OpenFileDialog1.ShowDialog() MsgBox(OpenFileDialog1.FileName) End Sub When I select a file (in my case small PDF's) I am g...

C# - Possible to safely have an owned form in a separate thread?

I am attempting to write a specialized onscreen keyboard (OSK) for an application I'm writing in C#. To facilitate this, I've created a form which has several buttons on it representing keys, and clicking them calls SendKeys and sends out the appropriate keys. This form is owned by the main window that is shown when the application firs...

c# AcceptButton and validation

Hi I have a form which contains of several textboxes and two buttons Cancel and Ok. These buttons are assigned to accept and cancel buttons properties in form. The problem is that I have to validate texts entered in all textboxes. I want to do that if user click Ok button(which is acceptButton). So I wrote a function which is reponsibl...

Windows app to get XML data from a website containing XML data

I am trying to come up with a windows form application (or WPF) developed in C#.The requirement for my app is to get user search related xml node data from a website containing xml. The application would connect to a website containing xml and grab relevant xml nodes from the website. I would then display the xml node data on my windows ...

What are best practices for database setup from a winform client

I have written a winform application that connects to a database on our corporate network. I created the database as I was writing the application. Now it’s time to document the schema and to provide a method of recreation in the event that it is lost for what ever reason. I have been considering that the client application should ask t...

C# make a list with image and label like Messenger

Hello, How can I build on C# a a list like on Messenger where contacts appear with an image and a text with the contact's name? What components should I use to build it? Using Winforms by the way. Thanks ...

ActiveX object is not receiving fired events

i, I`ve written a class A and implemented it in an Active X object (AXObj). Class A should also receive events fired from another object(O2). O2 is created inside A and I use EasyAdivse to connect the two objects, i.e. O2 is the event source. I know O2 is exists because I am able to directly call functions that O2 implements from with...

sharing data between forms

Consider two forms: form1 and form2 form1 calls form2: form2 frm = new form2() frm.show form2 shows a grid with data. When data is selected, it's put into a textbox. I need the return value from form2 to form1 when it's closed. How can this be done? ...

DataGridView Winform c#

hi, every time, i press btnAgregar, add "productos" to list. only the first time the gridview show the first record of the list after the list grows, but the datagridview don't refrash, showing only the first record. List<Entidades.Productos> ProductosVenta = new List<Productos>(); private void btnAgregar_Click(object sender, Even...

Externalizing the translation of a WinForms application?

I'm working on an application that will be deployed in a lot of different countries, which of course means different languages. The thing is that I would not translate it myself, nor the other developers. One of the user will translate it and he won't have access to Visual Studio. The question is, how to do that? Is there a tool availa...

Do not initialize visuals

Hi I want to use my software for windows service , so I need to run my software , it takes about 4-5 seconds to draw visual item like buttons or listbox , I do not need visual , because users do not see my software , is there any way to not initialize visual Items ? ...

c#: How do i add dropdown menu items at runtime

When creating a new project, i want this project to become available from a dropdown. The first project i create, works, and is placed as the menu item as well as a dropdown item, however when i try to add the next dropdown item it crashes and tells me "Object reference not set to an instance of an object." This line creates the excepti...

Change language for MessageBox button's text

I'd like to have text on buttons of MessageBox to be, say it, in russian, french, etc. - different language than it's set by default in Windows. Is there any way to do it without creating my custom MessageBoxes? ...