Questions: 1 835

Answers by our Experts: 1 539

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

write a program to calculate a sum of all the nos getting an input through command line argument
I have a program with multiple forms. From Form1 I want to open Form2 and simultanously display a graphic (some lines), but I get only a blank form. I can only get the graphic displayed if I click on a button, but I need it to appear without intervention. How can I do it?

Here is the code for the second form:


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

namespace WindowsApplication1
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
CenterToScreen();

}

private void Form2_Load(object sender, EventArgs e)
{
Graphics g = this.CreateGraphics();
Pen p = new Pen(Color.SaddleBrown, 15);

g.DrawLine(p, 40, 400, 200, 400);
g.DrawLine(p, 80, 400, 80, 90);
g.DrawLine(p, 73, 90, 300, 90);
how to make random images in c sharp?
I am trying to fire an event, by clicking a button, and it does not fire. The id is
"Update".

Instead of going to the event handling paragraph, code goes to the Page_Load method
and skips the Update_Click method. The event is wired to the Update_Click method.

I have done this before, and never had a problem. (The Update_Click) method is created
by double clicking the button “Update”).



For example –

public partial class WebForm2 : System.Web.UI.Page
{
public string employee;
public decimal employeeDec;
public string empName;
public string date1;
public string date2;
public List<AccessForm> AccessFormList;
// following code skipped
protected void Update_Click(object sender, EventArgs e)
{
AccessFormUpdateDB.UpdateSelectedEmployee(AccessFormList);
}


//code executes here
protected void Page_Load(object sender, EventArgs e)

{

employee = ((TextBox)Page.Pr
Console.WriteLine("Please enter your card number");
string crdnum = Console.ReadLine();
int c = Convert.ToInt32(crdnum);

Console.WriteLine("PLease enter your password");
string psswrd = Console.ReadLine();
int p = Convert.ToInt32(psswrd);
int counter = 0;

do
{
if (c = i)
{
//This is where i want to compare the user input with the array but im stuck!!
}
} while (counter < 3
The deadline date and time that I give for my assignment, is that in my time zone or in yours?
Greetings.
I have a List of objects, wich contain another objects and information for report crafting. It works dynamically, so it can contains something different each time. I want to feed the report using a ObjectDataSource, but it creates a new instance of everything and I wanna use the instance I created. Any idea?
Consider the code
char
*a = "xyx", *b = "xyz";
if ( a==b )
printf("The two strings have the same address!\n");
else
printf("As I expected, the addresses are different.\n");
The expression a==b compares pointer values, not the contents of the strings.
Also, the expression a=b is an assignment of a pointer value, not an assignment
of a string. In this exercise we want to consider = and == with respect to their
use with structures. Suppose now that a and b are two structure variables of the
same type. The expression a=b is valid, but the expression a==b is not. The
operands of the == operator cannot be structures. Write a small test program to
see what your compiler does if you try to use the expression a==b, where a and
b are structures of the same type.
hi. in c# there is not solution like solution "windowsFormsApplication1" within solution Explorer window
I need it for get setup.
Create a c# console application to enter the name and mark of students using a 2d array
LATEST TUTORIALS
APPROVED BY CLIENTS