473,466 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

<whine>Why is DotNet so difficult to work with?</whine>

Sorry for the whining, but I'm getty VERY frustrated trying to do some very
simple jobs with DotNet and finding out that they are just impossible or
involve a LOT of work.

- Print a RichTextBox - five pages of code and it MIGHT work
- Limit a RichTextBox to 4000 characters? Nope, but you can have one that
holds 18446744073709551616 characters.
- Create a non-box shaped custom control - Can't use transparency so you
better know the shape you need BEFORE you bother with the control. Ever try
to define the region for snowflake shaped controls? Remember - each on is
different!!!
- Maintain the look of a form - You're expected to buffer, re-parse and
recalculate ALL of your data every time the PAINT method is called. A form
can't remember what it looks like.

I had enough trouble with VB6. Finally ended up taking part time courses and
they close the course before I can finish it!

I'm not a newbie programmer... I could program 6809 assembler in my sleep at
16 years old, I've worked in dBase III, Clipper, QBasic, z-80 assembly...

Why does M$ feel the need to convolute everything so much, then make the
help files even worse?
Jul 21 '05 #1
5 1707
Grahammer <po********@127.0.0.1> wrote:
Sorry for the whining, but I'm getty VERY frustrated trying to do some very
simple jobs with DotNet and finding out that they are just impossible or
involve a LOT of work.

- Print a RichTextBox - five pages of code and it MIGHT work
I haven't tried printing personally, but I doubt it's really that bad.
- Limit a RichTextBox to 4000 characters? Nope, but you can have one that
holds 18446744073709551616 characters.
I believe you could handle the Validating event and cancel it if the
length is already 4000.
- Create a non-box shaped custom control - Can't use transparency so you
better know the shape you need BEFORE you bother with the control. Ever try
to define the region for snowflake shaped controls? Remember - each on is
different!!!
No, I haven't tried to define the region for a snowflake-shaped
control. Do you believe this is a common requirement that MS should be
concerned with? I'd rather they focused on conventional, consistent
user interfaces.
- Maintain the look of a form - You're expected to buffer, re-parse and
recalculate ALL of your data every time the PAINT method is called. A form
can't remember what it looks like.


That's standard GUI practice. Anything *should* be able to redraw
itself at any time.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #2
> - Create a non-box shaped custom control - Can't use transparency so you
better know the shape you need BEFORE you bother with the control. Ever try to define the region for snowflake shaped controls? Remember - each on is
different!!!


I,m sure I answered this one before. I expect since you are not going to
define a Region at runtime, that you are going to supply an Image. The steps
required to complete this task are outlined below.

Define a TransparentColor Property.
Store the Transparent Color in a Variable.

Define a GetRegion Method.
Create New Region (Rectangle of Image Size)
Process Image Pixels and any that match the TransparentColor variable
remove from the region.
Store the Region in a Region Variable.

At the OnImageChanged method resize your control to fit the image and run
the GetRegion and Invalidate Methods.

At the OnPaint method Set the Region of your control to the Region variable.

Seems pretty simple to me and not that much work.
Jul 21 '05 #3
Hey.

Just to add to Mick's post, try adding in the constructor
of an inherited control:
SetStyleControlStyles.SupportsTransparentBackColor , true)

This allows you to use transparent back colours.. Might
help..

Just a side note, I'd like to see you do all of the tasks
you mentioned in dBase III, Clipper, QBasic, z-80 assembly
I'm sure it would take far more code than in .net.

HTH

-----Original Message-----
Sorry for the whining, but I'm getty VERY frustrated trying to do some verysimple jobs with DotNet and finding out that they are just impossible orinvolve a LOT of work.

- Print a RichTextBox - five pages of code and it MIGHT work- Limit a RichTextBox to 4000 characters? Nope, but you can have one thatholds 18446744073709551616 characters.
- Create a non-box shaped custom control - Can't use transparency so youbetter know the shape you need BEFORE you bother with the control. Ever tryto define the region for snowflake shaped controls? Remember - each on isdifferent!!!
- Maintain the look of a form - You're expected to buffer, re-parse andrecalculate ALL of your data every time the PAINT method is called. A formcan't remember what it looks like.

I had enough trouble with VB6. Finally ended up taking part time courses andthey close the course before I can finish it!

I'm not a newbie programmer... I could program 6809 assembler in my sleep at16 years old, I've worked in dBase III, Clipper, QBasic, z-80 assembly...
Why does M$ feel the need to convolute everything so much, then make thehelp files even worse?
.

Jul 21 '05 #4
Grahammer wrote:
Sorry for the whining, but I'm getty VERY frustrated trying to do some very
simple jobs with DotNet and finding out that they are just impossible or
involve a LOT of work.

- Print a RichTextBox - five pages of code and it MIGHT work
- Limit a RichTextBox to 4000 characters? Nope, but you can have one that
holds 18446744073709551616 characters.
- Create a non-box shaped custom control - Can't use transparency so you
better know the shape you need BEFORE you bother with the control. Ever try
to define the region for snowflake shaped controls? Remember - each on is
different!!!
- Maintain the look of a form - You're expected to buffer, re-parse and
recalculate ALL of your data every time the PAINT method is called. A form
can't remember what it looks like.

I had enough trouble with VB6. Finally ended up taking part time courses and
they close the course before I can finish it!

I'm not a newbie programmer... I could program 6809 assembler in my sleep at
16 years old, I've worked in dBase III, Clipper, QBasic, z-80 assembly...

Why does M$ feel the need to convolute everything so much, then make the
help files even worse?


You're a stupid fuck.

Go back to playing with CD's and watching MTV in your mom's basement you
wanker.
Jul 21 '05 #5
If you need some help check out
www.TechnicalVideos.net
Hours of .Net and Sql Server videos for $20
Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: A.Translator | last post by:
On this page http://www.xs4all.nl/~hogen/MvK_nieuw/ I have a horizontal menu made up of an ul (bit scary, this, feel much more comfortable with a table there, but I keep reading I should use css...
19
by: benzwt | last post by:
I use the following function to hide a <div> named one. function hideObject() { if (ns4) { document.n1.visibility = "hide"; } else if (ie4) { document.all.style.visibility = "hidden"; }...
5
by: Grahammer | last post by:
Sorry for the whining, but I'm getty VERY frustrated trying to do some very simple jobs with DotNet and finding out that they are just impossible or involve a LOT of work. - Print a RichTextBox...
6
by: TheTamdino | last post by:
I have experienced this issue in both IE and in Firefox, but usually not the same page at the same time. I'll have text that begins and ends with the paragraph tag <p>. This tag is suppose to...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.