15,886,963 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by DavidKiryazi (Top 45 by date)
DavidKiryazi
28-Oct-10 20:42pm
View
add some code kerem, will make it easier to find problem
DavidKiryazi
24-Oct-10 21:11pm
View
Have you tried running the stored procedure directly in SQL server? Try this if you haven't and supply the same values that you are sending through the C# app. This way we can determine if its the values you are sending to SQL that are invalid, or the SP is not written correctly.
DavidKiryazi
23-Oct-10 2:51am
View
maybe put some code up so we can see what you're doing. Maybe you're supressing the event somehow?
DavidKiryazi
20-Oct-10 6:28am
View
You can't use the '@' keyword infront of textbox26 unless you have textbox26 declared with the '@' symbol in the first place.
ie. What normally happens is you declare a object such as
TextBox textbox26 = new TextBox()
. This is all well and good. However, it is also possible to delcare it as
TextBox @textbox26 = new TextBox()
. Then you have an actual variable called @textbox26. Can you see the problem? The "@" has special meanings in C# and one of them is that it allows you to use C# keywords as variable or object names. For example, int @if = 5; is valid.
In short, get rid of the "@" symbols in your command string and all will be well.
DavidKiryazi
13-Oct-10 6:55am
View
what?
You enter the word "pen" then you enter the letter "p" and the output is 3 means location of "n"? where did the "n" come into it?
Also, indexers start at 0, so n is actually at index 2 :)
DavidKiryazi
13-Oct-10 2:19am
View
Hi Mohamed
will the invoice template be in .doc format aswell?
DavidKiryazi
11-Oct-10 3:40am
View
What is the problem your having. I have a feeling its to do with the fact that you are debugging. I think you are overwritting your database on each new debug session.
DavidKiryazi
10-Oct-10 22:35pm
View
Depends how you are approaching the problem. Are you using stored procedures, data sets? and what version of C# are you using? This problem gets easier to solve in version 4.0.
DavidKiryazi
10-Oct-10 20:55pm
View
Ali based on this requirement I STRONGLY suggest you look at AutoIT. It will do EXACTLY what you want. It is a free tool and is very powerful for pre-form filling. The help file is also very easy to learn so browsing that you should be able to pick out the commands you need in no longer than 1-2 hours
DavidKiryazi
9-Oct-10 18:07pm
View
I am not sure how to do this in C#, but there is an application called AutoIT (free automation tool) that can do exactly what you want. You might be able to call it from inside C# and run the script using clipboard as shared data repos.
DavidKiryazi
8-Oct-10 23:51pm
View
No probs. I assumed coz u gave examples of numbers you were only interested in numbers, bad for me to make assumptions in sftawre dev :)
DavidKiryazi
30-Sep-10 5:22am
View
Bit hard to understand :S
Are you trying to actually get the user registered in the database, ie. there is a new user and you want them to click on #Quote#Register#Quote# or some other button like that and then send the details into the database?
DavidKiryazi
27-Sep-10 5:44am
View
Vote of 5:
excellent
DavidKiryazi
27-Sep-10 5:40am
View
it would be much easier to help if you only posted the part you think is causing the problem. For example, I know that the constructor for the form is going to call InitializeComponents() and I doubt the problem is in there....
DavidKiryazi
27-Sep-10 5:34am
View
Hi Varun,
Have you tried to access the webservice through internet explorer and seeing what result you get for a particular query?
The error sounds like it has something to do with the way the webservice is being configured and the permissions for its use. I had a similar problem when I was doing webservices, (but dont know much about them and cant remember how i ended up fixing the problem)
DavidKiryazi
24-Sep-10 3:56am
View
I think he means C not C#. I don't know why there is a C# tag if its not related to the C# language and provided framework
DavidKiryazi
23-Sep-10 23:58pm
View
Vote of 5:
Even though its academic, its still good to see someone explaining the concept. I guess its either the OP is lazy (in which case he will get found out sooner or later by a potential employer) or the techer/lecturer did not explain the concepts as clearly as done in this post. Hopefully, its the latter
DavidKiryazi
23-Sep-10 6:20am
View
Richard, did you forget, customers always want software for free - I hope this isn't a new concept ;)
DavidKiryazi
23-Sep-10 6:19am
View
It is good you took time to at least include code, but I have no idea what's going on. The variables in the first code segment don't map to the second. Also, what happens if p1 and p are both created. How do you dispose them in the second segment? Or can it only be one or the other. Also, give us an idea of what the error is.
DavidKiryazi
22-Sep-10 9:29am
View
Hi thabiso007,
Can I suggest you consider researching about some OOP concepts because from reading your code it seems evident you're unsure of the notion of "objects". This is a crucial and fundamental part of any OOP language like C# and without it you will find yourself making these same mistakes over and over just with different classes. :)
DavidKiryazi
22-Sep-10 9:17am
View
lol @ 2)
DavidKiryazi
22-Sep-10 4:50am
View
Good call.
This seems to be a common practice for a lot of the POS software I have used when working in retail. You just attach a USB scanner to the PC and as long as the user has the input focused on a textbox (or other text reading control) it will work.
I am currently designing a new POS system and will be using this method. It is not necessary (from the customer's perspective) to scan in barcodes magically. The users have been using a particular software since 2000 that requires they put focus onto the sale input box and then scan the barcode. Introducing a new method now would only cause confusion, amounting to more costs in training and extra software development that is COMPLETELY unecessary.
DavidKiryazi
22-Sep-10 4:39am
View
Cool! didn't even think about not using an API function to acheive it.. haha
DavidKiryazi
21-Sep-10 2:10am
View
Interesting thoughts. I look forward to seeing hopefully a better response than the one I posted :)
DavidKiryazi
20-Sep-10 5:28am
View
Hi i updated the message to reflect a way to get all the control locations for controls on a particular panell, best I can do :) hope someone else has a better answer
DavidKiryazi
20-Sep-10 3:52am
View
Why are you posting a question to answer your question :)
I think its possible to be done by using Panel class. I am not sure, have never tried it so you should wait for someone else to answer I guess
DavidKiryazi
20-Sep-10 3:32am
View
hi,
This segment of code will generate compiler warning because you are comparing an object to a type of string.
DavidKiryazi
17-Sep-10 3:33am
View
do not double post, there aren't that many regulars on this forum and anyone whos been here for at least a week knows you asked this exact same question a few days ago...
DavidKiryazi
17-Sep-10 1:16am
View
yeah I think your right :) my mistake
DavidKiryazi
15-Sep-10 22:53pm
View
So, how do you plan to compare a single variable to an array of that variable? Or even a plain variable to the datetime variable?
There are (from my calculations) 2 data types, 6 operators = 12 combinations. I don't understand where the other 36 come from? I might be missing something, but I'm sure an example of what your trying to do will help :)
DavidKiryazi
8-Sep-10 7:37am
View
Baji, can I ask why you are not using the native SerialPort class to connect to the comm port that is provided by the .NET2.0 framework?
DavidKiryazi
8-Sep-10 7:36am
View
I don't understand what that last sentance means, can you clarify?
DavidKiryazi
29-Aug-10 7:12am
View
sagar55, can I ask why anyone would ever need a multicolumn combobox?
Why not just format the text in a single column combobox in a way that allows it to appear as its multicolumn?
DavidKiryazi
29-Aug-10 5:41am
View
my appologies anh chu, I misunderstood the initial problem. I will look and see if there is a method to get at the names of the devices. In the mean time, maybe someone else will reply :)
Dave
DavidKiryazi
25-Aug-10 7:51am
View
Toni is the grid static though or can you keep adding rows and columns?
DavidKiryazi
25-Aug-10 7:49am
View
neetika you need to do some maths, the reason you are getting that is because 10 is just a random number i pulled out of my... hat.
A quick fix: Instead of using the values 10 that I used, if you want to put a textbox below another one, add the height of the textbox + 2 pixesl so you get y = textbox.Height + 2; and if you wanna put it next to the other one use x = textBox.Width + 2;
You need to remember that the location property is taken with respect to the top left hand corner of the form (0,0).
DavidKiryazi
25-Aug-10 6:32am
View
tosinp is that MySql a custom namespace?
DavidKiryazi
25-Aug-10 5:42am
View
You need to somehow change the properties that Christian indicated were conflicting. ie you need to dynamically change the location.
You could use member variables initialised to some value eg. x = 10, y = 10 then:
x += 10;
y += 10;
System.Drawing.Point(x, y);
Dave
DavidKiryazi
25-Aug-10 3:20am
View
hehe :)
DavidKiryazi
25-Aug-10 0:47am
View
Reason for my vote of 5
Good debugging technique to try and determine the source of the problem by using a known working application, in this case SQL management studio.
DavidKiryazi
25-Aug-10 0:46am
View
Might help if you post a bit more code :) Are you using the following command somewhere
cmd.ExecuteNonQuery()
DavidKiryazi
25-Aug-10 0:39am
View
To point OP in right direction - see methods of the String class, in particular String.Split might be a possible solution to the problem.
DavidKiryazi
24-Aug-10 9:33am
View
Can you give insight into what data types are being used in the SQL database and if any of the values you are trying to write are keys
DavidKiryazi
24-Aug-10 6:01am
View
Can you give more information for the question like code and if the control is a standard control or one that you have made yourself :)
Dave
DavidKiryazi
24-Aug-10 3:57am
View
thanks for further info :) also sorry for double answer ;)
Show More