-
- Overriding UserControl.Text bugged? or just unfriendly?
by Alan M.
- 2 Replies
- Last post
by Alan M.
- I searched for this problem because it is common, and although I found people with the same problem I did not find the answer. A common need is to create a custom user control that has some Text associated with it. The user control already contains a property for "Text" but it is not visible by default in the designer. Also, if I want to create a control such as a Label or a Button with
-
- Use of application blocks?
by My Vizai
- 6 Replies
- Last post
by Bob zhu - MSFT
- Hi experts,
I heard about microsoft application blocks,I don't have clear idea on that. Is there any use of these blocks.
will they give any performance boost.
Thanks in advance..
-
- novice DataGridView questions
by cno81
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi,
I've recently moved over to .net/c#/visual studio 2k5 and am struggling to get to grips with the more complex windows forms.
I come from a background in Java and used tables extensively and enjoyed the flexibility and enforcement of the MVC architecture i.e. separation of data from the control.
If I have a collection of objects, for the sake of this example, Strings corresponding to f
-
- find controls by name
by dcampo
- 5 Replies
- Last post
by nobugz
- hi everyone. I have a application in my windows forms, I have created many controls (Panel, Labels). Now, my question. Is posiible search a unique control (Panel o Label) by the property Name. In the ASP with C# exist the method or function FindControl . For example: In Windows Forms, one of controls is (Label 1) In the class, search the control Label 1 by the property Name, the asign a value Text
-
- form flicker
by vaddadi
- 1 Replies
- Last post
by ThE_lOtUs
- hi
i have a user control which is derived from System.Windows.Forms.Button control.
The reason for creating this control is to provide rounded edges instead of sharp edges of normal windows button control
This control overrides paint event.
There are over 100 of these controls on the form. So when ever this form is painted, the paint method for each of the 100 controls will be called a
-
- Date.Subtract
by Balagangadharan
- 2 Replies
- Last post
by Ðãv? Â???????
- i have a date 29/12/2007
now i need to subtract 5 days from 29/12/2007
How to do this
PLease help me
Thanks in Advance
Regards
Balagangadharan.R
-
- GDI+ button image painting problem
by Obaid Riaz
- 6 Replies
- Last post
by Obaid Riaz
- Hi,
Actually, I have an application that
is using .Net Framework 1.1. I am doing custom painting of controls which is a
requirement due to the look of the controls. The problem that I am facing is the
painting of buttons. As the buttons have bitmaps applied to them which give them
the desired look, their repainting time is very
slow.
I dragged the windows calculator on
the f
-
- How Do I get destination URL for NewWindow Event in C# Web Browser
by Eli Bayeh
- 2 Replies
- Last post
by javier vila
- I have a client application in C#, .net 2.0, which uses the built in web browser control.
I have implemented the NewWindow event in order to find out when the user launches a new window via window.open() in HTML/JS code.
1) In my event handler methof, I would like to check the destination URL before deciding whether to cancel (e.cancel) the action or allow it to go on. But I have not bee
-
- Need suggestion
by Vimal@.Net
- 11 Replies
- Last post
by Vimal@.Net
- Hi,
Please help me to make the RichTextBox should alwaya fit with the content even after paste something inside the RichTextBox. I need a suggestion in C# windows application
-
- GDI+: Rotating Text.
by David S. Anderson
- 7 Replies
- Last post
by Ðãv? S. Â??????
- I have developed a simple user control. I need to rotate the text of it, but I don't know how. I am drawing the text as normal and I already have it in a vertical state. StringFormat format = new StringFormat(); format.FormatFlags = StringFormatFlags.DirectionVertical; graphics.DrawString(displayText, Font, brush, 2, y2 + 4, format); I need to to rotate 180 degrees clockwise. Thanks if you help.
-
- Insert new row in Datagridview
by Balagangadharan
- 2 Replies
- Last post
by Balagangadharan
- Hello All
I Have 2 DatagridView
first grid has 3 columnn and 2 rows
2nd grid has 3 columns and rows is generated based on the values given in grid1
in first grid i have 3 columns and 2 rows as
stylno styleref Noofrows
1 a 2
2 b 1
so my 2nd grid generates rows based on Noofrows in grid1
styleno size
1 39
-
- PrintPageEventArgs Supplies a Graphics Object with Random VisibleClipBounds
by K.Kong
- 5 Replies
- Last post
by K.Kong
- I am facing a problem where only a portion of the page I am trying to print shows up on the printer. I see that the same problem is reported by a number of people:
a. http://www.thescripts.com/forum/thread225516.html
b. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=38324&SiteID=1
c. http://www.dotnet247.com/247reference/msgs/24/121201.aspx
After spending some time, I find t
-
- Is it possible to create a switch-case statement with button-click events?
by m.s.l.f (Mauro Fra
- 13 Replies
- Last post
by nanoware
- Team:
I am using VC# 2005 Express Edition to create a windows form application.
It is simple, consists of 4 buttons to display any portion of size 640x480 inside a bitmap of any size.
Has 4 buttons : scroll-up, scroll-down, scroll-left and scroll-right, I would like to know if I can use a switch-case statement with the 4 button_clicks events.
Furthermore : if it¡¯s possible, h
-
- save textbox value to dataset
by Santhosh Pathipati
- 2 Replies
- Last post
by Yu Guo ¨C MSFT
- Sir:
Iam having one textbox in that textbox iam having one xml document with tags i want to save that textbox value to dataset what can i do
-
- Compare two datasets
by S10n
- 1 Replies
- Last post
by A_Kumar
- Hi, I have a program that is continuosly refreshing information from the database (checking for new rows), so I have a timer that fills a dataset every two seconds, and then it sets the datasource of my datagrid to the dataset, the problem is that the user has to select an item from the datagrid, but when the datagrid is refreshed, the item the user had selected is lost, and this happens every two
-
- Form not closing untill Callback has been called
by Philip L. N.
- 0 Replies
- Last post
by Philip L. N.
- Hi,
I was wondering if you guys had a suggestion/opinion on what is the best way to make sure,
that a form isn't closed untill a callback to that form has been made.
Example:
Lets say we have a form, with a button that starts a "lenghtyJob"-thread. When the job is done it calls a "JobCompleted"-method on the form.
Im thinking of just using a primitive boolean to
-
- masked text box
by airblaine
- 3 Replies
- Last post
by Rong-Chun Zhang - MSFT
- i am using visual C#.NET and cant find the masked text box item in my tool box. where is it and how do i get it to show up so i can use it
-
- Progress Bar
by R8VI
- 8 Replies
- Last post
by R8VI
- HI I am a beginner at C# and found the following code on this website but when i buld it the progress bar does not fill up could someone please help
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public
-
- flex grid problem about selection moving to the end of the list
by hanseh
- 0 Replies
- Last post
by hanseh
- hi, i am using a flex grid for displaying my information. I am using only one grid for several sets of information. For example rows 1 - 10 displays info1 rows 11 - 20 diplays info 2. All the info are loaded in the grid all at once and i am just hiding/limiting the rows that can be viewed.each click on the list field shows an information box.my problem is when i do a click and drag event and the m
-
- TextBox with no IBeam cursor...
by IamHuM
- 2 Replies
- Last post
by nobugz
- Hi...
In my application i am using some textboxes to accept user inputs. I dont want to display the IBeam cursor or any other type of cursor for my textbox when it is having focus. I dont want that IBeam cursor to be blinked when its having focus.
I just want the right click option enabled without cursor & after puting values with mouse right click paste or with mouse
-
- Open Form, Close last form
by FlyinBrian
- 8 Replies
- Last post
by RomanGuzi
- This is giving me a headache. I'm trying to be able to switch between two forms constantly. So I click a button, main form closes, next one opens. Then I click button on second form, second one closes and first one opens again. Each time they get open they must be new instances. So far for the second form's button I have Form1 form = new Form1(); form.Show(); this.Close(); Which works fine bet
-
- Custom control, custom DataGridViewColumn and Cell - horrible flicker.
by Patrick Sears
- 2 Replies
- Last post
by theblueeyz
- Well, the subject line about sums it all up. I have a custom control that I am hosting in a DataGridView. I have created a DataGridView column and cell type to match my control, using the article How to: Host Controls in Windows Forms DataGridView Cells for guidance. Let me give you a little more detail about the control. The control I am hosting is intended to hold a user-configurable number of b
-
- ScrollBar in UserControl on TabControl
by Grigory Bushuev
- 1 Replies
- Last post
by Grigory Bushuev
- After adding to form SplitContainer, i'm added to his panel TabControl and for each Tab of the TabControl my UserControl. I want to see ScrollBar when i'm resizing my form. I couldn't do it by set AutoScroll property to true and i don't know why:-), may be i need to set dependent properties
-
- Change RTL Property For form
by amoor_2600
- 1 Replies
- Last post
by Pr.wa'el
- i have Form contains button which change Form LeftToRight .If I display thif Form using ShowDialog(Me) Function , then Click Button which will change Form RightToLeft to Yes instead of No , Form Close Suddenly with no reasons , and even not throw any exceptions .But if i displayed it using Show(Me) no errors occure . May Any one has information about this problem send it me please
-
- Making event call onto original thread
by Instinctual
- 6 Replies
- Last post
by nobugz
- I have a program that gets information from a performance counter of a remote computer using WMI every X milliseconds. I created a class to wrap this procedure up (PerformanceReporter); when you call getPerformanceAsync() the program begins a thread that gets an update every X milliseconds, and after receiving that update it flags an event which is handled in the main Form. As of right now, i have