|
sbpont wrote: I assume that the act of removing the object from one Queue and adding it to another copies the entire object
Not at all. The only thing that you are moving is a reference. On a 32 bit system that is only four bytes.
There is no automatic copying of objects in .NET. If you want to create a copy of an object, you have to explicitly do so.
---
single minded; short sighted; long gone;
|
|
|
|
|
I have a c# application that i am attempting to print the contents to a printer.. I basically have a form with a print button on it. I was attempting to investigate the functionality, but am a little confused. Does anyone have any sample code that would print the contents of a textbox to a printer?
|
|
|
|
|
Hi all
I wount to Convert the system language(OS Language) as convert from English to Arabisc by C# Coding
the changing not in interface of windos But it is in the Text Writing Language
I means I wont to
write in textbox1 in English language
and in TextBox2 in Arabic Language
the language is convert Aotomatic When the Carsur is Changed from textbox1 to textbox2
this chang is done by Coding in C#
Who I Can do this Ieda's
thanks for any body help me
Thaer
|
|
|
|
|
Thaer,
it sounds like you use to need a web tool like http://babelfish.altavista.com/. Your C# code would have to call the translation engine and place the results in the second text box.
hogan
|
|
|
|
|
Have any of you out the had good success with a licensing vendor? I'm currently evaluating different vendors and have not had much luck getting decent reviews. I should mention that we don't have time and management does not want to write our own.
Currently looking at
Nalpeiron
SentinelRMS
Logic Protect
If I'm missing any vendor I should look at, please let me know. The vendors I have listed seem to have good features, but I'm curious of your experience!
Thanks!
Hogan
|
|
|
|
|
Our company has been using Wibu[^] products for several years now. AFAIK they are the number 1 in Europe.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Thanks Luc. I just called and talked to them. I should have mentioned that I'm interested in software based protection. The sales guy I talked to said that they are only hardware based protection.
Hogan
|
|
|
|
|
Good luck then.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hello everyone,
I need your help in finding a Maths Operator. This is what I am looking for:
int A = 5;<br />
int B = 3;<br />
<br />
Double C = A % B;
Double D = ??????
I know that I can use the reminder and calculate the quotient. But I was wondering if there is an operator which I can use to avoid the mathematically calculating the quotient.
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
Because both A and B are integers a simple division would give it to you but generally you can use Casting to do that
double q=(int)(A/B);
good luck
|
|
|
|
|
Hi,
if A and B are both integer types (i.e. not float, not double), then A/B will
yield the integer quotient; you can store that in an integer variable, but also
in a float/double, without cast. Hence double q=A/B;
But as soon as one of the operands is a real number, the real quotient will be
calculated.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Using themed css files requires a header control on the page. (e.g. ).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Using themed css files requires a header control on the page. (e.g. ).
Palestine
|
|
|
|
|
how can avoid this Error
Palestine
|
|
|
|
|
Just do what it says.
If there is something about the error message that you don't understand, please specify what.
---
single minded; short sighted; long gone;
|
|
|
|
|
|
twain.dll.plz
There you go, happy?
|
|
|
|
|
can you put it in a ZIP file, please?
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
I'm not sure what a .plz file is. Can you explain?
Hogan
|
|
|
|
|
Can you explain plz please ?
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Looking at his only other posts either this guy is utterly oblivious to us making fun of him or it is a troll. I'm guessing it's the latter.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
I just reviewed your other posts just like leckey said
People are here just for helping each other, if you were more polite you could have the answer
here is the article Michael Sync pointed to it and you didn't mention it http://www.codeproject.com/dotnet/twaindotnet.asp
there is another way too, using the Windows Image Acquisition (WIA)
you can search it from Microsoft or just download it from http://hjk.4shared.com
I replied just because you selected Iran as your country in your profile please don't be rude and don't send post like these
|
|
|
|
|
This forum is for programming questions, not for requests for entire projects. However, if you search the site, I believe an article exists for twain in C#
Christian Graus - Microsoft MVP - C++
"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 googled for 2 days straight with no success...
Scenario: Load simple xml data into listview control with 2 or more columns.
I have used XmlTextReader and XmlReader with very limited success. I am able to populate the listview but only the first column.
If someone could point me in the right direction, I would greatly appreciate it.
--Steve
|
|
|
|
|
I would suggest investigating how to create a DataTable and populate it with your xml. This will not be an easy task but it's by no means overly difficult either. It will just take a bit of work to accomplish. You will have to create each column in the DataTable and fill it with the appropriate data. Once that's done you can bind the DataTable to the ListView and you should be good to go. There may be a way to cut out the DataTable entirely but you may figure that out by researching what I suggested.
- Arcond
|
|
|
|
|
Go figure: I post my question and then I find my answer.
Answer lies with XmlDocument. See code snippet below.
My xml file (checklist.xml) is really an index used for parsing files of their data based on a starting point, string size, and a description. In turn these are my columns in my listview control as well.
<br />
private void tsbtnRunAudit_Click( object sender, EventArgs e )<br />
{<br />
XmlDocument xdoc = new XmlDocument();<br />
xdoc.Load(@"C:\DEVELOPMENT\Sandbox\VikConvAudit\VikConvAudit\Indexes\checklist.xml");<br />
<br />
<br />
XmlNodeList start = xdoc.GetElementsByTagName("Start");<br />
XmlNodeList size = xdoc.GetElementsByTagName("Size");<br />
XmlNodeList description = xdoc.GetElementsByTagName("Description");<br />
<br />
for(int i = 0; i < start.Count; i++)<br />
{<br />
lvMain.Items.Add(start[i].InnerText);<br />
lvMain.Items[i].SubItems.Add(size[i].InnerText);<br />
lvMain.Items[i].SubItems.Add(description[i].InnerText);<br />
}<br />
<br />
}<br />
<br />
|
|
|
|