-
- How to add User & Pass to ConnectionString in app.config?
by HSBF Lewe
- 14 Replies
- Last post
by HSBF Lewe
- Hi,
I excluded the sensitive data (username-password) from my ConnectionString , how can I add it from any C# class when needed
i.ex:
string username = textbox1.Text;
string password = textbox2.Text;
-
- Add events to Arrow
by Telmo Domingos
- 3 Replies
- Last post
by sirjis
- Hello! I need to draw an arrow between two cells in a grid. And I need to add some kind of data and events to the arrow. How can i do this Thanks
-
- DragDrop fires too early.
by David S. Anderson
- 3 Replies
- Last post
by BonnieB
- Here's my too events first off....
Code Snippet
private void DragDropTest(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.FileDrop)) { e.Effect = DragDropEffects.Copy; } }
Code Snippet
private void DragEnterTest(object sender, DragEventArgs e) { if (!e.Data.GetDataPresent(DataFormats.FileDrop)) { return; } else {
-
- Help in windows forms
by armaSANEA
- 1 Replies
- Last post
by nobugz
- Hello,
I'm wondering how to display .CHM help files in windows forms: I need to display the help without setting the main form as the owner of the help. All Help 1.0 calls have the Control parameter. Is there any way to display a non-modal help All I could think about is calling Help.ShowHelp(null), but I don't know if this is a good practice.
Also, I do not know about the possibil
-
- C++/CLI Windows Form Designer bug in causing an event handler to disappear
by eldiener
- 9 Replies
- Last post
by GrkEngineer
- I am not sure whether the following scenario is a bug in the Windows Form Designer as it relates to C++/CLI or some failing in my own implementation, but I hope someone can look at this before I submit it as a bug. The scenario is: I create a CLR class library project. I add a component class, let's call it CmpA. I add two virtual events to the component class, both of type System::EventHandler ^,
-
- msjro.dll
by Basani
- 1 Replies
- Last post
by Rong-Chun Zhang - MSFT
- I am using Microsoft and Jet Replication Objects 2.6 Library for compacting and repairing some Access databases. I added a reference to this in my WinForm application.
When I built the setup project, it gave me the following warning:
WARNING: 'msjro.dll' should be excluded because its source file 'C:\Program Files\Common Files\System\ado\msjro.dll' is under Windows System File Protec
-
- What does this statement actually means ?
by Navdeep
- 12 Replies
- Last post
by Oleh Svintsitskyy
- "you must never use any member of a Control on any thread other than the one that created it." Can anyone one explain this in detail with example what actually does it mean in multithreading and windows control.
-
- ClickOnce deployment and Dotfuscator
by DLG007
- 13 Replies
- Last post
by dianec
- Dear All,
I am using the VS.NET 2005 and I would like to use the clickonce deployment. I would like obfuscate the exe file before publishing the deployment package to web server.
I was trying the PreBuild and PostBuild events in the project property to obfuscate the executable file but the clickonce doesn't use obfuscated exe file at all.
Could anyone advise on how to obfuscate the exe fi
-
- Listbox Question
by Ljhopkins
- 4 Replies
- Last post
by Ljhopkins
- I have a list of partnumbers they have a pnid assoicated with them
example
PN# pnabcdefg
Pnid =125
I have a list box with list of PN# when the user clicks on a PN in the list box I need the pnid as that is how the rest of the tables are connected/Tied.
but when i fill the list box i can only put one field in unlike in asp.net combo box i have a text and value field
how can i get
-
- A more functional CheckedListBox?
by cervantes22
- 4 Replies
- Last post
by Jiaozi
- I have a requirement to create what is basically a checked list box. Unfortunately neither the CheckedListBox or a DataGridView do exactly what I need.
The reason for this is that I need the ability to enable/disable individual checkboxes in the list. This feature is not there at all on the CheckedListBox and I could not figure out a way to do it with the data grid view. When I say 'disable
-
- Issues with ListBox
by Jaekie
- 2 Replies
- Last post
by Yu Guo ¨C MSFT
- I am having some problems with displaying the value from a selected row in my ListBox
here is the code im using..
lstOrders.DataSource = eFunctions. OrderFunctions .OrderDataSet().Tables[0];
lstOrders.DisplayMember = "OrderID" ;
lstOrders.ValueMember = "OrderID" ;
the OrderDataSet method just returns a DataSet using the SqlHelper
-
- Rich textBox
by majid rafie
- 6 Replies
- Last post
by Matty4242
- Dear Sir/Madam;
We are developing a windows application by visual studio 2005. in one of the components we are using an extended rich text box. we want to pop up a form whenever the user selects a part of text in the location of selected text. We have faced two important issues:
1- how can we get notified if the user has selected the text there exists an event (selectionchange) but it does n
-
- Flicker problem when switching panels
by belochka
- 3 Replies
- Last post
by belochka
- Hi,
We depeloped Point-Of-Sale system (C# .NET 2.0) that, as many other POS systems, have different states and have to switch screens very frequently. For example, we show sale and order module, then right a way go to the payment screen, then to reports, then to login, then to customer selection, etc etc etc ... Now we finalizing the system before production and need to eliminate an extremely a
-
- Icon.Save throws an error
by erikkl2000
- 5 Replies
- Last post
by nobugz
- I am tring to save an icon from the from ( or just an icon in general ) using the Icon.Save method and i can not get this method to work correctly for me.
Can someone point out to me how to use the Icon.Save method
---------------Error--------
Problem saving icon
Error HRESULT E_FAIL has been returned from a call to a COM componet
-----------------------------
if ( this .
-
- How do I know when an item has been added or removed to the listview control?
by Paolo Ponzano
- 13 Replies
- Last post
by Damiaan
- Hello, I was trying to update the number of item present into a listview (in detail mode), but I was not able to find in the Listview an event that does what I need. I've item that are being added and removed and I wanted to show how many are still present. I've tried to use the event ControlAdded and ControlRemoved, also CacheVirtualItems. Do I need to extend the ListView control and add an event
-
- Dynamically Embed Resources
by stonicus
- 4 Replies
- Last post
by Eli Gazit
- I am making a Windows Forms Control that has a picturebox exposed as a public property. When this control is dragged onto a form and a picture is selected, I want to embed the picture selected in the picturebox into the form's assembly. How do I do this
-
- Radio Button getting checked when a tab is selected using the code
by Surkot
- 7 Replies
- Last post
by nobugz
- I have a simple scenario. I have a form which has a tab control. Tabcontrol has 2 tabs. Second tab has a radio button control. After running the win app, selecting the 2nd tab doesn't check the radio button. Now, I have placed a button on the form and has the following code in the button click event handler. private void button1_Click(object sender, EventArgs e) { tabControl1.SelectT
-
- Is it possible....?
by Brenton Garman
- 8 Replies
- Last post
by Brenton Garman
- Hi,
Is it possible to "bring to front" a Redline you draw on a form under the form_Paint I am using a Panel and a group box and this very much needed Redline does not stay on top of those controls but in back and therefore is invisible.
Am i just doomed to having to remove the panel and groupbox and redesign the forms face or is there code out there that will address this probl
-
- Spell check in c# using Word spell checkeer
by Avi888
- 0 Replies
- Last post
by Avi888
- Hi
I have two qustions concerning Word spell check in c#.
1) I wanted to know if there's a way to use Word spell cheker in a certain way.
I want to use the context menu of the spell check i.e when the user will right click on a word, he will get the context menu with the suggestions.
I looked around and found this article:
http://www.codeproject.com/csharp/spellcheckdemo.asp
But
-
- Displaying images
by Phiban
- 5 Replies
- Last post
by TilakGopi
- Hey guys, Another quick question, Is it possible to display an image in a MessageBox also I've been trying to display a image and text in a listbox to no avail. Is there any code snippets that you know of Kind Regards
-
- Using Graphics
by stece
- 14 Replies
- Last post
by JohnWein
- Reading MSDN I found a code like this: System.Drawing.Pen myPen;
myPen = new System.Drawing.Pen(System.Drawing.Color.Red);
System.Drawing.Graphics formGraphics = this.CreateGraphics();
formGraphics.DrawLine(myPen, 0, 0, 200, 200);
myPen.Dispose();
formGraphics.Dispose();
I copied it to a WindwsApplication project like this: using System; using System.Collections.Generic;
using
-
- how to verify empty datagrid?
by kartiki-s
- 6 Replies
- Last post
by kartiki-s
- i have made a temporary table which displayed in datagrid.now i want that if user doesn't enter any record in datagrid,then he can't go for save .he should receive msg on clicking the save button,that datagrid is empty.
-
- How Can I Save,UpDate,Delete in DataGrid
by Mohamed Assaf
- 1 Replies
- Last post
by Attentater
- Hi Am Looking For How Can I Save,UpDate,Delete in DataGrid
private void frmInstrument_Load( object sender, EventArgs e)
{
if ( this .datc.fnGetDataAccessConnectiontblInstrument())
{
this .DGrid.DataSource = this .datc.dSet.Tables[ "tblInstrument" ];
}
else
{
MessageBox .Show( " Connection Faild Please Check Your Sql Server Connection Or C
-
- Crash in application when checkbox items are removed rapidly from a ListView
by lukejessee
- 5 Replies
- Last post
by lukejessee
- I've got a C# test application, that replicates a problem I saw in a full scale application, causing a crash when ListView items are removed by checking on check boxes, and the action is performed too quickly. My code is posted below. The form is just a form with a ListView that has check boxes. The code for the forum is also below. To replicate the problem: 1. Load the program and see that the li
-
- Minor System.Drawing.Graphics.DrawRectangle bug
by Cybrosys
- 1 Replies
- Last post
by nobugz
- I was just playing around with the graphics class when i noticed that the DrawRectangle has a minor bug in it that FillRectangle doesn't. The same goes for the Rectangle class. When creating a Rectangle you supply it with x, y, width and height. In any zero-based indexing class one would assume that the Rectangle Right or Bottom in this case would be x+width-1 and y+height-1. Unfortunately someone