|
if (end[i] < end[i + 1] && start[i] = end[i + 1] && start[i] <= start[i + 1])
should be
if (end[i] < end[i + 1] && start[i] == end[i + 1] && start[i] <= start[i + 1])
Veni, vidi, abiit domum
|
|
|
|
|
|
[twitchy left eye typing mode]
if (end[i] < end[i + 1] && start[i] == end[i + 1] && start[i] <= start[i + 1])
There is a difference between = and == in C#...
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
hi Guys....
i have a programm and its about Human Resource managment...(c# and linq)
My Problem is :
i have 2 form ...: frmPersonals.cs and frmRPersonals.cs
the first one( frmPersonals) is for input data and save it to DB. and as you will see there is an image box in it(image of person will be save and retrieve on it)
the second form(frmRPersonals) is for search the DB (filter by user request).and it search Db and use "report Viewer" to show it.
my request is here:
i want to add the same image box (like first form) and put it in my Second form(frmRPersonals)so when it find the proper person it show his-her picture in this form...(in other word i want code that do the same things in my first form means:retreive the image of filtered personT in image box that will be put in frmRPersonals)...
how can i do that...plz do this for me in my source code....god bless u!
i will upload my whole source code ....plz help me i need it.
<a href="http://www.mediafire.com/download/7q00kqzg794mp9h/Personals-Info.zip">http://www.mediafire.com/download/7q00kqzg794mp9h/Personals-Info.zip</a>[<a
href="http://www.mediafire.com/download/7q00kqzg794mp9h/Personals-Info.zip" target="_blank" title="New Window">^</a>]
|
|
|
|
|
I suggest you read the guidelines on how to ask a question. Good luck with your homework.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Store the image in the database along with the rest of the person's details. There are plenty of samples around that show how to do it.
BTW no one is going to download your source code and rework it for you.
Veni, vidi, abiit domum
|
|
|
|
|
1. Your post is against about every rule in the guideline. Please read them first. (first forum post on top)
2. Don't provide download links like that, we don't know you and don't trust strangers.
3. Don't do txt spch. They're is an entire dictionary at your disposal, use full sentences and full words. It is a token of respect for one another.
4. No one will fix things for you. We will help you with a specific problem so you can fix it yourself. If you need coding done for you there are other sites for that.
5. "god bless u" Suppose, for a brief moment, I believe in such an entity, why would he bless me and what gives you the power or the right to make that claim for said entity? (OK, here I'm joking, but keep "faith" related expressions out posts, unless it is in the soapbox)
Despite the replies you received so far, no one is "against" you, nor is it personal, just step in line with the forum's way of working and you 'll be just fine.
|
|
|
|
|
I want to run a command in remote computer command prompt and fetch command output of the remote computer and save the output in local system. i don't want to use WMI for this as wmi is not enabled in the remote computer.
|
|
|
|
|
|
i have already mentioned wmi is not an option.
|
|
|
|
|
|
If I were you, I'd use PsExec[^] to execute the commands.
|
|
|
|
|
can psexec work for machines not in domain.
|
|
|
|
|
Do you think of a tool similar to Java's Web Start used by e.g. Continuous Integration tools like Hudson and Jenkins?
Well, I do not know of such a component in the .Net world...
|
|
|
|
|
can i execute command in a windows box remotely over internet and get its output provided i have full details of credential required to connect to the remote machine. Through PSexec i am able excute command in remote machine in the LAN /intranet and get output in my local machine in a text file but will it be possible to get the same details if the remote machine is connected in Internet.
|
|
|
|
|
Assuming you have the credentials and legal approval then the pc must be directly connected to the internet, meaning it must have an ip directly on the internet, or have port forwarding enabled on the router it sits behind.
Normally you are not going to find pc's directly attached to the internet. Best practice is a firewall in between, which means you need to manually set up port forwarding at the pc's location.
|
|
|
|
|
Lets start with the basics first.
To execute a 'command' on a remote machine then the remote machine MUST have a server application running which will execute those commands. (Note that starting an application is also considered executing a command so you cannot expect to remotely start the application.)
And that server application MUST be remotely accessible.
That is an absolute. There is no other possibility.
There are many applications that can do this - including writing your own.
The FIRST step to implementing a solution is to determine what that server application will be. Because that will determine what the client application can do and what it can't do.
|
|
|
|
|
Hi I am just starting out using c# and I have followed a tutorial i think but i am getting errors
------------------------------------------------
namespace SkiTrip
{
Class Student
{
private string name;
private decimal totalPaid;
private bool canTravel;
//Here write the properties
public void setName (string newName)
{
name = newName;
}
public string getName ()
{
return name;
}
}
--------------------------------------------
Error 1 A namespace cannot directly contain members such as fields or methods
Error 2 x 4 Expected class, delegate, enum, interface, or struct
--------------------------------------------
help really appreciated
mark
|
|
|
|
|
c# is case-sensitive, so
Class is not the same as class . C# uses lower-case names for keywords, so the capitalized "Class" is not valid, you have to start it with "class".
You are also missing a } in the code you provided, it should be (in full):
namespace SkiTrip
{
class Student
{
private string name;
private decimal totalPaid;
private bool canTravel;
public void setName (string newName)
{
name = newName;
}
public string getName ()
{
return name;
}
}
}
|
|
|
|
|
Many thanks, I have been trying to sort this for hours, hopefully I wont make any more typo's
Mark
|
|
|
|
|
Use an Integrated Development Environment (IDE), the Express versions of Visual Studio are free!
|
|
|
|
|
Also do not use methods such as setName and getName , use the integrated C# set and get to access properties as described in this tutorial[^]. If you want to read a really good introduction to C# try .NET Book Zero[^].
Veni, vidi, abiit domum
|
|
|
|
|
I am looking for a working in C# that can convert English text to Arabic text before the text is passed to printer.
|
|
|
|
|
|