|
That tells us what you're writing, not what you have tried.
|
|
|
|
|
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
dynamicDotNetTwain1.SelectSource();
dynamicDotNetTwain1.CloseSource();
dynamicDotNetTwain1.OpenSource();
dynamicDotNetTwain1.AcquireImage();
}
}
}
now dynamicDotNetTwain1 have a image i want to save this image in my sql server
|
|
|
|
|
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
dynamicDotNetTwain1.SelectSource();
dynamicDotNetTwain1.CloseSource();
dynamicDotNetTwain1.OpenSource();
dynamicDotNetTwain1.AcquireImage();
}
}
}
now dynamicDotNetTwain1 have a image i want to save this into sql server
|
|
|
|
|
Wow look. I found the DynamicDotNetTwain documentation. Perhaps you might find this[^] useful. Alternatively, you could actually ask on Dynamsoft's website - they might be able to help you better than we can.
|
|
|
|
|
When a guest arrives, the valet will take or note the following details and enter them into the program: 2
• Name
• Licence Plate
The program will then assign a parking space for the car and record it as taken by that person/car.
When a guest is ready to leave, the valet will take either their name or licence plate number and the program will search using those details and tell the valet which parking space the car is in.
Once the car has been returned to the guest, the valet can again search for the car by name, licence plate or parking space number and tell the program that the car has been returned and the parking space is now free.
The program should be a console application, with a menu offering options for:
• Handling guest arrival
• Finding a parked car
• Car returned to user
• List all cars parked
• Exit program
I'm just a beginner in C# can anyone help me with this.
|
|
|
|
|
1) Don't post the same thing in multiple places - it duplicates work and annoys people.
2) As I already said in QA: We don't do your homework.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Member 11199829 wrote: I'm just a beginner in C# can anyone help me with this. Yes, there are over 10 million members so surely we can help. But for us to help, you'll have to ask a question.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
As you haven't shown code that is causing a problem I would suggest that you start having a read of this MSDN tutorial[^]
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
using System;
namespace Car_Parking
{
class Program
{
static void Main(string[] args)
{
string name;
Console.WriteLine("Valvet Parking");
Console.WriteLine("Please enter Name");
name = Console.ReadLine();
Console.WriteLine("{0} has been stored", name);
Console.WriteLine("Enter the License plate Number");
Console.WriteLine("");
LicenseplateNumber = Console.ReadLine();
int num1, num2, result;
Console.WriteLine("PLease enter how many cars");
num1 = Int32.Parse(Console.ReadLine());
int
Totalspace = 10;
Console.WriteLine("Total space");
num2 = Int32.Parse(Console.ReadLine());
result = num2 -num1;
Console.WriteLine("Sub {0} and {1} is {2}", num2, num1, result);
Console.WriteLine("{0} space is left", result);
Console.ReadLine();
{
}
}
public static string LicenseplateNumber { get; set; }
}
}
this is what i have done how do i make sure that the total is 10 and when i enter a new contact it takes the space and lets me know how much space i have left
|
|
|
|
|
use arrays, size = 10.
use classes
validate the input, if not entered correctly show message and ask question again.
|
|
|
|
|
I need helping to program project by c#
title is "A Symmetric Key Encryption Technique Using Genetic Algorithm
"
please contact me as possible on proojeclas@gmail.com
|
|
|
|
|
|
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Try it yourself, you may find it is not as difficult as you think!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
You better remove your email from posts here - we can contact you without it, but others may use it as spam target!!!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
תפסיק לספר לה' כמה הצרות שלך גדולות, תספר לצרות שלך כמה ה' גדול!
|
|
|
|
|
DEAR ALL,I NEED URGENT HELP IN THIS I HAVE A TEXT FILE HAVING STRUCTURE
DOJ DATE OF JOINING IN THE FORM YYYYDDMM
EMPCODE,DOJ
0000001,20140211
0000002,20140211
0000003,00000000
0000004,20140211
0000004,20141511
I WANT READ THIS FILE AND CHECK FOR DATE ERRORS WHICH ARE ENTERED WRONGLY.JUST LIKE LAST LINE.BUT IN THIS THIRD LINE IS CORRECT.SO I WANT TO INCLUDE IT IN DATATABLE.SO HOW TO WRITE THE CODE IN ASP.NET.I AM COPIYING MY CODE WHICH I USED TO READ THIS FILE.BUT I AM NOT GETTING THIRD LINE CORRECTED.TELL ME HOW TO MENTION THE CONDITION IN CODE SO THAT I CAN GET THIRD LINE IN MY DATATABLE(HAVING DATE "00000000") AND GET ERROR FOR ONLY LAST LINE.I HAVE WRITTEN A CODE LIKE THIS
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
//using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualBasic.FileIO;
public partial class DateCheck : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
try
{
string path = Server.MapPath("~/empdetails.txt");
FetchData(path);
}
catch
{
lblError.Text = "File Is Having Error,Date is wrong,Check The File and Upload It Again";
}
}
protected void FetchData(string filepath)
{
DataTable dt = CreateTable();
bool IsFirstRowHeader = true;
string[] columnf = new string[] { "" };
using (TextFieldParser parser = new TextFieldParser(filepath))
{
parser.TrimWhiteSpace = true;
parser.TextFieldType = FieldType.Delimited;
parser.SetDelimiters(";");
if (IsFirstRowHeader)
{
columnf = parser.ReadFields();
foreach (string sds in columnf)
{
if (sds.ToString() == "DOJ")
{
dt.Columns.Add(sds.Trim().ToLower());
}
else
{
dt.Columns.Add(sds.Trim().ToLower());
}
}
}
while (true)
{
if (IsFirstRowHeader == false)
{
string[] parts = parser.ReadFields();
if (parts == null)
{
break;
}
DataRow rowset = dt.NewRow();
for (int i = 0; i < parts.Length; i++)
{
if (i == 2)
{
string str = parts[i].ToString().Substring(4, 2);
string date = parts[i].ToString().Substring(6, 2) + "/" + parts[i].ToString().Substring(4, 2) + "/" + parts[i].ToString().Substring(0, 4);
DateTime dd = DateTime.Parse(date);
rowset[i] = dd.ToShortDateString();
}
else
rowset[i] = parts[i].ToString();
}
dt.Rows.Add(rowset);
}
IsFirstRowHeader = false;
}
}
GridView1.DataSource = dt;
GridView1.DataBind();
}
static IEnumerable<string> ReadAsLines(string filename)
{
using (var reader = new StreamReader(filename))
while (!reader.EndOfStream)
yield return reader.ReadLine();
}
private DataTable CreateTable()
{
try
{
DataTable table = new DataTable();
DataColumn column;
column = new DataColumn();
column.DataType = System.Type.GetType("System.String");
column.ColumnName = "EMPCODE";
table.Columns.Add(column);
column = new DataColumn();
column.DataType = Type.GetType("System.DateTime");
column.ColumnName = "DOJ";
table.Columns.Add(column);
return table;
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
}
}
|
|
|
|
|
|
Sorry to disappoint you, but all your dates - except 3rd line - fit the YYYYDDMM format!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
תפסיק לספר לה' כמה הצרות שלך גדולות, תספר לצרות שלך כמה ה' גדול!
|
|
|
|
|
|
1) DON'T SHOUT.
2) It's not urgent, I checked. It isn't even on my top 100 "Things to do today" list. It may be urgent to you, but perhaps you should have started your homework a little earlier?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Hello Guys
I am facing one issue on ssis.
I have to fatch 100 record with pending status from DB and send to web service. on response of web service would get same 100 record and same need to update with completed status in DB. Now again I have to fatch 100 record with pending status..... so I have to execute ssis package till record with completed status.
plz let me know how I can execute ssis package till all record update.
|
|
|
|
|
That has nothing to do with C# unless you are writing a C# script withing SSIS -- which might be the way to do it. Can you provide more detail?
|
|
|
|
|
what is the work AES Encryption in c#?
|
|
|
|
|
i want to parse a set of xml docs and index the body&title&url of them how can i do it?
|
|
|
|
|
shima541 wrote: how can i do it?
As described in the documentation[^]. There's also a HowTo[^] example on MSDN.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
For .net developers, there is this quite old CruiseControl available for as CI-Server.
Jenkins is somehow now state of the art for Java Development.
Question:
Is the anything as Jenkins available, based on .net? I talk about freeware?
|
|
|
|