|
You have different sections for each group. If you dont have more data than can fit on a page, then it is possible. Otherwise the group may go to another page. You can make the next group display on a new page by selecting the "new page after" property in the section properties.
Aaron
|
|
|
|
|
Hi guys, I need to create a listbox control. The control needs to have a button with it, up and down, which will control the navigation of the items on the control. One more thing, I need to permanently hide the vertical scrollbar.
|
|
|
|
|
What are you trying to do? The scrollbar on the listbox acts like a navigation up and down. Why do you need to hide it and do something different?
You would have to inherit the class to do what you want to do.
Aaron
|
|
|
|
|
Hi aaron...
I actually need to create a user control with that feature... a class that will inherit a listbox and within the listbox i need to add 2 button controls which will serve as a navigational tool for the items...
i have already found out how to hide the scroll bar through ShowScrollBar api call...
what i need right now is how to be able to control the items through the buttons and to be able to place the buttons at the same place (top and bottom of list box) regardless of how many items are placed in the listbox.
thanks!
|
|
|
|
|
I have a user control that inherited from Panel. I want to remove the dotted boder that the panel paints. The base.OnPaint is not called so how exaclty do I remove the Panel border?
Thanks
|
|
|
|
|
The panels I use doesn't draw a dotted border. Are you sure that it's not just the designer that draws the border?
---
b { font-weight: normal; }
|
|
|
|
|
Does it show border while in the IDE or when running the application? If it is while in the IDE then dont worry about that the IDE draws that. If you are running the application then I would like to know the Panel you are inheriting from is it part of the Windows.Forms library or you own? As far as I know Panels do not ever have a dotted border unless you put it there.
Mitchell Geere
|
|
|
|
|
The border only shows up in design-time. I created a control that inhertied from the panel though I do not want the dotted border in design time.
|
|
|
|
|
Nm my dumbness just need to add a desingner and override onpaintadorments
|
|
|
|
|
I’m a software engineering student. And I’m now at the ending of the course period. In this situation I should present my thesis but I have some problems in choosing subject of my thesis. I like to work on my field and have an article on my field. I also like to have a practical, new, scientific and difficult problem to some extend. I love researching and during my course period, I have researches and projects on bellow subjects:
1- Objective Oriented.
2- RUP.
3- All different software architecture.
4- Web base architecture.
5- Web services.
6- RSS.
7- Software locking algorithm.
8- Multi threads application.
9- Encryption algorithms.
10- Compression algorithms.
11- Database designing.
12- DBMS architecture and comparison between all kinds of it.
13- Service oriented programming.
14- Ajax and new web based architecture.
15- Researching about server side web development tools Like Microsoft .Net and PHP and j2ee and so on.
16- Socket programming.
17- DNS querying.
18- FTP Management.
19- Computer Graphics.
20- Image storing formats.
21- …
I like to have a thesis subjects about above items or depending on them or relating them or something on their fields. But I also love new subject in software engineering or programming and if you have some these subject, make me really happy and thankful.
Please offer me some subjects or some sites which offer me some subjects with above specifications.
Thanks
Rastgar
|
|
|
|
|
You can get all the information on the above subject from www.google.com but, on a serious note why not cover a topic which in my opinion is far less done and that is on software project management, testing and getting the product to market within a given time and at a specific qaulity. This is something the software market has huge issues with and could use some brilliant thoughts on the topics to push for better qaulity in shorter periods. Just a thought
Mitchell Geere
-- modified at 19:36 Sunday 2nd April, 2006
|
|
|
|
|
i have an assigment to program an app to find the value of p and q where p and q is tow numbers that give me the value of N > N=P*q ,if i know the n the i will know the value of p and q , by genetic algorithms the number should be presented in binare 1 and 0 .
101011110101...1010111011
------------- -----------
P Q
if their is any body could help me pleas contact me in my email addrres osanaji@yahoo.com
thank you all
|
|
|
|
|
What is it that you need help with?
If you ask the question in the forum, expect the answers in the forum, not in your email.
---
b { font-weight: normal; }
|
|
|
|
|
i am so soory , i didnot mean that but i need your help with my problem i want to ask you if you hear about cellular automata CA and program it with GA programing ????
if you have any idea please help me :::::::
iwill expect the answers in the fourm >>
|
|
|
|
|
Hi
I have a database containing several Tables. In a winfoarm, when I want to fill the dataset using data adapter, one of them generates this error (on the Fill statement)...
The strange part is taht when I delete the oleDataAdapter control from the form and create a new one, and then generate dataset from that, this error won't raise...
But the next time I open the solution, again the error continues to raise, unless I recreate the adapter!!!
Could any one tell me what is wrong (while I have recreated the data Table in the database and that didn't help...)
My data Table has two unicode right-to-left Text filds and two Memo fields...
Thanks
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
hello all and thank you for your help so far
i would like to start a new project as apractice. it will be a messenger
all what i need to know is how to get started and what are the tools that i have to use
thank you for your concern
abdelhameed81
|
|
|
|
|
Open Visual Studio and click on the New proejct button.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi,
i'm writing here because i'm an strange problem.
Taken two points, i' ve to find the step of x of line that goes on two points; to do that i had wrote this function:
// P1(x1,y1) e P2(x2,y2)
double m, dy, dx, ypp, xpp, q;
/*********** F(x) *************/
dy = (double)y2 - (double)y1;
dx = (double)x2 - (double)x1;
m = dy / dx;
q = (double)(x2 * y1 - x1 * y2) / (double)(x2 - x1);
/*********************************************************/
// Point next P1
ypp = (double)(y1 + 1);
xpp = (ypp - q) / m;
return xpp - x1;
Now i have step of x and to go to P2 i do that:
Xstart = x1; Ystart = y1;
for (; Xstart < x2;)
{
Xstart += Passox; Ystart += 1;
---
Xstart is double but i need its integer value, so i use a cast in a temporary var.:
Xtmp = (int)Xstart;
but any Xtmp are incorrect.
Now i know that m-value is incorrect, because when i find m by scientific-calculator i had another value: by this value my function work correctly!
Can an scientific calculator do division better tahn C# on Burton processor??
Sorry for my english and thanx for your time,
Luca
|
|
|
|
|
From where do you get the Passox value?
Double calculations are usually correct to 14 decimals. How much incorrect is it?
When you return the value (xpp - x1), is it supposed to be an integer? (Cause it is.)
---
b { font-weight: normal; }
|
|
|
|
|
Passox is the value returned: xpp - x1 (Passox translated from italian is step of x).
The function, i use Passox in, receives Passox as double; in this fuction i cast Passox from double to int, but in a temp variable: so i don't change the double var Passox (i do:
Xtmp = (int)Passox ) and so it's no problem of course!
The error for example is this:
start to P1(262, 2), end to P2(772, 309);
my final value is Pend(772, 308.99999999999886) -> after int-cast become Pend(772, 308) but it must be Pend(772, 309)!
I calculated step of y (i had to work with it too) by my scientific calculator (step of x and step of y have the same equation but for step of y i have that example so i report it!); the value is:
m = 1.661237785<-- it's work ok! Pend(772, 309.00000001300782)-> after int-cast become
Pend(772, 309)
value by C# is:
m = 1.6612377850162867<-- more precision but don't work as you can see up! This m by C# > m by
scientific calculator but the y of Pend by C# is less...
I write about only last point of my line but i need precision in all points of line... it's possible? I thinked to do:
PrecisionLost = 309 (y i want) - 308.99999999999886 (y i have);
Passoy = Passoy + PrecisionLost; (or, as the same, Passox = Passox + PrecisionLost)
but if someone knows another solution, i prefer very much! i'm sorry for me but i need maximum precision..
Thanks a lot,
luca
|
|
|
|
|
Your problem is not the precision of the calculations, but the casting of the values.
As you see, the error of the final result is 0.00000001300782 when using the hand calculated value, but only 0.00000000000114 with the value calculated with C#, so the result is at least 10000 times better with the later one.
When you just cast the value to int, you will be rounding it down instead of rounding to the nearest value. Use Math.Round() before casting the value to an int, and you will get the correct value.
---
b { font-weight: normal; }
|
|
|
|
|
It's true, it's not precision error thank you! Mathematics doesn't like me!
I tryed to use Math.Round but C# get me this error:
Error 2 Cannot implicitly convert type 'double' to 'int'. An explicit conversion exists (are
you missing a cast?).
If i have to do a cast before using Round(), it's not a solution!
And if i'll can use it, i need to know how much the cost of code increase. Where i can read about?
thanks again,
Luca
|
|
|
|
|
luca_la wrote: If i have to do a cast before using Round(), it's not a solution!
No, you don't have to do that. The Round method takes a double value. It's after you have done the rounding that you have to do the casting. The method returns a double value, you have to cast that into an integer to store it into an integer variable.
luca_la wrote: And if i'll can use it, i need to know how much the cost of code increase.
The rounding is done using a single FPU instrution, so it's not expensive at all. It's comparable to casting a double to an integer, which also uses a single FPU instruction.
Consider this line of code:
y = Math.Round(x);
And look the disassembly of the generated code (with my comments):
00000051 fld qword ptr [ebp-44h] ; load from x<br />
00000054 frndint ; round<br />
00000056 fstp qword ptr [ebp-58h] ; store in temp<br />
00000059 fld qword ptr [ebp-58h] ; load from temp<br />
0000005c fstp qword ptr [ebp-4Ch] ; store in y
As you see, the rounding itself is just one instruction, and the rest is just getting the data in and out of the FPU stack and storing the result. If you use the method in an expression, the value doesn't even have to leave the FPU stack between operations.
---
b { font-weight: normal; }
|
|
|
|
|
Yeah round() works very well!! Now i'm happy!
Thank you very much for your time and you knowledge!
Luca
|
|
|
|