Hi, I am newbie here.
I have an existing application (C#/Win forms). I need to add functionality to the application such that is can launch another instance of its own and make some of the controls in the form disabled. It may be very easy to implement this using simple inheritance or may be some if else loop , but this application has...
Hai all,
Am using DevExpress LookupEdit in C#.NET project,also set both Display Member and Value member property of LookupEdit.How do I get selected value from DevExpress LookupEdit.
Thank you
...
I'm maintaining a hybrid application, containing both WinForms and WPF technologies. Ideally, the look-and-feel should be identical between the WPF controls and the WinForms controls.
Here's the difference: in WinForms, if you select a text box with a mnemonic key, the entire contents of the text box is automatically selected. This is g...
When a user click the .msi, i want
a folder called "Your Files", which comes with two small images by default, to be created in C:\Users\YourName\Documents. In short, MyDocuments.
What i did is put the following code in program.cs:
string myDocuments = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
string downloadAr...
I would like to have an array of treenode in such a way that if i add a custom node along with that the remaining Nodes declared in the array should be added as child nodes to that custom node added.
Initially i will have a treeview with a Header node if i righ click on that i will have contextmenu with an option addnew. when i click o...
Question:
How do I scrape what a transparent panel shows into a bitmap?
Background:
I need to make a form that sits on top of everything and blurs part of the screen but doesn't stop the user from interacting with it. Odd... I know.
I created a form and added a panel to it. I then set the set background color of the panel to red. Th...
Hi all,
How can i can the Selected index of the listview when i double click on selected item ?
Also i have created a event DragEnter for the listview but due to this the double click event
is not firing.
So is there any Idea regarding the same ?
thanks in advance.
Manish.
...
Hai all, Am using DevExpress LookupEdit in C#.NET project,also set both Display Member and Value member property of LookupEdit and items are not dispaying on LookupEdit list page ,but i can select items. After selecting one item the selected item dispayed on LookupEdit text. Please help
lkpReference.Properties.DataSource = _lab.selectL...
What is a clean way of handling in-grid edit (specifically: adding new rows) with a DataGridView bound to an in-memory collection?
Background: I have a tree structure; for the sake of simplicity, let's assume Directories and Files (my own classes). I use a TreeView to navigate the Directory structure, and populate a DataGridView with th...
I want to create personal folders during installation. I did the following steps:
Right click on your setup project ->
View -> File System
Right click on node “File system on
target machine” -> Add special folder
-> User’s personal data folder
Right click on node “User’s personal
data folder” -> Add -> Folder -> typ...
Hi Friends,
I am working on an Window application using VS 2005.
here i have a scenario where i have to create a Docked window that auto hide like our 'Solution Explorer' or 'Property Window' in VS.
I have not find that such control in VS. Please, sugges where i can find this docked control.
...
I am trying to host a windows forms control in C# inside an html page and then host that web page in IIS in order to be accessible by other client machines.
The problem is: the usercontrol uses some unmanaged code, which triggers a securitypermission exception when accessing using another machine.
I've managed to dumb down my code to a...
I want to write a custom control (a text editor) for Windows Forms, which should include the following functionality:
Gets the keyboard focus, when you click on it with the mouse
Sees all keyboard input (including cursor keys), when it has the focus,
Can run in a semi-trusted environment, with UIPermissionWindow.SafeTopLevelWindows (i...
if one part of one form of our app has many views - let's say depending on a radio button selection some where else on that form - then sometimes using a TabControl with some tabPages can be easy and helpful to show different views based on that selection.
so I still would like to have that "multiple views" functionality but I do not wan...
All forms work on my site except this one, when I submit this form I get the following error:
Server Error in '/**'
Application. Validation of viewstate
MAC failed. If this application is
hosted by a Web Farm or cluster,
ensure that configuration
specifies the same validationKey and
validation algorithm. AutoGenerate
c...
I have a method Modify() shown below
// Convert SortedList of objects
if (retval) //
{
// Release the database lock
Debug.Verbose(func, "Unloc");
The functionality which i want to achieve is if flag RuntimeUp true and m_reconnectInProgress false that means if(Runtim...
I have a DataGridView that is bound to a DataSet and I allow someone to remove a row from the table and I remove the row from the set. My code looks like this:
ds.Tables(0).Rows(dgCourseList.SelectedRows(0).Index).Delete()
My problem I found is if the grid gets sorted the index of the rows no longer corresponds to the indexes in the D...
Dear friends
I have got the new problem with opening and closing form in C#.
My problem is how to dispose the form after closing .
here is my code :
Program.cs:
static class Program
{
public static Timer timer;
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompati...
Hi!
My code on my ASPX page:
<form runat="server" action="productEditCat.aspx?mid=2&catID=<%=catID%>&action=update">
This is rendering as:
<form name="aspnetForm" method="post" action="productEditCat.aspx?mid=2&catID=<%=catID%>&action=update" onsubmit="javascript:return WebForm_OnSubmit();" id="aspnetForm">
It seems to ...
Hi,
This one has really got me stumped. I have certain forms that are being instantiated. When I instantiate a form i make it a child of the mdi form by
form1.MdiParent = this;
I have set the MDIWindowListITem property of my menustrip to a toolstripmenuitem
However this toolstripmenuitem does not show the mdi child form when it is in...