Hello. How can I change the selection color on a ListView? By default, when the user selects an item it shows a blue background. I want to change this to dark gray, or something...
Thanks for the help!
...
I would like to make my windows form app self updating when it starts. Where can I find good information for that?
I am using Visual Studio 2008 VB.NET.
I like the click once approach. With this application I have an access db as the backend datastore. When the application self updates how can I be sure the mdb file is not overwri...
I created a button and I need it to restart the form
I have no idea how to work on the visual basic what should i write
Private Sub Button2_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
End Sub
...
Do you guys know how to set a toolTip that doesn't go away as long as you're hovering on the control? I tried setting the "AutoPopDelay" to 999999, but the tooltip disappears after 15 seconds.
Or, do you know of another way to achieve the same effect?
...
I have a problem with a bound user control writing back to it's datasource on a NetCF forms application. The application is too complex to post code, so I made a toy version to show you.
I create a form, usercontrol with a combobox, a class (testBind) and another class (TestLookup).
I bind a property of the usercontrol ("value") to a ...
I have a number of linked resources (text files in this case) in a C# project I am working on. I know the resources are linked via relative path in the Resources file. Is there any way to get that relative path from within the C# code?
If there isn't, what I am trying to do is to pass that resources file to an external application as ...
I am trying to mimic the functionality of the address book in Outlook
So basically a user starts typing in some text in an edit control and a matching ListView Item is selected
private void txtSearchText_TextChanged(object sender, EventArgs e)
{
ListViewItem lvi =
this.listViewContacts.FindItemWithText(this.txtSearchT...
I have a windows form simply like this: 1) a button when clicked will perform an operation taking a long time to complete, 2) a label showing how much percentage of the progress is going on.
In the long operation I mentioned, I write the code to update the Text property of the label but it doesn't work!
Please help me to show the progr...
Hi,
I have configured log4net in my app successfully but one thing is a little bit annoying for me.
The log file is created (empty) after my app start even if no error occurs. I would like to log file be created only after some error.
Greetz!
...
Hi,
Will there normally only be one instance of MainForm?
I need to hold it as a static variable re this issue I have
...
Hi,
QUESTION: Re use of .NET Backgroundworker, is there not a way to let exceptions pass back normally to main thread?
BACKGROUND:
Currently in my WinForms application I have generic exception handle that goes along the lines of, if (a) a custom app exception then present to user, but don't exit program, and (b) if other exception t...
I have a collection that contains all the items that I want to keep track of. I want to display 3 different grids, and in each one I want to display a different filtered version of the items. Is there a way to bind to a filtered version of the main collection without having to maintain 3 separate collections to bind to?
...
so I'm trying to store values in an array of Lists in C# winForms. In the for loop in which I make the sql statment, everything works fine: the message box outputs a different medication name each time.
for (int i = 0; i < numberOfMeds; i++)
{
queryStr = "select * from biological where medication_name = '" + med_names[i] + "' and pati...
I want to setup a table that can:
Save the data on the user's machine
Reference & present the data in the GUI
Capable of adding rows dynamically during runtime
What's the best way to go about this?
DataGridView or TableLayoutPanel or...? I'm having trouble with SQL server CE, as I was going to connect it with the DataGridView, but ...
Hi,
I did my UI settings.Original language is English. After that I set Localizable property to True. Copied original resx file to frmMain.de-De.resx (for example). Translated all strings. Everything works.
But now I would like to change positions of controls. After that changes are visible only for original/primary Culture (En). When ...
Hello,
I am having trouble capturing Ctrl+PageUp keystroke in a ListView control in WinForms application.
I am using this code to capture keystrokes -
private void ListViewEx_KeyDown(object sender, KeyEventArgs e)
{
...
if(e.Control){
if((e.KeyCode ^ Keys.Left) == 0)
MessageBox.Show("Left"); //shows messagebox
else if((e.KeyCode...
Possible Duplicate:
VS2005 Winforms Designer Exception Screen and IE8
All of the sudden, visual studio displays designer errors as plain html text, for example:
<DIV id="div1" class="ErrorStyle" width="100%"><span style="font-weight: 600"><br>Object reference not set to an instance of an object. </span><br><a href=""
ins...
Hello guys grls,
I have a standard picture box control with an image on it. I want to add half-transparent layer. It will not hide an image, it will be some kind of filter.
How can I do it ?
...
I am storing items into a combo box which had been retrieved from the database in the following manner:
cmbCustomerName.DataSource = null;
cmbCustomerName.DataSource = result;
cmbCustomerName.ValueMember = "CustomerID";
cmbCustomerName.DisplayMember = "CustomerName";
cmbCustomerName.Text = null;
Its working, but often showing the inne...
I am wondering where to call the ShowDialog() in MVP pattern, Presenter is normally defined as:
public Presenter(IView view, IModel model)
{
this.View = view;
this.View.Presenter = this;
this.Model = model;
}
And I wanna show the View Modelly by calling ShowDialog(), then where should I call the ShowDialog()?
public void ...