|
I have a question on setting clip regions in my custom user control. From the figure below, i have created a region in A, while B is my user control area. How do i set the clipping region so that nothing will be drawn in A? Also, in which event or function do it set it? Thanks alot.
-------------
| |
| ------- |
| | A | |
| | | |
| ------- |
| B |
-------------
Weiye, Chen
When pursuing your dreams, don't forget to enjoy your life...
|
|
|
|
|
Thanks for your reply. I tried out your code and manage to create a clipping region in B but A is gone. Is it possible to still see A while anything that is drawn in A and B will not be visible?
Weiye, Chen
When pursuing your dreams, don't forget to enjoy your life...
|
|
|
|
|
I am trying to help a friend...young guy who lives over in UK. He is starting to learn C# and I'm helping him. He has a little bit of experience in straight C, but even not too much there to be honest.
He is trying to learn C#, but from what I've worked with him so far he is really struggling more with the OO concept more than the language in general. For a book, he has "Beginning Visual C#" (a wrox book). However, from what he's told me...they don't back up enough for somebody totally unfamiliar with OO concepts.
What would be a good totally beginner C# book that goes into OO pretty well, and even better if they forget about forms for now and just do console program examples. Are there any books like that? All the books I have are a bit more advanced, and aren't suitable for him.
Can anyone give some suggestions?
There are only 10 types of people in this world....those that understand binary, and those that do not.
|
|
|
|
|
|
I just finished Tom Archer's Inside C#[^] and I thought it was a great read. It covered basic OO design concepts, and how they apply to the C# language. Great for beginners, and has enough substance for an intermediate-type guy like myself.
Definitely worth a look...
-Mike Zinni
"No sh*t it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
|
|
|
|
|
Hello there,
does anybody know how to find out the height
of a specific row in the DataGrid control?
I cant'use the PreferedRowHeight property
because the user could have changed the height
of some rows and I have to consider that.
Thanx a lot.
Brian
|
|
|
|
|
DataGridTextBoxColumn has a TextBox property. May be TextBox.Height will be usable.
Hi,
AW
|
|
|
|
|
Hi,
I have a collection of many objects (Collectionname : contracts; object : Contract).
I have also a listview I fill up like follows :
foreach(Contract contract in Contracts)
{
listview1.Items.Add(contract.number);
listview1.Items[listview1.Items.Count - 1].SubItems.Add(contract.name);
....
}
listview1.Focus();
In my collection I have a 7000 objects and in the listview I show only 15 lines.
Is there a way that I only fill 15 lines in the listview and when I scroll down or up I fill the following lines.
I think that it takes a lot of performance when filling up the whole listview.
Is there somebody who have idea's or knows some good articles?
Thanks,
x
|
|
|
|
|
you might notice a big speed increase in populating the list if you put listview1.BeginUpdate() before you start the loop, and a listview1.EndUpdate() after the loop..
still a newb.. cut me some slack :P
-dz
|
|
|
|
|
Hi folks,
I have a requirement to read data from a flat file and dump it into the database which is an oracle database. I know the best way to go doing about this is to use Microsoft DTS.
But what a pitty, my project uses only oracle and .NET. I wanted to know whether there is a bulk load utility available to load data from flat,csv and excel file to database.
i am not lookin at sql loader since this process should happen from App server and not from database server.
Anyone has any inputs or suggestions..
Cheers,
Venkatraman Kalyanam
Bangalore - India
"Being Excellent is not a skill, it is an attitude"
Reality is an illusion caused by caffeine deficiency(one Microsoft Research scholor)
|
|
|
|
|
|
Thanks kannan
I had a look at it, and my initial impression is it will be a over kill
for such a small functionality like which i have. Probably for a enterprise system it should be ok.
My only job is to read line by line and insert into a table.
i am looking at some BCP apis
thanks again
Cheers,
Venkatraman Kalyanam
Chennai - India
"Being Excellent is not a skill, it is an attitude"
Reality is an illusion caused by caffeine deficiency(one Microsoft Research scholor)
|
|
|
|
|
Do you really travel between cities in between your posts or do you have a split personality by the evening
- Kannan
|
|
|
|
|
Kannan Kalyanaraman wrote:
Do you really travel between cities in between your posts
Damn, you beat me to it. I was just about post the same question..
Never take a problem to your boss unless you have a solution. This signature was created by "Code Project Quoter".
|
|
|
|
|
I guess you will understand if you are getting calls from client every other half an hour..
just kidding, little busy
Cheers,
Venkatraman Kalyanam
Chennai - India
"Being Excellent is not a skill, it is an attitude"
Reality is an illusion caused by caffeine deficiency(one Microsoft Research scholor)
|
|
|
|
|
I try to use "\n" in C# - textBox1.Text=textBox1.Text+"\n", but it don't work.
Maybe some endl or endofline ?
How I can solve this problem ?
Alex
|
|
|
|
|
|
And make sure your textbox is multiline too!!
|
|
|
|
|
Or you could use Environment.NewLine
|
|
|
|
|
:-DThat works perfectly. Thanks.
Alex
|
|
|
|
|
Hi, Friends ! Does C# have class like CRecentFileList of C++, how can I do that know most recently used files ? thx!
|
|
|
|
|
|
1.0.3705.0 - .NET 1.0
1.0.3705.288 - .NET 1.0 SP2
??? - .NET 1.1
I want to know what's the CLR's version for .NET 1.1?
I am using System.Environment.Version.ToString() to retrieve version.
Never take a problem to your boss unless you have a solution. This signature was created by "Code Project Quoter".
|
|
|
|
|
Kant wrote:
??? - .NET 1.1
Is it 1.1.4322.0??
Never take a problem to your boss unless you have a solution. This signature was created by "Code Project Quoter".
|
|
|
|
|
Yes, you are right.
Now I was wondering is there a sep. ver. for compact framework, If so I couldn't find it in c:\winnt\microsoft.net ...
Cheers,
Kannan
|
|
|
|