1,381 Topics

Member Avatar for
Member Avatar for SubProf

Hi everyone, I have four forms. Form1 is the main form and needs to be kept open and visible at all times but cannot be clicked while the other forms are open. For example, the main form is open and after a certain amount of time the second form opens …

Member Avatar for SubProf
0
139
Member Avatar for Renukavani

can anybody tel me ? to do in datagridview at runtime.actualy that s textboxcolumn. whenerver click the cell it should show the background imag. is it possible in C# windows.if u any idea plz help me out.thnks

Member Avatar for LizR
0
999
Member Avatar for Djanvk

Ok so I have make a Windows form in Visual C++, and I know how to use this code to get the text from the text box to a string [CODE]text = txtBox->Text; [/CODE] That is in the Form1.h file, but I have to create some code in my .cpp …

Member Avatar for Lerner
0
96
Member Avatar for gp04lch

hi, i have two form Form1 and Form2 that are inherited from FormParent. in FormParent i have a protected variable Modified which will be set to true whenever anything has been modified. Form1 and Form2 are docked into tabpages. what i want to do is that when i close the …

Member Avatar for gp04lch
0
92
Member Avatar for gp04lch

hi guys, was tinkering around with the tab control and came up with a problem. for your information, i have relied heavily on the example shown here: [URL="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx"]http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx[/URL] basically what i'm doing is docking forms onto different tab pages. my problem is that after i override OnDrawItem, the xp stlye …

Member Avatar for gp04lch
0
148
Member Avatar for Member #359346

I have a standard Windows Forms Application project with an SQL database connected to it. It got some textboxes and stuff. But the tricky part for me is the checkboxes (bit values). It says (as far as I can see) in the properties that their checkstate should be Unchecked. And …

Member Avatar for LizR
0
103
Member Avatar for jie83

i already create two button at the runtime already but i don't know how to create the arrow pointing to the children.. n when i click at the children other button create again is just like a family tree..anyone one pls reply asap thax alot people out there=) [code=cplusplus] using …

Member Avatar for Ancient Dragon
0
173
Member Avatar for eddyhutchins

Hi again, I worked out my other problem. But now am having problems passing an array from one form to a textbox in another. I have taken items from a listbox and added them into an array. To pass the array into the following form I have used; [code] Form …

Member Avatar for LizR
0
125
Member Avatar for Poab9200

Hello all, I have a few questions and some problems. I've been doing some searching on the web and cannot find a source that can aid me with these issues. Anyways, I have several text box's that need to have the following properties: Numbers-Only Commas Ex. 1,000 instead of 1000 …

Member Avatar for LizR
0
130
Member Avatar for blackcorner

Hello this is it: I have a desktop app using WinForms and the user have an option in which he/she can enter a query to a database (TRANSACT-SQL, PLSQL). I need to validate that input, but the user would have to struggle with typos and remember exactly every database detail. …

Member Avatar for ssmagin
0
134
Member Avatar for vsmaddy

please someone help, i m having trouble in my project i have made a login form from which i have opened another form , now i want to close login form after opening child form pls help

Member Avatar for vsmaddy
0
126
Member Avatar for SubProf

Hello everyone, On my webbrowser when it displays webpages the text is larger than normal and the whole page doesn't fit into the webbrowser and requires scrollbars eg google homepage. This doesn't happen when I view the same page in Internet Explorer. Does anyone have any suggestions as to how …

Member Avatar for LizR
0
140
Member Avatar for degamer106

Hi, In on of the lecture notes that was given to me by my prof, I was told that setting the ResizeRedraw value to true would allow whatever I drew on the form to be, well, resized. However, it does not seem to work. Here is my code: [CODE]using System; …

Member Avatar for LizR
0
221
Member Avatar for matejkralik

I have got a question. I use DataGridView in my program. When I run the application, I can select more cells by clilcking and draging mouse. I don't want the datagridview to do this. What property of DataGridView is responsible for it? pls, give me some advice.

Member Avatar for LizR
0
65
Member Avatar for wallish

I'm relatively new to C#, having migrated over from C++, so I'm a little confused about the use of variables. I have a class called User located in the program's main namespace [code] // In User.cs namespace TestProgram { class User { public string name; public int id; public User() …

Member Avatar for LizR
0
140
Member Avatar for Poab9200

Hello, I'm having an issue trying to get the data from several TextBoxes in FormB to FormA. In FormB I use a string to gather the data from the TextBox like so: [CODE=csharp] private void asBtnOk_Click(object sender, EventArgs e) { string asRate = asBoxRate.Text; } [/CODE] Then I go to …

Member Avatar for Poab9200
0
128
Member Avatar for bufospro

Hi , I am new in C# programming and I am trying to implementate something like site in c#. On the top of my form1 I have four LinkLabels and when an user clicks one , he goes to another form but the initial form1 still exists. I am trying …

Member Avatar for LizR
0
131
Member Avatar for Duki

Hey everyone, I want to restrict cursor movement outside of a picture box when the user clicks a button. Here's what my code looks like so far: [code=c#] private void btnX_Click(object sender, EventArgs e) { if (remote == false) { remote = true; Cursor.Position = pctRemote.PointToScreen(gridCenter); //centers the cursor on …

Member Avatar for LizR
0
283
Member Avatar for nnobakht

Hey guys, I have two DataGridViews (which are not databound). The first one is dynamically populated when the application is started by reading a specified XML schema. The second one the user enters names of coloums and the coloumn number in which they are located in. I need a way …

0
87
Member Avatar for toadzky

I have a windows form box that is supposed to just display a message. Unfortunately, whenever the box pops up, it has all the text selected. I cannot figure out how to stop that. Any ideas?

Member Avatar for LizR
0
86
Member Avatar for Member #292362

Hello I want to draw every second a new Rectangle, just beside the other one. I've got a timer which tick's every second. In this method, I want to draw a Rectangle. But I've already have a function to draw a Rectangle. So I want just to call the function …

Member Avatar for selvaganapathy
0
120
Member Avatar for Elmo_loves_you

Hi I have a stored procedure that returns the unique ID for a particular Name/string passed in. On my windows form I have a ListBox control filled with a list of names (returned from another stored procedure) I want to be able to let the user click the list box …

Member Avatar for Elmo_loves_you
0
221
Member Avatar for Gaurav arora

Hi all, I m making a project on airlines reservation in C#. I have some problem. The problem is when i accept the values from the user like Origin City,Destination City,Date of travel and class of travel. After filling this information user clicks on the Available Flight button. When clicking …

Member Avatar for dickersonka
0
112
Member Avatar for Gaurav arora

Hi all, I m facing a problem regarding datagridview. I have taken a gridview with a custom column with checkBox only. Every row in datagrid contains a checkbox as its first column. Now i want to trap the values of that particular row which is checked by the user. Also …

Member Avatar for rapture
0
134
Member Avatar for Ahsen

three questions that i need to ask. 1) i developed connection between database and Forms of c#. entries are successful.i databse i have two columns, "Date/time" and "Cash". the format of date is like "1/11/2000". Suppose i have record of 1 year. what query should i use if i complete …

Member Avatar for Ahsen
0
163
Member Avatar for _tim

Hi All - Unfortunately I don't have code to paste for you, but I'm hoping perhaps someone will be able to narrow my focus a bit on this one... I developed a windows forms app that has a very strong data dependency. When deployed, it works as expected if the …

Member Avatar for dickersonka
0
89
Member Avatar for yuenli

Hi! I have a grid view where I would like to get the cursor position from it when user fired event key up. I try to use code as below but it failed because the X and Y position from cursor.position is always out of range. Does anyone know how …

Member Avatar for selvaganapathy
0
99
Member Avatar for csy

How would I change the TabPage's Color to for example Red. I don't want to change the entire TabPage's Color to red, but specifically the background of the Tab with the Name of this tabpage. Thank you.

Member Avatar for Ramy Mahrous
0
69
Member Avatar for masterjiraya

I made this code to make an object move by time here is the code for form1.cs: [code=csharp] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Project1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } // C# Code …

Member Avatar for masterjiraya
0
97
Member Avatar for FullBjarne

Hello! I have a problem with the size. I've made a function that saves the size, but each time I start the application does the size get larger then the last time. How do I fix that problem? Here are the code for the function: [code] using System; using System.Collections.Generic; …

Member Avatar for AmirBedair
0
107
Member Avatar for Gaurav arora

Hi all, i have added the form required in my project. it is showing there in solution explorer window. But i cant access that form through coding. can anyone tell me wt is the problem

Member Avatar for ChaseVoid
0
110
Member Avatar for Gaurav arora

HI all again here with some problem. I m making a project in which i made a form MDI container and on running the application login screen opens within the Main form(MDi). I want that until user logins he should not b able to access main form or its options. …

Member Avatar for Jx_Man
0
101
Member Avatar for viswa_007
Member Avatar for amitj
0
98
Member Avatar for mrjoli021

i am new to c#. I want to write a windows app that will display a txt file in a new window.

Member Avatar for camilojvarona
0
118
Member Avatar for mzd12111

hi guys i want to put a string in my program which shows the time of the Day and update itself . i mean it is put on the top of the screen and show the Very current time. but i can only put a time in a string and …

Member Avatar for selvaganapathy
0
92
Member Avatar for mps727

Is it possible to change an imagelist size at runtime? I want a user to be able to choose any arbitrary bitmap file and draw it tiled fashion onto a picturebox of variable size, but it seems imagelists have a fixed size. I can't seem to figure out how this …

0
88
Member Avatar for harcaype

I'm trying to update/refresh my data grid but it doesn't seem to update whenever there's a new entry. I've search the net about it and they were talking about databind(). I can't seem to have that in my datagrid. My intellisense only shows DataBindings not databind(). here's my code (when …

Member Avatar for harcaype
0
128
Member Avatar for VB noobster

hey people, does anybody know how to have a link on my ASP.net webpage so that when i click it, a WINDOWS FORM will appear.. OR in other words, anybody knows how to link Windows FORM IN web FORM?

0
66
Member Avatar for edek

Hi, I've created 'Windows Control Library' project in VS2005, created one control in this project which inherits from UserControl class like this: [CODE=CSHARP] class MyControl : UserControl { MyControl(){_myproperty = 0;} int _myproperty; int MyProperty { get { return _myproperty;} set { _myproperty = value} } } [/CODE] So, now, …

Member Avatar for Ken Sharpe
0
83
Member Avatar for senpark15

hi, I using datagridview to show Set of records. User can also edit the records. If user press key enter , edited columns Should be updated. I am using Datagridview key down event. It is working in non edit mode. It is not working edit mode. The cusor goes to …

0
60
Member Avatar for JerryShaw

I have an MDI application and I need the child form to know when it is docked in the MDI parent, or cascaded into its own form. Does anyone know if there an event or method of letting the child form determine this condition ? Thanks in advance

0
68
Member Avatar for madhu_raju76

Hi frds this is madhu..... I want to know one thing...how we can pass parameters directly at runtime in windows forms and connect that windows form to a dll file so that we can perform neccessary calculations at the dll file by taking the values given in the form.... please …

Member Avatar for Ramy Mahrous
0
56
Member Avatar for raphaelsolis

can someone also tell me the codes for add, delete and searching the datagridview? adding for example is from a textbox when add button is clicked then it automatically shown in the datagrid.. when delete button is clicked the record in the grid is deleted which on where the cursor …

Member Avatar for Dabuskol
0
126
Member Avatar for kethare

hi, I want to draw the line in starting point of the column where the mousepointer is. Example I have 5 columns in the datagridview and the mouse pointer is at 3 column means that column must indicate with a line at the begning of the columnindex 3.

Member Avatar for Dabuskol
0
83
Member Avatar for mariaczi_pl

Please... help... in file is complete project . please..help..i need this so fast.. i need managed to make windows forms.. before this project i made a small project and all was ok.. and now.. help

Member Avatar for Ancient Dragon
0
148
Member Avatar for Traicey

Guys Im alwayz having a syntax error which makes my form designer to dissappear and that scares the hell out of me coz Im writting practical test tomorrow, and what I wana know is what could be the problem, I will paste the details of the error maybe U will …

0
51
Member Avatar for ebabes

What if when a user press a button, the application will load another form but the previous form is automatically hidden in the screen, afterwhich when the current form is closed the previous form is automatically activated? How can I do this? I make use of ShowDialog() but the previous …

Member Avatar for Bilal Saeed
0
217
Member Avatar for sireesha.c

Hi, In my Datagridview contains itemno,itemdescription,quantity,price columns. this values can view in crystal report.in crystal report only 10 colums can able to view. so,in item descriptionin cell only 10 lines i have to enter .if it is more than that i want to display messagebox and chance is there for …

Member Avatar for Ramy Mahrous
0
152
Member Avatar for sireesha.c

Hi, In my Datagridview contains itemno,itemdescription,quantity,price columns. this values can view in crystal report.in crystal report only 10 colums can able to view. so,in item descriptionin cell only 10 lines i have to enter .if it is more than that i want to display messagebox and chance is there for …

0
86
Member Avatar for joeyan

Hi all, I am a newbie of .NET c# programming. I just take over a Data Recording System which use Visual Studio. NET 2002 (C#) to built a PC-based application, and use Ms Access 2000 as database. I need to enhance a existing Windows Form that add more fields for …

Member Avatar for Ramy Mahrous
0
84

The End.