|
Hi All,
I am a .Net programmer. I have a few questions regarding programming for Thin Client Machines. I dont have any explosure to thin client machines so i am in need of experts advice on this.
1. Is it possible to program for a Thin Client Machine using .Net technology with language as C#
2. Is there any special option in .net for this
3. Where can i get a sample Thin Client Application / Tutorials using .Net Language
Thanks & Regards
Karthikeyan S
|
|
|
|
|
|
Hi,
Thanks for a quick reply...
Will it be possible to run a windows application on a thin client which is connected to the database in a thin client server.
Will it also support a web applications.
Sorry if my question seems silly as i dont have any exposure to thin clients
Thanks & Regards
Karthikeyan S
|
|
|
|
|
karthi84 wrote: Will it be possible to run a windows application on a thin client which is connected to the database in a thin client server.
Will it also support a web applications.
If it matches or greater than with minimum requirements of application then Yes. But the issue is you can't expect the speed, performance or something using thin client or server in Low H/W configuration. That's all.
thatraja |Chennai|India|
Brainbench certifications Down-votes are like kid's kisses don't reject it Do what you want quickly because the Doomsday on 2012
|
|
|
|
|
thank you for your valuable ideas. Now i got some idea about thin client with this i can run further.
|
|
|
|
|
Thin client doesn’t have any Hard disk. It only connects to a server through Terminal Server Service. It shares all resources of the Terminal Server. So any program you are executing through a thin client actually it has been executed in your server. So if a program executes in your server then that will also be executed at your thin client. Dont worry about it.
|
|
|
|
|
thank you for your valuable ideas. Now i got some idea about thin client with this i can run further.
|
|
|
|
|
Actually some thin clients do come with "hard disk". More like a flash drive... Only about 1gb (depends) which some of it is used for the OS (some come with like Windows XP Embedded, some come with other OS). You can install the .NET Framework and other applications as long as they don't exceed the amount of space. Of course you want to be careful with how much memory you use.
Take a look at http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01716415&jumpid=reg_R1002_USEN
It can have up to 2gb flash memory
|
|
|
|
|
"Thin client" can have different connotations, depending on the context and who you're talking to. For example, I do not immediately assume no hard disk when I hear thin client. Just degrees of service. For example wikipedia sez:
"Traditionally, a thin client ran a full operating system for the purposes of connecting to other computers. A newer trend is sometimes called an ultra-thin client or a zero client, which no longer runs a full operating system: the kernel instead merely initializes the network, begins the networking protocol, and handles display of the server's output."
There is nothing related to .NET or C# that would preclude generic thin client apps. For some, this could be a form of any distributed 2-tier or n-tier system. And certainly .NET has a good framework for that. Communications will have to occur somehow, and .NET supports WCF for example, so I don't know if that's what you mean by "special option".
|
|
|
|
|
I would recommend looking at Silverlight. http://www.silverlight.net. This subset of .Net and WPF can run on a pretty thin client including Macs. It is very restrictive though when it comes to security. You need to get permission from the user if you wish to access things like the file system.
Hope this helps.
Leon Lambert
Leon Lambert
|
|
|
|
|
hello needing help in histogram. i come across this particular website which teaches creation of simple histogram. However i am doing coding in c#. Needing some help in correcting as i am stuck.
ref website:
http://www.ehow.com/how_5868540_create-histogram-using-programming-code.html[^]
code:
int numvalues = 20 ;<br />
int [] values = { -3, 2, -2, 4, 5, 4, 2, 5, 4, 5, -1, 2, 3, 4, 7, 4, 2, 0, 7, -3 } ;<br />
<br />
int i = 0, j =0 ;<br />
int maxval = 0 ;<br />
for (i = 0; i < numvalues; i++)<br />
{<br />
if (values[i] > maxval) maxval = values[i] ;<br />
}<br />
int minval = maxval ;<br />
for (i = 0 ; i < numvalues ; i++) {<br />
if (values[i] < minval) minval = values[i] ;<br />
}<br />
int freqsize = maxval - minval + 1 ;<br />
int[] frequency = new int[freqsize];<br />
for (i = 0 ; i < freqsize ; i++) {<br />
frequency[i] = 0 ;<br />
}<br />
<br />
for (i = 0 ; i < numvalues ; i++) {<br />
int index = values[i] - minval ;<br />
frequency[index]++ ;<br />
}<br />
<br />
for (i = 1 ; i <= freqsize ; i++) {<br />
label1.Text= i + minval.ToString();<br />
for(j = 0; j < frequency[i] ; j++) {<br />
label1.Text = "*";<br />
}<br />
label1.Text = ("\n");<br />
}<br />
for the last for loop, i am unsure if i did it correctly. i am suppose to get the output as the ref website.
|
|
|
|
|
A quick look says that this:
label1.Text = "*";
should be:
label1.Text = label1.Text + "*";
And
label1.Text = ("\n")
should be:
label1.Text = label1.Text + ("\n")
You need to append the * and \n characters to the existing text - your code just replaces the text with single * at each iteration, then replaces it with \n.
One other point, when posting code use the 'code block' to get highlight it and retain the formatting (i.e. indents).
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
The only valid measurement of code quality: WTFs/minute.
|
|
|
|
|
noted, thanks for the reply. i got this error when i run which is "Index was outside the bounds of the array." May i know whats the problem if you know it?
|
|
|
|
|
In the last loop i goes from 1 to freqsize, but the array index goes from 0 to freqsize-1.
(It's declared as: int freqsize = maxval - minval + 1 .
Try stepping through the code with the debugger to see what is happening - often helpful when trying to understand the code or solve problems.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
The only valid measurement of code quality: WTFs/minute.
|
|
|
|
|
Yes, you're right you made a few mistakes in the last loop. It wasn't particularly clear in your example as that was c++ using prontf, and you're trying to write to a label. See blow for corrections.
for (i = 1; i <= freqsize; i++)
{
label1.Text += (i + minval).ToString() + " | ";
for (j = 0; j < frequency[i]; j++)
{
label1.Text += "*";
}
label1.Text += ("\n");
}
|
|
|
|
|
thanks for the replies.
i have made changes to the code however still facing problem i dont get the output and there is still this error "Index was outside the bounds of the array." when the last loop is being executed.
private void Form1_Load(object sender, EventArgs e)<br />
{<br />
int numvalues = 20 ;<br />
int [] values = { -3, 2, -2, 4, 5, 4, 2, 5, 4, 5, -1, 2, 3, 4, 7, 4, 2, 0, 7, -3 } ;<br />
<br />
int i = 0;<br />
int maxval = 0 ;<br />
for (i = 0; i < numvalues; i++)<br />
{<br />
if (values[i] > maxval) <br />
maxval = values[i] ;<br />
}<br />
int minval = maxval ;<br />
for (i = 0 ; i < numvalues ; i++) {<br />
if (values[i] < minval) <br />
minval = values[i] ;<br />
}<br />
int freqsize = maxval - minval + 1 ;<br />
int[] frequency = new int[freqsize];<br />
for (i = 0 ; i < freqsize ; i++) {<br />
frequency[i] = 0 ;<br />
}<br />
<br />
for (i = 0 ; i < numvalues ; i++) {<br />
int index = values[i] - minval ;<br />
frequency[index]++ ;<br />
}<br />
<br />
for (i = 1; i <= freqsize; i++)<br />
{<br />
label1.Text += (i + minval).ToString() + " | ";<br />
for (int j = 0; j < frequency[i]; j++)<br />
{<br />
label1.Text += "*";<br />
}<br />
label1.Text += ("\n");<br />
}<br />
<br />
<br />
}
|
|
|
|
|
I feel like I'm helping someone do his homework...
Take a look at your last loop around freqsize and see if you find anything suspicious...
Also, if you cannot see it, throw it in the debugger and you'll find the issue pretty quickly, maybe you can step through the code. Try using a values array with 0 numbers, 1 number, 2 numbers.
|
|
|
|
|
i got it right alrdy. thanks.
|
|
|
|
|
I use the WebClient to download file to local disk, but it cannot write the data to file. I see that the file is created by program, but its size is still zero. Then the file is deleted by the program. I debug the program, and the URL is right. I can open the image using the IE.
why?
|
|
|
|
|
yu-jian wrote: I see that the file is created by program, but its size is still zero.
That sounds a bit strange, as creating a file is more critical than writing to a file. Either you simply forgot to write to the file, or your observation is wrong and the file has been there for some time already.
Check the datetimes of your file, make sure for all operations that return a status the status gets checked, do not swallow exceptions, etc. Use your debugger to look at the program flow, and watch intermediate results. If you can't locate the problem, show us the relevant piece of your code.
|
|
|
|
|
sorry, my other post wasn't clear ...
hello, i want to create a more complex highscore board that displays the playname and score in labels!
currently i have a datagrid which is displaying my data as a test, here is my code for that:
OLEDataConnector Dat = new OLEDataConnector("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\"Highscore.accdb\";Persist Security Info=False;");
DataTable Dt = new DataTable();
Dat.dataSelect("select Playername, Score, LevelNumber from score order by score desc", ref Dt);
dataGridView1.DataSource = Dt.DefaultView;
its a microsoft access database and i need to get around 10 rows if they are in the database to be put onto my highscore board ...
So what i want is the playername of the record to be put into one label and the other as a score in another label, obviosuly they will move around using the query, :P
Any help? as i can't find anything on this that is of any use.... Thanks
|
|
|
|
|
Why use labels at all? Why not just get the data and draw the text on a panel yourself?
You can't bind a list of data to automatically create an array of labels for you. You have to copy the text from each record from the database to each label where it belongs. It's easier to just draw it yourself.
|
|
|
|
|
Well the DataTable that you have created in your code has a Rows[^] property.
What you can do is iterate over this collection (there is an example in the link above) and for each DataRow , create your two Labels and add them to your form. You will have to keep track of the X and Y coordinates so that you can position them properly.
I could write the code out for you, but that really wouldn't help you learn. Have a go and if you get stuck, or you don't understand, please come back to me.
Good luck.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thank you i shall try that :P
|
|
|
|
|
hello, i can't get it to work and i have spent another 3 hours trying differant ways lol, can you help me ?
|
|
|
|