|
The only thing that's going to work is what I said already. A system wide file watch for new files will tell you if save as was used to create a new file. Overall, what you're trying to do, is pretty much impossible, but you can at least tell if a new file was created and work out what sort from the file extension.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Dear Christian Graus
Thanks for replay ..
for save as (any applicaion) what i have done is .....
at first i have hooked windows destroy event ..
when the window is distroyed, i am checking the window title as "SAVE As" if it so then i save the process id and (time) in a globel variable ...
then ..
when save as is done, file watcher event is fired there i am checking the new file name (getting the file name form e.Fullpath) with stored process id Window title ........ (and time)
i could not compare winth the newly created file Process ID with old process id .
i do not know how for this will work ....
|
|
|
|
|
gday all,
im having a problem with a C# application im developing.
the code is as follows.
...
namespace Keystore
{
public partial class FindKey : Form
{
public FindKey()
{
InitializeComponent();
}
DataSet ds;
System.Data.SqlClient.SqlDataAdapter da;
DatabaseHelper dataHelper = new DatabaseHelper();
DataRow dRow;
private void FindKey_Load(object sender, EventArgs e)
{
string sql = "SELECT * FROM Key";
string name = "AllKeys";
da = dataHelper.getAdapter(sql, name);
ds = dataHelper.getDataSet();
refreshList(1);
fillcboProvider();
fillcboProduct();
}
...
...
namespace Keystore
{
class DatabaseHelper
{
System.Data.SqlClient.SqlConnection con;
DataSet ds;
System.Data.SqlClient.SqlDataAdapter da;
public DatabaseHelper()
{
con = new System.Data.SqlClient.SqlConnection();
con.ConnectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\KeyStore.mdf;Integrated Security=True;User Instance=True";
ds = new DataSet();
}
public System.Data.SqlClient.SqlDataAdapter getAdapter(String sql, String name)
{
da = new System.Data.SqlClient.SqlDataAdapter(sql, con);
da.Fill(ds, name); *** Code 'finishes' the load after here ***
return da;
}
...
The code seems to be ending the "load" phase at the marked line (marked with ***)
theres no error message, the program doesn't hang or anything... It just seems to be stopping the load there and displaying my form without any data in it.
Has anyone had this problem before? Can anyone help me fix it?
Also, can anyone tell me if the MSDN forums are down? i can't get to them for some reason...
Cheers in advance!
|
|
|
|
|
I already replied but got an error.
I think you are utilizing your DataAdapter many times. The first time you are probably going to the end (first fill). If you call fill again, you will have no data.
Don't return your DataAdapter. Use only the DataSet.
|
|
|
|
|
Dont i need to call da.fill for each new query?
ie, if i want to have a query that gets all the data in a table i would name it and call it by its name.
or if i want a query that gets all the companies in the database id name it "companies" or something
etc etc.
|
|
|
|
|
Well, the way I see it, you created a dataapadter setting is query.
So, calling fill will execute it... and calling fill again will do nothing.
Is like opening the Reader and, after the end, reading again.
But I am not really sure, as I don't use DataAdapters and DataSets.
|
|
|
|
|
Can someone help me with my project on developing a IT Helpdesk?
my project includes:
- web based helpdesk for the end users.
-we have more then 1000 end users in our company.
-the helpdesk should enable users to lodge in any query or complain about having problem with their harware, eg, if the printer is not working.
-if users can not login to the system
-forgot their password or wants their password to be resetted and so on.
-they should be able to add their name, Id number, department,email address,date and time. Also there should be a column for official use only in which the IT administrator will fill in their name, the solution of the problem and the date and time it was fixed
-their should be a submit button which sends the copy of the form to the IT administrator. Then the IT administrator will have to fill in the official column and the form will be saved i the system for future refernce.
i am trying to use C# for the first time for this project.
Can someone tell me how to start with this project since this is my first project after i have joined this It department this month.
|
|
|
|
|
Well I would begin by learning C#.
Start by resetting what you think your project is and start writing down guidelines and requirements, things like a 'column where the IT administrator can enter solutions!' is not beneficial to the project. Start laying out logic on paper before you move on to designing a database, forms, picking out a design pattern etc.
As for help from anyone here, you might want to get more involved with your own project and post specific problems about your project as you get to them.
PS if it's web based, try the ASP.NET forum.
|
|
|
|
|
Thanks alot..i have been given gud sites for beginning with my C# learning..its helping me a lot..i ahve started putting things together in my SQL database..just the front end was a bit difficult..
|
|
|
|
|
What have you done to improve your position in the six days since you last asked this ? Have you bought a C# book ? I personally think you need to find another job, your boss is a moron, however, if you're stuck there, you can post this every week until you get fired, or you can roll up your sleeves and start working.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Sorry I didn't recognize the repost, I thought it was familiar...
|
|
|
|
|
*grin* it's hard to remember them all.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
sorry for the repost..when i logged in, it didn't recognise my email address so i had to sign up again and posted my questions for feedback
|
|
|
|
|
monishalata wrote: sorry for the repost..when i logged in, it didn't recognise my email address so i had to sign up again and posted my questions for feedback
No, you are logged in as the same user, I was able to confirm that it was a repost by viewing your posts on your profile. That's how I worked out you posted this 6 days ago. You're either lying, or you really are not very good with computers at all, b/c you didn't create a new account, you logged in to your old one.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
you think u r one smarty pants??? u know everything..if u not interested in helping out then just don't reply on my questions..by the way if people like u r in this forum its better that we don't post any questions..
|
|
|
|
|
monishalata wrote: you think u r one smarty pants??
Well, at least you finally replied.
I think I am what ? A developer ? I know I am, so do the people who pay me.
monishalata wrote: .if u not interested in helping out t
You are a retard. So is your boss. I am giving you the only possible help - what you're asking is idiotic. 'I don't know C#, but I'll ask in a forum and then know how to write a professional system'. If it worked that way, programming would be a minimum wage profession.
monishalata wrote: .by the way if people like u r in this forum its better that we don't post any questions..
What would be good is if people understood that programming is a four year course, you can't learn it from a forum reply, and even after four years, experience is needed. What would be good is if people who had no idea how to code, didn't try to learn all at once, but learned properly, or paid someone else to do it.
When people ask questions that are not idiotic, even if they are very simple, I take a lot of time to help. The morons, well, I help them too, it's just that you don't like it because the sort of help that is reasonable, is not what you want to hear.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Another way to make sure you never get this done, is to not reply to anyone who answers you. What were you hoping, that someone would do the work and post it for you ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
how does this sound, deposit your paid into my bank account or send me a cheque, and I will do it for you. hahaha. Seriously, dude, you can't scatter this sort of post in here, just try to learn the C# step by step first and if you encounter any bricks then ppl in here are willing to hlep you. But now you are asking ppl in here to build a system to you, you won't get anything except humiliated by ppl.
|
|
|
|
|
You can't be serious? You don't know C# at all and you're expected to bang out a complex site like this? Guy, you just asked "how do I build a house" and you've never even seen a hammer let alone nails and a 2x4.
You have absolutely no hope of completing this assignment within a year. Forget the C# language. If you can't work out how the database model is going to work, you can't write a single line of code that's going to mean anything.
|
|
|
|
|
Yeah, I told him that the first time ( 6 days ago )
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
monishalata wrote: Can someone help me with my project on developing a IT Helpdesk?
my project includes:
- web based helpdesk for the end users.
-we have more then 1000 end users in our company.
-the helpdesk should enable users to lodge in any query or complain about having problem with their harware, eg, if the printer is not working.
-if users can not login to the system
-forgot their password or wants their password to be resetted and so on.
-they should be able to add their name, Id number, department,email address,date and time. Also there should be a column for official use only in which the IT administrator will fill in their name, the solution of the problem and the date and time it was fixed
-their should be a submit button which sends the copy of the form to the IT administrator. Then the IT administrator will have to fill in the official column and the form will be saved i the system for future refernce.
i am trying to use C# for the first time for this project.
Can someone tell me how to start with this project since this is my first project after i have joined this It department this month.
Just posting the original message, in case anyone is curious. Sadly, the people who ask us to do all their work for them, first get angry ( check ), then lie ( check ), then delete all their posts. I do hope this guy either quits his job, or has the sense to take our advice, but either way, if he deletes it and people wonder what all the talk was about, here it is.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
monishalata wrote: Can someone tell me how to start with this project since this is my first project after i have joined this It department this month.
Well, you've got some of the specs there, but you haven't got a working design. Obviously, only an idiot would jump in and try and code this thing without doing any real analysis or up front design, so I'd expect you to pull together several use cases, acceptance criteria, functional and technical designs, long before you even think to open a code editor. You have done this haven't you?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I have an asp program I need to print a receipt out from a button. Does anyone know how to print a receipt client side. I can do a crystal report, gridview, etc. It's a hosted app so it needs to be client side.
Thanks.
|
|
|
|
|
ASP doesn't use .NET at all, if you mean ASP.NET, then you want the ASP.NET forum. If you mean ASP, you want the web dev forum.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hello all,
how can i access data from database server which is on web in my
destop window application in crystal report
there is remote access alowed from the server
but when i use it with crystal report 10 logon failed error
it work fine with web app but what to do with desktop
plz help me
|
|
|
|