|
i started reading thru some pdfs on c# , googled some help here and there when i got stuck to explain to me whats goin on like definitions ect ect , but mostly i just followed tutorials and downloaded a few exercises,and worked on them until i got it right
|
|
|
|
|
The problem with that approach is that you aren't following a guided learning path. Instead, you are following links to what seems relevant - and it definitely looks like you've gone wrong. As OG points out, the fact that you think an ArrayList is relevant (it's not been a recommended approach since .NET 2 came out) is concerning. If I were you, I'd look at taking out a subscription to Pluralsight.com[^] and using the online tutorials there, or buying Jon Skeet's book, C# In Depth[^].
|
|
|
|
|
thanx for the links , ill take a look at Pluralsight.com, now and work from there. this sux that means my time was wasted
|
|
|
|
|
The trouble is that to implement a POS system, you need to know how to design and access databases, UI, multiuser and a whole pile of other things - that "some pdfs on c#" and a few tutorials aren't necessarily going to begin to introduce.
C# the language is trivial: you can learn that in an afternoon! But what's behind it - the .NET framework - is enormous and will take months to learn (I've been using it for years and still there is new stuff in it!)
I think you are going to be in a big hole, but...start with a google of what a POS system is[^] and involves, and start working out what you need to do, then what you need to learn to do it. Trust me - this is not a trivial project!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
okay tanx for the advice, mmm im feeling concerned now coz what am i supposed to show the guy in at the end of the month
|
|
|
|
|
Ouch! Dunno - but I'd concentrate on trying to get to the point where he considers keeping you on another month...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
okay .thanx again for all the help
|
|
|
|
|
It seems you've bitten off much more than you can chew. Creating a POS from scratch is a task more suited for an architect. Implementing pieces of a POS (or any enterprise application) can be done by developers of varying experience. I don't mean to belittle you, but am just making an honest observation.
A request: please don't use txtspk in your posts. Thanks.
/ravi
|
|
|
|
|
all comments welcome so dont stress, thnx for your advice and whats txtspk ?
|
|
|
|
|
jamesmc1535 wrote: whats txtspk ? It's how you type when texting - i.e. omission of vowels from words. It's not very welcome at CodeProject because it gives the impression that you don't want to take the trouble to properly ask a question, yet expect the CP community to respond to your request for assistance.
/ravi
|
|
|
|
|
okay i understand but i dont do it on purpose , infact i didnt even recognize im doing it until you pointed it out
|
|
|
|
|
I would second Pete's recommendation of Jon Skeet's, excellent, book. However, as the name implies, it is and 'in depth' look at C# and might be advanced for a beginner.
Microsoft Virtual Academy offers free beginner's courses in C# and more advanced topics.
Good luck.
|
|
|
|
|
thanx for all the feedback , ill do my best, ive imprved alot since that message so things are looking good
|
|
|
|
|
Hi,
We have Relay server in our landscape and trying to register device to SMP server.
i have included SAP mobile platform SDK into Xamarin.ios app, but when am trying to connect to smp through relay server like,
URL:https://........................
Headers :-
Content-Type : application/xml
X-SMP-APPCID:
Body:-
<?xml version="1.0" encoding="utf-8”?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns ="http://schemas.microsoft.com/ado/2007/08/dataservices"”>
<content type="application/xml”>
<m:properties>
<d:DeviceType>iPhone</d:DeviceType>
</m:properties>
</content>
i couldn't get register device to SMP server.
please guide.
|
|
|
|
|
Does this have anything to do with C#?
|
|
|
|
|
Hey, my question is above..
I used this example: C# does Shell, Part 3[^]
This is the relevant code:
namespace Sidebar
{
public partial class frmSidebar : ShellLib.ApplicationDesktopToolbar
{
Dictionary<string, string> apps;
#region "General Loading"
public frmSidebar()
{
InitializeComponent();
}
private void frmSidebar_Load(object sender, EventArgs e)
{
// setup basics
this.Edge = AppBarEdges.Right; // should place the window(defined as "None" in FormBorderStyle)
// unrelevant stuff
}
Screenshots:
blacktech.hol.es/coding/sidebar.png
Best regards, blacktech!
|
|
|
|
|
//edit1: it functions when i set the borderstyle to anything but none... but i only want my fancy sidebar! ... can u hlp me m8s?
BR, blacktech
|
|
|
|
|
Please use the forum at the end of the article.
|
|
|
|
|
Ok, sry oversaw it^^ Hope smbd. can help me there..
//closed
|
|
|
|
|
Hi,
I have a function which retruns a pdf as a byte[]
private static CreatePDF()
{
byte[] pdf;
return pdf;
}
If I call this function this way:
byte[] MyPdf = CreatePDF()
How can I save MyPdf to disk as a pdf file (c:\path\Filename.pdf) ?
I'm using .NET 2
Thanks
|
|
|
|
|
Try:
File.WriteAllBytes(@"C:\Path\Filename.pdf", MyPdf);
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Thanks very much. I'll try it and check if it works.
|
|
|
|
|
Dear Forum Members,
I started learning c# by making some applications. Recently i made an application where you can add an employee and his rate (per hour) in a database. When you add the employee, it should update the database and show a report of the amount of employees.
I can add an employee and it shows the new entry in the table, but when i refresh the report, it shows no new entries. When i close the application and start it over, it shows the new employee.
I can't figure out what i did wrong. Could someone help me out?
Source code:
This part is the main form, where you can see the report:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Employeereport
{
public partial class Employeestart : Form
{
public Employeestart()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
this.TableTableAdapter.Fill(this.employeeDatabase.Table);
this.reportViewer1.RefreshReport();
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
addEmployee medewerker = new addEmployee();
medewerker.ShowDialog();
}
private void reportViewer1_Load(object sender, EventArgs e)
{
}
}
}
When you press the "add new employee" button it opens a new form where you can add the employee and his rate. Next to this there is a table where the entry is added:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Employeereport
{
public partial class addEmployee : Form
{
public addEmployee()
{
InitializeComponent();
}
private void tableBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.tableBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.employeeDatabase);
}
private void addEmployee_Load(object sender, EventArgs e)
{
this.tableTableAdapter.Fill(this.employeeDatabase.Table);
}
}
}
I added my project files here:
https://www.dropbox.com/s/1klokwyupx78tuz/Employeeapplication.zip?dl=0[^]
Thanks in advance!
modified 12-Jul-15 11:52am.
|
|
|
|
|
I'm not going to download a random project and wade through the whole thing trying to work out what you have done, and what is relevant and what isn't. It's not a good use of my time.
So instead, edit your question, dump the source link and paste in the relevant code fragments (in <pre>tags via the "code" widget) so it looks like this:
public string MyMethod(int value)
{
return (value + 1).ToString();
} That way, none of us have to try and work out what part of your code is involved in your problem.
Help us to help you!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Dear OriginalGriff,
Thanks for the feedback, you are totally right. I added the source code.
|
|
|
|