|
Thread.Sleep(yourInterval) after each loop for example...
I won’t not use no double negatives.
|
|
|
|
|
Hi
I am creating an Windows Application (C# Visual studio 2005) for Billing System
in that i want to enter the fields(Product name,price,unit price, total) in GridView Control.... Please guide me how to enter the data in Gridview control
Thanks in advance
|
|
|
|
|
Show the grid view with one blank row and then add one by one row if user press enter key in last one column of last row
For validation use onEdit and OnEndEdit events...
Best Regards,
Chetan Patel
|
|
|
|
|
Do you mean you want to bind the grid to some datasource?
If this is the case, then get the source of the data and bind to the grid.
e.g.
Say I have a datatable(dtBilling) as my datasource and my gridview name is dgBilling.
DataTable dtBilling = new DataTable();
dtBilling.Columns.Add("Product Name");
dtBilling.Columns.Add("Price");
dtBilling.Columns.Add("Unit Price");
dtBilling.Columns.Add("Total");
dtBilling.Rows.Add("Prod1", "100", "2.50", "250");
dtBilling.Rows.Add("Prod1", "200", "3.50", "3250");
dtBilling.Rows.Add("Prod1", "300", "4.50", "450");
dtBilling.Rows.Add("Prod1", "400", "5.50", "550");
if (dtBilling.Rows.Count > 0)
{
dgBilling.DataSource = dtBilling;
}
Hope this helps.
But to be honest, the question does not seem to be very clear to me.
Please let me know placidly, if you are looking a solution for this kind of problem or different!
Niladri Biswas
|
|
|
|
|
Hello,
I have registered one com dll and use it in my program.
When i create object of the class in com dll it shows one installation window and takes few times. still it works ok. but i want to shop showing the installation window.
I want to know the reason why this window is shown when it creates an object.
Best Regards,
Chetan Patel
|
|
|
|
|
Im intersted in teaching myself programing. Ive heard that c# is a good place to start. although everything ive read is way over my head. I need a first steping stone. Any help would be greatly appreciated. thank you
|
|
|
|
|
I believe that programming is something that can be learnt by practicing at least at the beginning .
Obviously, you need stuff to learn the new syntaxes, then the best practice to be followed, the way of writing, but above all it's the practice that matters.
Pick up any good book, mainly meant for beginners, practice the exercise probs, solve variety of programs, get a good grasp on the basic features like loop, switch, ternary operator, arrays, files, datastructures(list, dictionaries etc.)etc.,
Try to solve questions in the CodeProject forums and keep on till you feel comfortable in the basic levels.
Then move on to the next level.
Hope you will be comfortable within a time span of 6 months from now.
Niladri Biswas
|
|
|
|
|
Hey
C# is not a bad language to start with but i think vb would be much easier for beginners.
|
|
|
|
|
Blikkies wrote: vb would be much easier
But it leaves them stunted. Avoid the "easy" route.
|
|
|
|
|
hello to all
i m trying to display a windows form inside a web browser placed in a form
how it will possible to me
please help me
thanks
|
|
|
|
|
You can display a form anywhere you like. If you want your form to be limited to show inside your web browser control, write a form that is given screen bounds and does not allow itself to be moved outside them.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Just out of curiosity: What inspired this winform in a browser in a winform design decision?
|
|
|
|
|
hello to all
i m a BS final year student i m having a problem with my project
i m unable to free fall the picture box from top to bottomm of the windows form i m using C#
can please anybody help me ?
|
|
|
|
|
Final year you say ? This is pretty trivial. I'd say that I would not use a picture box for this, but you can. Just set a timer, and modify the top property on the control, so that it moves down the form.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
i have QR barcode decoder.the barcode string will be the computer user password. i need to replace my application with windows login form. how can i do that....any one just guide me please.....
A S E L A
|
|
|
|
|
You want the barcode code that you are finding impossible to make work, to be how people log in to your machine ?
From memory, gina.dll is the file that you need to replace to change how windows logs in. but, you should google for more info. I doubt it can be written in C#, probably only C++
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
actually happening is i got user & password form. so username take from windows. for the password user going to scan the barcode.so the barcode string pass as the password. once password tbx got a string application need to compair password and user name with windows username and password. if match user will able to login.
so how can i pass username and password to the windows and compair with windows password & username...??
i tried so many on google. all only to read user logon username or replace user logon username and password...
any guide for this pleae....
and how can i run the application befor logon....i mean replace with windows logon.
A S E L A
|
|
|
|
|
how can access variables in WebService..throw the object that created from it..
|
|
|
|
|
alex, Post the code here... thats so much!!!
|
|
|
|
|
This must be the stupidest post of the day. If you were talking to Alex in another thread, reply on that thread ( he'll get an email ).
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
No he isn't. This is his first post.
|
|
|
|
|
Rob, I don't feel like posting it here. You're free to go now.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I'm sorry, but the lifeform you know as Alex is not real. It turns out that Alex is an avatar in an adult forum, and you've been spending far too much time there because now you can't distinguish between fiction and reality; for instance women aren't all 38DD.
"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
|
|
|
|
|
You so just smashed my whole belief system...
|
|
|
|
|
Hi,
What would be the best solution for this?
Suppose I have a list of messages.. each message haves date, from, to, etc.
I would like to allow to sort by any of these fields..
Should I make my own MessageCollection class?
or inherite from List<T> ..or ..?
I guess there are a lot of solutions but I would like to know which one is the most used for this problem (which I'm sure it must be a common problem)
Sorry bad english
|
|
|
|