DangerDev 107 Posting Pro in Training

I think you should start new thread for such question. but before this search in this forum regarding your problem.

DangerDev 107 Posting Pro in Training

on DataReceived event you can do timer.Start() or timer.Stop(), what ever you want. Did you asked this?

DangerDev 107 Posting Pro in Training

@ adatapost thanks for mentioning my mistakes. :)

regarding StreamWriter from msdn: "StreamWriter defaults to using an instance of UTF8Encoding unless specified otherwise."
so i think it would be ok to use it.
Please do post comments, if any.

DangerDev 107 Posting Pro in Training

when you want a operator to show other then default behavior you should use operator overloading.
for example you have created a class ComplexNumber.
by default + operator doesn't add two ComplexNumber, here you need to overload + operator.

DangerDev 107 Posting Pro in Training

:)

DangerDev 107 Posting Pro in Training

Try to avoid GOTO. Put main loop inside one more loop or try some other logic. Use of GOTO will create all the mess at last.

Ancient Dragon commented: Absolutely yes. +36
DangerDev 107 Posting Pro in Training

if you have to create a file then you should not use:

StreamWriter oFile = new StreamWriter(@"C:\Users\fjones\Documents\Visual Studio Projects\bin\Debug\output.txt");

instead use this:

String file_name=@"c:\ab.txt";
using( FileStream fs = new FileStream(file_name, FileMode.OpenOrCreate, FileAccess.Write))
{
 //do something with open file
}

this will create a file if it doesn't exists and open it for writing.

DangerDev 107 Posting Pro in Training

Its not a good idea to have source code sent via email. Please answer everything here in this community, let others also learn. :)

DangerDev 107 Posting Pro in Training

Hay,
Just be cool, and go with cool mind, that's what you need hour before interview.
And Best of Luck :)

DangerDev 107 Posting Pro in Training

The link i have is given is good to start what else you need?

DangerDev 107 Posting Pro in Training

Hi,
You can achieve this using javascript. Just on click of small image invoke java script function, where you can use window.open method to open the page(say page1.aspx) which contain your new image.
on page1.aspx just put the bigger image.

DangerDev 107 Posting Pro in Training
sknake commented: that sums it up! +6
DangerDev 107 Posting Pro in Training

please also post the HTML code as in above code you have lot of divs

DangerDev 107 Posting Pro in Training

Interoperability
Interoperability is a property referring to and the ability of diverse systems and organizations to work together (inter-operate).
-wikipedia

DangerDev 107 Posting Pro in Training

i thing it should be like:

var objBall = new ImageDeneme("abc.gif", 0, 0, visible);

just use firebug to fine out what objBall. contains.

DangerDev 107 Posting Pro in Training

1. Develop a small site.
2. Start adding functionality.

You can take any existing site to redevelop. May be you can develop this one :).
hay not kidding, just start at smaller scale and grow big.

DangerDev 107 Posting Pro in Training

post the code what ever you have done so far.

DangerDev 107 Posting Pro in Training

Then you need to learn javaScript, Ajax, Comet.
you should also need one server side scripting language like PHP,ASP or JSP.

DangerDev 107 Posting Pro in Training

create the object where you want to use it.
tell some more about class.
what actually you want to do with class?

you can put the code in any event or form load etc.

DangerDev 107 Posting Pro in Training

What is the error coming?
What actually you want to do with data after serialization?

DangerDev 107 Posting Pro in Training

First thing you have to decide is whether you want to make it web based like gmail one or desktop based like communication or net meeting.

DangerDev 107 Posting Pro in Training

Just take the item of listview in a array and the serialize it.

DangerDev 107 Posting Pro in Training

Hi,
See this and this.

DangerDev 107 Posting Pro in Training

Hi
Do this:

if (e.KeyChar == (char)Keys.Enter)
            {
                //do something
            }

inside textBox1_KeyPress function

DangerDev 107 Posting Pro in Training

if you want to develop in in c# and window forms, You need to develop one server and client. you can use XML as communication mechanism between client and server.

DangerDev 107 Posting Pro in Training

try for your self.
if you face problem while trying post here.

DangerDev 107 Posting Pro in Training

Congrats ~s.o.s~.

I guess green is good. Go Green :)

DangerDev 107 Posting Pro in Training

Please don't use SMS like language, its making your problem tough to understand.
Now tell, from above program what are the outputs you are expecting.

DangerDev 107 Posting Pro in Training

What you have done so far?
Post here the problem you are facing.
If you want to start from scratch this may help you.

DangerDev 107 Posting Pro in Training

I hope this and this will help you.

DangerDev 107 Posting Pro in Training

use class for this.
store all the info in class.
store class in to array.

DangerDev 107 Posting Pro in Training

see,
after first pass of for look, file reading pointer will be at the end. so during next for loop passes it wont go inside while loop as (! inFile.eof() ) will be false.
You have to reset the file reading pointer to start of the file before while loop.

DangerDev 107 Posting Pro in Training

Hi,
I guess server side you can set the values of the field.

DangerDev 107 Posting Pro in Training

Hi,
this question has been asked many times earlier.
See this.

DangerDev 107 Posting Pro in Training

you can have same class for all the divs. and use class selector.

DangerDev 107 Posting Pro in Training

Hi,
There are many ways to get the control on a form say Form1 in another method. Based on your need you can use one.
1. You can declare the control definition public, which is private by default or better way would be to create a property with only get method in the form to expose that control. If you need few controls from form this is preferable.
2. You can get all the controls using Form1.Controls property. This will return collection of all the control in form. And you can loop throw it and identify the control using name property of control.

DangerDev 107 Posting Pro in Training

Hi,
First you need to learn basics of Ajax, please take help of w3school.

DangerDev 107 Posting Pro in Training

Hi,
I am giving algo to do the job:
1. Sort the table row by Item ID.
2. Take two array arrayItemId to store Item Id and arrayAmountSum to store sum of amount.
3. Now look throw the data base rows. and sum the amount of rows where item id is same. and store item id in arrayItemId and sum of amount at arrayAmountSum , at the same index.

PS: above i have given hint.

Another method is to get the job done at throw the data base queries it self. You can search for it in google.

DangerDev 107 Posting Pro in Training

Hi,
You have to use probability related formula to calculate probability. For that you need to formulate the mathematical model of your problem.
Also read about Monte Carlo method and Las Vegas algorithm. It may help you.
If you are not able to solve the problem. Please explain your problem completely. As your problem statement is not clear

DangerDev 107 Posting Pro in Training

I'll suggest you to send only the part of page B, which you want to display in page A.
Or please let us know why it is necessary for you to send entire content of page B during ajax request.

DangerDev 107 Posting Pro in Training

Dividing means dividing the big (complex number) struct in to several other classes. Or I should say regrouping all your methods in to several classes.
I am sure you wont use all of the methods at once. You would be using group of method in one app and another group of method in another app.
Dividing them will help you to use less memory by loading object of small classes. I hope i made my point clear.

DangerDev 107 Posting Pro in Training

Hi,
Simply user XmlDocument and its method LoadXml().
You can find example code here.

DangerDev 107 Posting Pro in Training

What about creating a small complex number struct and dividing methods around it in different classes?

DangerDev 107 Posting Pro in Training

I dont think you can do this. Whenever you read some thing from stream you actually move the reader's position in the Stream. This will happen even if you use StreamReader. So if you have read the stream till end, reader's position is in end. Now if you want to read the stream again you have to set the reader position using seek() method of stream.
You can't call seek method in NetworkStream. As this method is not currently supported and always throws a NotSupportedException.

DangerDev 107 Posting Pro in Training

i think serialization should serve the purpose.

DangerDev 107 Posting Pro in Training

Please go throw this to know more about breakpoints.

DangerDev 107 Posting Pro in Training

Hi,
Please use for all the code you post here. regarding solution for your problem, just put '}' for every '{' and same for '(' and ')'.[code=language] for all the code you post here.
regarding solution for your problem, just put '}' for every '{' and same for '(' and ')'.

DangerDev 107 Posting Pro in Training

Hi,
use configuration file to store connection string. then read connection string whenever required. this way it will allow to change it whenever you required, even after deploying the project.

DangerDev 107 Posting Pro in Training

if you dont want to display more than 1 Form2
keep following code out side the foreach statement:

Form2 form2 = new Form2();
                            form2.Show();
DangerDev 107 Posting Pro in Training

this should serve the purpose:

if (!valfield == "") {
		if (yfld<4) {
			msg (infofield, "warn", "ERROR: Please insert 4 digits");
			setfocus(valfield);
		} else if (yfld>4) {
			msg (infofield, "warn", "ERROR: Please insert only 4 digits");
			setfocus(valfield);
		} else if (tfld>2020) {
			msg (infofield, "warn", "ERROR: Please check your Data");
			setfocus(valfield);
		}else if (tfld<1940) {
			msg (infofield, "warn", "Please check yout Data");
		} else {
			msg (infofield, "warn", "");
		}
		
		return false;	
	} 		
  return true;