|
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
|
|
|
|
|
Zarrab wrote:
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.
}
There is a neat way to do this: the static method Double.TryParse . You can bring it back to a float (or integer) afterwards if you want.
|
|
|
|
|
Hi!
Does anyone have a clue what this exception message means?
The system I'm working on consists of one client and two servers, all on separate computers. The client communicates with Server A by means of .NET Remoting. And Server A in turn communicates with Server B also by .NET Remoting.
Now, my client application invokes a remote object on Server A. Then, Server A invokes a remote object on Server B. Server B shall then fetch some information from the database. The exception occurs when the Open() method on the Oracle Connection object is called on Server B.
I've checked the connectionstring and it is correct, and when I create a connection object in the client and query the database on Server B directly it returns data. So there the database in itself seem to alright. I've also ran the client and servers on my local computer with a successful result. But when I want to go the correct way from the client to Server B I get this weird message. By the way, it is an Oracle 9 database.
Any suggestions would be helpful, thank you
|
|
|
|
|
Found the solution. Take a look at: http://dotnetjunkies.com/WebLog/rtgurskevik/archive/2005/01/19/45958.aspx
|
|
|
|
|
hi all,
I am developing a C# Application.I want to read Network computer file.In here I can not use open File dialog.I want to hard code all the thing..
Can any body please tell me how to do it?
First I want to know how to access Network computer using C#.?
where can I hardcode Network computer Name and Password in C# Application?
regards,
pubudu.
|
|
|
|
|
I have designed a sample chat server application. then I converted into a windows service and test it on my machine. It was working properly without giving any errors. but when I install the service in a machine that has o be connect through the internet that server side application automatically closes within a minute or two. May I know the reason for that. it gives the error "Remote machine( server) refuse acccepting the connection". PLease help me. if you have a solution for this I will appreciate it also.
Dilan
|
|
|
|