|
Hi
There is a good article title Packet Capture and Analayzer[^] on how to capture packets using C#. Check that out...
You can use SetWindowText(...) Api function for setting up window's title.
|
|
|
|
|
I am writing ImageViewer application which is suppose to display high resolution images with zoomIn, ZoomOut. If I use Bicubic interpolation mode, I get high qulaity image covering most of details but speed is unaccepatable.
I looked at Netvue viewer(http://www.accusoft.com product). It displays blur image initially, smoothes it slowly and finally sharpen it, All phases are clearly visible. While my application applies scaling and hangs for a while(1.75-2Second) and displays image instanteniously.
Though i know Geometric transformations, I am novice to image processing and Siganl processing which most of articles talk about(Kernels, Gaussianl filter, box filter, mitchell filter etc...)
Any help on Progressive rendering and what filters would be useful would be appreciated.
Thanks
Regards,
MaulikCE
|
|
|
|
|
Display the image without using any interpolation - this should be fairly fast. Start a background thread rendering the image to an in memory bitmap in the intended target size using interpolation. When it completes, render this menory bitmap to the screen instead of the "non-interpolated" image.
|
|
|
|
|
It means image just changes twice, instantaneously.I would like to show image changing process.
Regards,
MaulikCE
|
|
|
|
|
I want to connect my computer to all workstations in our domain to get specifications of each machine. How can to connect to remote registry?
DoobiDoo
|
|
|
|
|
Hi all,
Im baffled by some code Ive written and need some help.
I have a simple class which holds a property:
<br />
public class Person<br />
{<br />
private string myName = string.Empty;<br />
<br />
public string MyName<br />
{<br />
get { return myName; }<br />
set { myName = value; }<br />
}<br />
<br />
public Person(string name)<br />
{<br />
myName = name;<br />
}<br />
<br />
}<br />
And I have another class, which is pretty self explanatry:
<br />
public class Depoll<br />
{<br />
public static void NewName(Person obj, string newName)<br />
{<br />
obj.MyName = newName;<br />
}<br />
}<br />
And finally, here are my tests:
<br />
[Test]<br />
public void TestChangeName()<br />
{<br />
Person me = new Person("Andy");<br />
Depoll.NewName(me, "Bill");<br />
Assert.AreEqual("Bill", me.MyName);<br />
}<br />
I dont understand why my test passes.
When I provide the Depoll.NewName function with my object, I assume that Im passing an instance. Therefore, any change to that object, will not affect the original, unless the Depoll.NewName returns it.
The Depoll.NewName function doesnt return the object once its been changed, therefore my original object should still have a name property of "Andy".
Can anyone help explain this?
Regards
Andy
|
|
|
|
|
andym.knight wrote: Can anyone help explain this?
Yes, you are passing a reference to your Person object to the static NewName method - not a copy of it, which means any changes to the Person within the method are reflected outside themethod.
|
|
|
|
|
Ahaa yes, thankyou.
So the question is, how do I make a copy of it.
Because Person 2ndPerson = 1stPerson; doesnt work either.
|
|
|
|
|
Andym.Knight wrote: Because Person 2ndPerson = 1stPerson; doesnt work either.
No, because once again you are just assigning a reference.
You may like to look at the IClonable interface and therefore the Clone method if you really do want a copy.
|
|
|
|
|
Or, make the Person type a struct instead of a class .
|
|
|
|
|
hi,
i declare one xmlnode path in my C#.net application.
i want the next node name.
ex.
<comm>val
<hi>kkk
i give path for <comm> for reading the value of <comm>
and i want to know the <comm> next node name(i.e. "hi").
how can i get that in c#.net
plz help me
Thanks
|
|
|
|
|
Did you try using the NextSibling[^] property? Once you have reference to the <code>XmlNode</code> representing comm, just do
XmlNode nextNode = node.NextSibling;
|
|
|
|
|
Ok so this:
OdbcCommand read = new OdbcCommand("SELECT id, species FROM species");
should somehow return a list of all rows for these feilds.
This should be
'1' 'somehting else' <-- as in id=1 species=something else
Anyway, then i execute the reader:
OdbcDataReader reader = read.ExecuteReader(); <-- (is this what im supossed to do?)
and then im stuck, reader.Read(); returns a true or false depending on weather or not there was a result (reading from left to right, top to bottom). Rather than 'true' 'true' 'false' i want '1' 'something else' null.
How do i do that?
|
|
|
|
|
Aahh, i was so close. When it reads its doesn't read from right to left top to bottom, at reads the WHOLE row, and goes top to bottom.
The result i get thats stored in reader, is an array, so i need to go
Console.WriteLine( reader[0].ToString() );
And so on. Well im happy AWAY!..
|
|
|
|
|
We can get the list of installed softwares in the local machine by reading the registry key "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall"
But can I get the installed software on a remote machince....?? Please help..
thanks in advance....
Regards
Ranjith Stephen
|
|
|
|
|
Im busy with a asp.net application in C# where i work with an Excel file with 5 sheets in it. I populate the first two sheets and then formulas provide sheets 3 - 5 with data. How would i manage to print only sheets 3 to 5 after i have populated the first two ?
Thanks in advance.
|
|
|
|
|
Hi all,
i have a linklabel on my form and the text is http://www.apache.org/ and i want to know how to make this a hyperlink of sort... when you click on this link it should go to the address
Thank you in advance.
Nico
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Have you tried to put the http://www.apache.org/ address in the PostBackURL?
Do your best to be the best
|
|
|
|
|
Not yet,
thanks, i'll give it a go...
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
put it in linkLabel1_LinkClicked
i think it better then others
I like this!
|
|
|
|
|
Will do thanks...
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
I want to know
how to connect barcode with program by c#
difficute?
I'm not clever in c# introduce me
and how to put barcode in database
if you have email
chat with me isis_preaw@hotmail.com
Preaw
|
|
|
|
|
Microsoft BarCode Control
I like this!
|
|
|
|
|
Hi,
Quite new to C# and Visual Studio, but here's my question..
I'm on a project that uses Windows Forms with a RichTextBox.
The text that is imported/typed in this box is copied to another RichTextBox, that eventually change this text to a Scrolling Text, from right to left on the screen. Searched the net for something like this, but I had no real luck finding it, except for the DougScrollingTextCtrl. Though this is not that user friendly in my opinion.
Is there anything I could think of to create something like this?
Thanks in advance.
|
|
|
|
|
Im not sure if this would be possile, but could you try using spaces?
Like this:
make a timer
-while(text doesn't go offscreen? <-- thats the bit im not sure about)
-text = " " + text;
then once it reaches t'other side, trim the first character for as long as it is " "
Then repeat, i don't have any code for this, its just an idea.
|
|
|
|