As far as I know, the code in VB may be replaced with a similar code in C#. But, I doubt if playing with font size is a handy idea. Dunno about others, but I, personally, look cautious at web elements, who are living with their own life =) E.g. changing it's size or placement, so I need to wait till the "magic" would finish and then try continue to work.
It's just MHO .. and maybe in your case it's needed, but I decided to share my concerns :)
P.S. Here's what I've found in C#: C# Tutorial - Font Scaling
yes, i agree with you antenka. i've now changed it, so the user can scale the font to the desired size, then i just output the text using the current font size etc.. now i just have to figure out finding the textbox's current X,Y, then adding these values in a pdf which is using "mm" units.. :/ argh!.. stupid idiot proof program!
ps.. you wouldn't know which is better to use..
or another method to get the current X Y of the textbox?..
they both work, but i get odd results when the user moves the textbox a few times..
anyways, thanks for the reply.. :)
as MSDN says,
Control.Bounds Property: Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control.
Control.Location Property: Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.
If you're ok with a Location, you probably should use it. If you need something more than upper corner coords - use Bounds :)
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
Private Sub btn_addline_Click(ByVal ...
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...