|
hi all
i made double buffering in a form with
this.DoubleBuffering = true;
but this is not working in the tab so i wanna to know how to make double buffering by using Bitmap to enhance performance by drawing in memory as bitmap and then draw my background in the bitmap and draw bitmap again to the screen
can any one tell me how to begin search how to use this technique
thanx
Generator
|
|
|
|
|
I think SetStyles is the method you call, turn on double buffering and all drawing in WMPAINT.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi,
i tried this but the tabPage doesnot contain method setStyle
iam making a method now to use BufferedGraphics,
BufferedContext,BufferedManager
to draw to buffer then draw to TabPage
but iam still trying this and also if there is any method easier
thanx
Generator
|
|
|
|
|
public void tab_Paint(object sender, PaintEventArgs e)
{
TabPage tab = (TabPage)sender;
BufferedGraphicsContext context;
BufferedGraphics buffer;
// context = BufferedGraphicsManager.Current;
/// Dedicated context
/// used when highly animated graphics
context = new BufferedGraphicsContext();
Graphics grfx = tab.CreateGraphics();
buffer =
context.Allocate(grfx, tab.ClientRectangle);
drawSurfaceToBuffer(buffer.Graphics);
buffer.Render(grfx);
buffer.Dispose();
grfx.Dispose();
}
public void drawSurfaceToBuffer(Graphics bufferGrfx)
{
/// some processing that used the buffer grfxs
}
this code i understand it from MSDN and write it to reduce Graphics Flicker but it does not make any thing at all also it make my background of tabpage black and the original is white
is there any suggestions please
Generator
|
|
|
|
|
Hi friends.
I want to make something like a blog which people can see the posts and send a comment...
others can also see comments ...each post of the blog should have a different commenting page.
I know how to write the code for posting ... but I dont have any idea about commenting.
I want to write the code for posting with datagrid ...
but how to write the code for comment ? please tell me and give me idea.
each post is shown in a row of a daragrid,one aftar each other.
but where should I put the commenting link ? in the datagrid ??
I want to have the commenting link under each post and by clicking the link,people
redirect to another page for sending the comment to that post.
how should I do it?
thank you so much
|
|
|
|
|
There are many pieces of open source blog software. Why not look at the way they work?
|
|
|
|
|
tell me one of the open sources please...
I want to try it my self but if you know any open source which I can understand it,plz tell me
thanks alot.
|
|
|
|
|
sanaziuse wrote: tell me one of the open sources please...
Subtext is the name of one open souce blog software.
|
|
|
|
|
yes thank you but ay other ideas to write it myself?
please read my first questio and help me ...
bye friends
|
|
|
|
|
sanaziuse wrote: but ay other ideas to write it myself?
That would take too long in a forum post. That is why I suggested that you read the source code in an open source project.
sanaziuse wrote: please read my first questio and help me ...
I did as best as can be done in a forum post. The quantity of information that would need to be imparted to you is too much for a forum. Please download the code for blog software and read it.
|
|
|
|
|
You're asking far too much here. If you really have no idea how to start, then give up ( for now ) and learn through a simpler project. Buy a book and work through it.
You're essentially asking us to write it. Get to a point of being able to try, and ask specific questions, and we'll be glad to help.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am using VS.Net 2005
the DataGridView i use it has a ComboBox column
(Disply Member is Product Name but Value Member is Product ID)
i have a nother column for BarCode i want when i insert the BarCode Number in this column the value member of the combobox chenge and disply the product name of this value
this is the code i wrote but it doesn't work
private void GV_OrderDetails_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
try
{
if (GV_OrderDetails.CurrentCell.ColumnIndex == 6)
{
string BarCodeText = GV_OrderDetails.CurrentCell.Value.ToString();
if (BarCodeText.Length > 4)
{
DV_Pro.RowFilter = "Pro_ID='" + BarCodeText.Substring(0, 4) + "'";
GV_OrderDetails[2, GV_OrderDetails.CurrentRow.Index].Value = BarCodeText.Substring(0, 4);
}
}
}
catch
{ }
}
MD_NADA
|
|
|
|
|
I'm writing an application that prints cassette and cd labels. One major problem I'm running into is that I'm getting varied results on the alignment when data is sent to the printer. Shouldn't I be allowed to draw a line 50 points from the left and it come out 50 points from the left? Right now it is very close but I still get about a 5 point difference between printers. Does anybody have something else that I should be looking at? I am wanting consistency among All printers!
may your code be error free
|
|
|
|
|
EnableAutoDragDrop=true; and DragDrop not work first time ! Please help me ! costelpislac@yahoo.com
Costel Pislac
|
|
|
|
|
How can I convert a value taken from a Xml file into a time value? Please help.
|
|
|
|
|
Take a look at the DateTime.TryParse and DateTime.TryParseExact methods.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I appreciate your reply to my letter and apologize to each team for
Code Project , but I want you to forgive the first time I participate in the Forum and ask you to answer my question as understand it
I did not mean to Select * from [TableName] Where TableNme.ColumnName OR (And) TableName.AnotherColumn
-- modified at 10:44 Saturday 28th April, 2007
|
|
|
|
|
There is no 'team' at code project, it's a world wide community.
mahmoud wafy24 wrote: ask you to answer my question as understand it
mahmoud wafy24 wrote: I did not mean to Select * from [TableName] Where TableNme.ColumnName OR (And) TableName.AnotherColumn
Let me translate this for you.
You asked something several times, I pointed out the only interpretation I could see that could make sense of what you seemed to be saying, now you're saying the following:"
'I didn't mean for you to answer the question that I asked ( badly ), so please answer the question that I have failed to ask'.
We have no idea what you're asking. Try explaining it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello!
I'm trying to use SslStream to connect to server trough SSL. I have take example from Microsoft, modify it for my needs, but I can't use this code.
IOException (Received an unexpected EOF or 0 bytes from the transport stream.) are thrown in function AuthenticateAsClient
See code below
<br />
string Certificate = @"D:\ca.cer ";<br />
<br />
<br />
X509Certificate cert = new X509Certificate(Certificate);<br />
X509CertificateCollection certc = new X509CertificateCollection();<br />
certc.Add(cert);<br />
<br />
<br />
TcpClient client = new TcpClient("dev.com", 443);<br />
SslStream ssl = new SslStream(client.GetStream());<br />
ssl.AuthenticateAsClient("dev.com", certc, SslProtocols.Ssl3, true); <br />
<br />
What is incorrect in this code and what is meaning this exception.
This is not AuthenticationException, then authentication success or not?
Thanks for answers!
|
|
|
|
|
You get that error when the file you are trying to unzip already exists on the file system. I think there is an overwrite option when you unzip the file.
Hope that helps.
Ben
|
|
|
|
|
I am getting so frustrated at people who delete their questions when they get an answer.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have seen some weird stuff where a file name or path gets truncated. So it ends up being possible that that file exists twice in the zip file. Once in the root and then once in a subfolder, but when unziped the folder structure is not recreated.
Hope that helps.
Ben
|
|
|
|
|
Wow that is strange. I wonder why he decided to delete his question?
Ben
|
|
|
|
|
The zipping process normally involves the use of a temporary file.
I'm unsure if the unzipping process uses temporary files in the same way.
Under XP, many temporary files are stored un the users temp folder in C:\Documents and Settings\User\Local Settings\ which can become full and cause strange things to happen.
This space can be reclaimed by performing a Disk Cleanup from:
Start-->All Programs-->Accessories-->System Tools-->Disk Cleanup
I don't know if this will have any affect? Maybe this will help?
Regards
Wayne Phipps
____________
Time is the greatest teacher... unfortunately, it kills all of its students
View my Blog
|
|
|
|
|
I concur.
How about changing the forums, so a message (original or reaction to it) can only be deleted/modified for as long as there are no replies to it ?
|
|
|
|