|
It uses an array in the background. If the number of items added are more than the number of items in the array, the array is copied, and reallocated to a larger array, usually 2x the size of the original.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Conversation With a Muslim
Judah Himango
|
|
|
|
|
how do i transfer files / folders from one server to client without ftp
|
|
|
|
|
Set the page heading to be of the required file type and stuff the file bytes into the request.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,Sometimes when you want to clean an infected file from a virus you cannot do this ,so you must delete the infected file.....please I want to know when this happen so I must delete the file
|
|
|
|
|
You're writing a virus checker in C#, or.... ???
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Are you going to the same class as AristotleYu?
Lots of clueless people wanting to write a virus scanner in C#...
mav
|
|
|
|
|
hi all
is there anyway in C# or using winAPI that can help me in arranging desktop icons on a small area in the middle of the desktop wallpaper or in more detail can i set the coordinates of each icon as i wish
thx all
|
|
|
|
|
When using the "SQLServer" mode in web.config in ASP.NET, the session objects' values will be stored into an SQL server as varbinary data types....
What i am interested to know if there is a way to deserialize the varbinary data type back into the same session object as before......
Thanks
|
|
|
|
|
I have a panel inside a form im drawing to becuase the drawing space needs to be bigger than the form and the user needs to be able to scroll round the image using the form scroll bars..
i have used
SetStyle(ControlStyles.DoubleBuffer, true);
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
to try and stop the flicker but it only works when the form itself is drawn to.
How do i get double buffering to work on the panel?
Thanks.
|
|
|
|
|
This problem has been plauging me for weeks.... then a minuite i post this i stubmle across the solution (more by luck than judgment) .. sods law, hey?
All sorted now thanks.
|
|
|
|
|
You care to post your solution? There are thousands of others with the same flicker problem.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Conversation With a Muslim
Judah Himango
|
|
|
|
|
Yeah sorry about that...
I hate it when I search for a problem and the OP says "sorted" and it just dies right then and there, to.
So here goes:
My Drawing function looked like this(Though it has been drasticly cut down to the bare minimum for readability):
<br />
private void DrawMyStuff()<br />
{<br />
System.Drawing.Graphics myGraphics;<br />
myGraphics = myPanel.CreateGraphics();<br />
<br />
MyGraphics.DrawImage(myBitmap, x*Size,y*Size);<br />
MyGraphics.Dispose();<br />
<br />
}<br />
My panels paint method looked like this
<br />
private void myPanel_Paint(object sender, System.Windows.Forms.PaintEventArgs e)<br />
{<br />
DrawMyStuff();<br />
}<br />
I have since changed it to look like this:
<br />
private void DrawMyStuff(Graphics g)<br />
{<br />
g.DrawImage(myBitmap, x, y);<br />
g.Dispose();<br />
}<br />
&
<br />
private void myPanel_Paint(object sender, System.Windows.Forms.PaintEventArgs e)<br />
{<br />
DrawMyStuff(e.Graphics);<br />
}<br />
I think my problem was re-assigning the graphics object every time and in a way bybassing the double buffering by recreating the drawing surface constantly.
Hope that helps some people...
|
|
|
|
|
Hello!
I've got a problem in Visual Studio 2005. I must create a derived class from TablePanelLayout, and also override or hide the herited member called "Columns" in the Designer, to add more functionalities like a minimum size..
The problem is that there is no property called "Columns" in the TablePanelLayout. Only a property called "ColumnStyles" but there still have a property in the Visual Studio Designer called "Columns". And like the property "Rows", it's opening a property editor for the columns/rows styles...
I'm supposing that there is an attribute or something special to describe these two "fake properties" bat i can't find it. I want to erase them, i don't want to have two properties called "Columns" in the designer...
Thanks for your help.
And i am sorry for my bad English lol I hope i was clear enough.
|
|
|
|
|
You can use -in your derived class-:
public override ICollection Columns = null;
|
|
|
|
|
It's ok... The property name in the designer was just remplaced ba the attribute
[DisplayName("Column")]
the original property is named "ColumnStyles" and it just have another name in the designer.
Thanks for your help!
|
|
|
|
|
Hi, how i can insert command in my context menu, so when i click on any file in windows and click context menu i see my command such clean, delete this item or scan it.
What i need exactly as what u see in winzip menu!
|
|
|
|
|
This may be done by invoking the platform methods,try this site[^].
|
|
|
|
|
can u provide more information about what u say, i dont understand!
|
|
|
|
|
If I call a javascript using ButtonGo.Attributes["onclick"] = "MoreInfo()"; in c# code, can i return a value from javascript to use it in c# code again ?
|
|
|
|
|
Is this an ASP.NET question ? It's almost always a bad idea to mess with the jscsript that ASP.NET generates.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
What exactly are you trying to do?
What are you trying to return?
How are you going to use it?
--
|
|
|
|
|
Hi,I write Antivirus program in c#.NET, and i have problem, i dont know when to decide when to CLEAN or DELETE virus when I found one, in another phase, when Antivirus go to DELETE choice.
|
|
|
|
|
try
{
}
catch(Exception ee)
{
}
|
|
|
|
|
hi all,
How to check value of a Text Box is a String or Float?
this.textBox4.Text
I want to check above value is a String Value or Float Value..
please help..
Thanks in advance.
|
|
|
|
|
In a short I can only tell about the "dirty" way..
bool isFloat = false;
float value = 0f;
try
{
value = float.Parse(this.textBox4.Text, System.Globalization.NumberStyles.Float);
isFloat = true;
}
catch
{
// isFloat is not set to true so it's not a float value.
}
By trying to parse the input text as float, you can determine wether the input is a valid float as string or not. If not, an exception will be thrown upon "float.Parse(string)" and isFloat will not be set to true.
Someone correct me, if I missed something on that example *cough*
Daniel Monzert
|
|
|
|