15,902,731 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 Fahid Zahoor (Top 95 by date)
Fahid Zahoor
7-May-22 5:07am
View
thanks for suggestion but i'm thinking to sync the data from local SQL Server to online mysql db , i want to make a backend service that sync all the new records from local SQL Server to online mysql database using c#.
so please can you tell me which approach you prefer most.
1-Direct Query
2-Using Api
Fahid Zahoor
31-Oct-21 8:54am
View
you dont need to put the barcode function at the Text change event of textbox.
you can set your function at the Enter even of the Textbox , because once the barcode scanning will finish barcode automatically put a hit Enter button.
Fahid Zahoor
29-Oct-21 11:18am
View
i have one more question,
i have 3 textboxes on my screen
1-Product Name (Textbox)
2-Price (Textbox)
3-Barcode (Textbox)
now I want if my focus on the product name but suddenly I scan the barcode then the barcode will be written inside the 3-Barcode Text box.
is it possible if yes then How?
Fahid Zahoor
29-Oct-21 11:14am
View
Thank you so much, man. I have done my problem, now it's working fine. I appreciate your help.
Fahid Zahoor
21-Oct-21 7:55am
View
yes, I like your approach,
I will also set my barcode search start at the leave even of the textbox.
but badly nothing happens.
because I did not set any "terminating character" please can you tell me how to set the terminating character of the barcode scanner?
I'm little bit confused we set the termination caharcers in our barcode device settings or we add terminating character in the barcode No
Fahid Zahoor
27-Apr-20 20:08pm
View
THANKS MAN its help full for me.
Fahid Zahoor
18-Oct-19 14:04pm
View
thanks man for your response now i write my own algorithm when i complete then i also share with you so explain me my algorithm writing process are professional or not.
Fahid Zahoor
17-Oct-19 6:01am
View
some time customer bil amount is 10.04 but we take 10.05 if custome bil is 10.02 then we take only 10.00 can you understand
Fahid Zahoor
12-Jul-19 7:00am
View
Now i disconnect the cash draw from printer and direct attach with computer using USB trigger. please help me now from which command i open cash draw.
Fahid Zahoor
27-Jun-19 6:00am
View
i want to take backup and save as with .back extension in my computer after that i take this file that has .back extension and put into my second PC and then i restore it. i restore just two tables that(i.e Product and Stock) has in a backup file others table data are not effected due to restore this. please help me how can i do this
Fahid Zahoor
20-Mar-19 9:33am
View
i means that
this line of code not working
if (Fotertex.ToString().Length > 19)
{
graphics.DrawString(Fotertex.ToString().Substring(0, 19), myfont, Brushes.Black, new Point(10, startY = startY + 40));
}
Fahid Zahoor
22-Feb-19 10:36am
View
please you tell me how can id display my Report1.rdl in ReportViewer1
Fahid Zahoor
22-Feb-19 10:25am
View
at that moment there is no data source that i bind. i just display "Its first Report" on my rdlc report.
Fahid Zahoor
16-Feb-19 8:33am
View
How can i remove other references from component
Fahid Zahoor
13-Feb-19 15:52pm
View
i i'm also faild to find backup of my database
Fahid Zahoor
6-Feb-19 13:27pm
View
You have any answer about my question
Fahid Zahoor
3-Feb-19 4:05am
View
ok thanks budy you are great
Fahid Zahoor
2-Feb-19 6:18am
View
i don't need SQL Server because i don't want to (shred network version)
Fahid Zahoor
2-Feb-19 6:18am
View
Yes i decide I use SQLExpress(Local database)
Fahid Zahoor
2-Feb-19 1:34am
View
I'm Beginner thats why i face many problems. so i need your help
Fahid Zahoor
1-Feb-19 11:49am
View
please you tell me relevant software libraries i don't know which fills is necessary
Fahid Zahoor
1-Feb-19 11:45am
View
but there is no server install in client computer i want to run application with local db
Fahid Zahoor
1-Feb-19 9:45am
View
yes i understand now
Fahid Zahoor
31-Jan-19 12:46pm
View
i create connection in my App.config file
the connection string is
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionstrings>
<add name="dbx"
connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename='|DataDirectory|\db\RetilShop_POS;Integrated Security=True"
providerName="System.Data.SqlClient"/>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
Fahid Zahoor
31-Jan-19 12:44pm
View
i want to ask an other error that i face when i use localdb for SQL server 2014 Express in my C# Winform application
error message is
"
System.ArgumentException: 'Format of the initialization string does not conform to specification starting at index 35.'
"
Fahid Zahoor
31-Jan-19 12:42pm
View
good its working now
Fahid Zahoor
31-Jan-19 5:35am
View
yes you right i understadn now
Fahid Zahoor
31-Jan-19 5:27am
View
ok i try with this code PrinDocument.Print(); if any problem occur then i will share with you
Fahid Zahoor
31-Jan-19 4:54am
View
please tell me if i have moew the one page then PrinDocument.Print(); is ablicable or Not
Fahid Zahoor
26-Jan-19 18:52pm
View
2nd method is work now. Thanks
Fahid Zahoor
24-Jan-19 12:21pm
View
your method is good please tell me how can i set default printer so, print directly goes to default printer
Fahid Zahoor
21-Jan-19 8:20am
View
i have one crystal report named as CustomerCashRecipet.rpt and i use one crystal report viewer named as crystalReportViewer and i also use one crystalreportDocument i load CustomerCashRecipet report to crystalreportDocument and then i display the crystalreportDocument in my report viewer and then take print please tell me something how can i take directly print of crystalreportDocument using button click
Fahid Zahoor
21-Jan-19 8:14am
View
i use this but it show error message
CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: 'Invalid report file path.'
Fahid Zahoor
1-Jan-19 12:01pm
View
ohhhhhhhhh now what can i do.
its not possible to deploy application without SQL server
Fahid Zahoor
1-Jan-19 11:23am
View
its good idea "
If you don't need multiuser access, then don't use SQL Server: use SqLite, Access, ... single user databases that require no additional installation (other than the DLL files that get added by your install program anyway).
"
i need a single user database but at that time i complete my project and its time to install application on Client. I completed my database using SQL server 2014. please tell me know how can i mange that.
Is it possible to conver SQL server 2014 Database into SqLite if yes. then explain me how can i do this. And one thing Remember i need to update my database after 15 days. so give me best idea what is best for me.
Thanks Alot OriginalGriff
Fahid Zahoor
31-Dec-18 16:12pm
View
WinForms
Fahid Zahoor
31-Dec-18 12:25pm
View
yes yes but i dont found any GotFocus() event in c# please you tell me how can i do this.
Fahid Zahoor
31-Dec-18 10:28am
View
thanks its working but please tell me how can i open on screen key bored when my cursor goes to Tex box on screen key bored automatically open
Fahid Zahoor
28-Dec-18 6:51am
View
ok so plz tell me how can i convert selected color to integer value and then i store this integer value in database
Fahid Zahoor
27-Dec-18 21:17pm
View
Color c = Color.AliceBlue;
int i = c.ToArgb();
c = Color.FromArgb(i);
its good method now I'm using it but one problem i face
I'm using colordialouge for selection of color now please tell me how can i put selected color instead this name 'AliceBlue'.
Or 1).you have any idea how can i convert selected color to its name.
2) you have any idea how can i convert button background color to color name and store this color name in any variable of string data type.
Fahid Zahoor
22-Dec-18 4:07am
View
I used it but now this error occur
System.InvalidCastException: 'Failed to convert parameter value from a DateTimePicker to a DateTime.'
Fahid Zahoor
22-Dec-18 3:57am
View
but please tell me how can i correct it really worried
Fahid Zahoor
22-Dec-18 3:49am
View
ohhh i checked it
if row.Cells[5].Value is not NULL.
it show null value but i set today date
Fahid Zahoor
22-Dec-18 3:45am
View
when i hover the mouse on "expdate"
the value is {1/1/0001 12:00:00 AM}
but i cannot select this value i set today date .
now how can i refine it
Fahid Zahoor
13-Dec-18 13:50pm
View
Win forms
Fahid Zahoor
12-Dec-18 3:12am
View
Thanks
Fahid Zahoor
11-Dec-18 11:47am
View
i use search engine but i did'n find answer that i want
Fahid Zahoor
11-Dec-18 0:47am
View
Its my Table
CREATE TABLE [dbo].[Product_Details](
[PID] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](50) NULL,
[PDescription] [nvarchar](250) NULL,
[Category] [nvarchar](50) NULL,
[Scategory] [nvarchar](50) NULL,
[SScategeory] [nvarchar](50) NULL,
[Brand] [nvarchar](50) NULL,
[GroupName] [nvarchar](50) NULL,
[Vatpercentage] [nvarchar](50) NULL,
[VatState] [nvarchar](50) NULL,
[Ptype] [nvarchar](50) NULL,
[Weight] [nvarchar](50) NULL,
[QtyAlret] [float] NULL,
[Isactiveoffer] [bit] NULL,
[Isexpiryproduct] [bit] NULL,
[PImage] [image] NULL,
CONSTRAINT [PK_Product_Details] PRIMARY KEY CLUSTERED
(
[PID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
=============================================
Its my Store procedure please check it
ALTER procedure [dbo].[USP_Insert_Product_Details]
(@Name nvarchar(50)
,@PDescription nvarchar(250)
,@Category nvarchar(50)
,@Scategory nvarchar(50)
,@SScategeory nvarchar(50)
,@Brand nvarchar(50)
,@GroupName nvarchar(50)
,@Vatpercentage nvarchar(50)
,@VatState nvarchar(50)
,@Ptype nvarchar(50)
,@Weight nvarchar(50)
,@QtyAlret float
,@Isactiveoffer bit
,@Isexpiryproduct bit
,@PImage image)
as
begin
INSERT INTO [dbo].[Product_Details]
([Name]
,[PDescription]
,[Category]
,[Scategory]
,[SScategeory]
,[Brand]
,[GroupName]
,[Vatpercentage]
,[VatState]
,[Ptype]
,[Weight]
,[QtyAlret]
,[Isactiveoffer]
,[Isexpiryproduct]
,[PImage])
VALUES
(@Name
,@PDescription
,@Category
,@Scategory
,@SScategeory
,@Brand
,@GroupName
,@Vatpercentage
,@VatState
,@Ptype
,@Weight
,@QtyAlret
,@Isactiveoffer
,@Isexpiryproduct
,@PImage )
end
Fahid Zahoor
10-Dec-18 13:42pm
View
i follow your code but it give this type of error message
System.Data.SqlClient.SqlException: 'Procedure or function 'USP_Insert_Product_Details' expects parameter '@LogoImage', which was not supplied.'
but i supply this parameter please help me
Fahid Zahoor
1-Dec-18 1:43am
View
ok and in datetime i use 12 Hours or 24 Hours how can i differentiate AM and PM
Fahid Zahoor
30-Nov-18 9:35am
View
and which one is best for sending time in database Datetime picker and Textbox???
Fahid Zahoor
2-Nov-18 5:04am
View
Still give error under all the columns, the error is invalid column name
when i use case then this error come when i remove case then error also removed automatically me b some problems still occur in case
Any Suggestion
Fahid Zahoor
21-Oct-18 15:48pm
View
i download a file from your given link a new Exe file is appear in my download folder that's name is SSMS-Setup-ENU and the description of fille is "Microsoft SQL Server Management Studio - 18.0 Preview 4"
please do you tell me I download right file or Not?
Fahid Zahoor
20-Oct-18 10:23am
View
I'm using vs 2014 please tell me what is the name of latest version
Fahid Zahoor
15-Oct-18 18:39pm
View
image dimensions is 1920*1200
How can i check the dimensions of Application Form
Fahid Zahoor
8-Oct-18 16:13pm
View
Application is develop in VB not in .Net framework
but its a big project for POS of restaurant and also dial up modem is connect wit VB application.
is it possibility to convert application with complete feature.
Thanks for your response
Fahid Zahoor
19-Sep-18 17:54pm
View
I don't understand whats says google about this. i/m biggenr so you tell me in simple way how can i make this type of application
Fahid Zahoor
16-Sep-18 4:21am
View
ok thanks. MVC 5 is available in community version of vs 2017
Fahid Zahoor
14-Sep-18 15:40pm
View
sorry for that i don't clearly tell you my problems let me Explain my problem again.
when i open any form by clicking on dashboard button and then i minimized the previously open form and try to open new form it doesn't work .but when i close previous form that i open from dashboard then i easily open new form.
But Now i want to open more then one form by minimizing the old form.
Fahid Zahoor
14-Sep-18 5:32am
View
ok thanks i will try
Fahid Zahoor
14-Sep-18 5:31am
View
i have both version but i'm beginner so you suggest me as a beginner which version is best for practices
Fahid Zahoor
12-Sep-18 12:26pm
View
please suggest which version of VS 2015/Vs 2017 is best for MVC 5.
Fahid Zahoor
5-Sep-18 6:06am
View
i try this but it give an error
i use port no 995
failure :sending field
now tell me what can i do
Fahid Zahoor
28-Aug-18 12:37pm
View
but i dont export only datagridview data i also export Some TextBox Data in Report Form as a Dynamic Order as i set
Fahid Zahoor
27-Aug-18 15:43pm
View
But I don't Make a report using Database i print Report without Database. I take Data From List For Report.
Suggest me any tool And Also give me Link for toll for Developer Addition and also provide me Link for Clint Computer
Fahid Zahoor
14-Aug-18 7:32am
View
how we can do the same thing but using (Sum) not Max
i'm using this but it does not return Zero if there is no available Qty is according to productID beacuse there is no stock add in this productId. please tell me how can i do this.
availableQty have int datatype
select
COALESCE(sum([AvailableQty]),0) as'Avil'
from [dbo].[Stock]
group by [ProductID]
having [ProductID]= '2'
Fahid Zahoor
14-Aug-18 7:03am
View
how we can do the same thing but using (Sum) not Max
i'm using this but it does not return Zero if there is no available Qty is find
select
COALESCE(sum([AvailableQty]),0) as'Avil'
from [dbo].[Stock]
group by [ProductID]
having [ProductID]= '2'
Fahid Zahoor
11-Aug-18 6:01am
View
Thanks You solve my paroblem
Fahid Zahoor
9-Aug-18 17:41pm
View
but if i use internet and then do the same tash is it possibal becuse as you said my all computers are connect with server using wires but i can do this without wires beacuse may be one is my computer application that use the same database and other is my andriod app that also used with same database.
Fahid Zahoor
29-Jul-18 11:57am
View
you tell me the solution,i use it in my next project you just explin me how can i do this thanks
Fahid Zahoor
25-Jul-18 11:46am
View
I'm using crystal report viewer for preview the report
Fahid Zahoor
25-Jul-18 8:42am
View
No i am using crystal report not rdlc
Fahid Zahoor
15-Jul-18 6:49am
View
yes i install crystal report but i don't know its runtime version or not.
please you tell me how can i download runtime crystal report.
i'm using latest version of crystal report that sport visual studio 2017
Fahid Zahoor
14-Jul-18 16:21pm
View
yes i very the database connection . my application save and retrive data from database .
Fahid Zahoor
8-Jun-18 3:58am
View
I install crystal report for visual studio 2017.
but when i try to create new report I'm facing This error
"The system cannot find File specified(EXCEPTION From HRESULT 0x80070002) "
please help me how can i solve this Issue.
Fahid Zahoor
18-May-18 12:48pm
View
WPF
Fahid Zahoor
17-May-18 14:22pm
View
its my server name.
CTRLSOFT-ELDHL3\SQLEXPRESS
its my Databse Name.
CNG
Fahid Zahoor
17-May-18 14:19pm
View
i verify already server name and database name is same.
Fahid Zahoor
27-Apr-18 5:27am
View
what is the meaning of 5ed!
Fahid Zahoor
27-Apr-18 5:16am
View
i want when my app is start then set a condition on tic event of clock .my reminder message is display .My reminder message is come from database as i saved my message at the time of set reminder. and i also want to add a button when i click on button the reminder message is removed from sql DB.
please you send me code how i save my reminder message and datetime in database
Fahid Zahoor
27-Apr-18 2:55am
View
ohhh Thank You Sooo Much You solve my problem
Fahid Zahoor
27-Apr-18 2:52am
View
ohh thank you soo much you solve my problem.
Fahid Zahoor
26-Apr-18 13:11pm
View
please mention this error in my coding thanks
Fahid Zahoor
26-Apr-18 7:08am
View
system.sql.sqlclint.sqlexception:Cannot open Backup device.
operating system error. access denied.
Backup database terminating abnormally
Fahid Zahoor
26-Apr-18 7:08am
View
system.sql.sqlclint.sqlexception:Cannot open Backup device.
operating system error. access denied.
Backup database terminating abnormally
Fahid Zahoor
5-Apr-18 13:08pm
View
which datatype i used for 0 or 1 in sql table
Fahid Zahoor
19-Mar-18 13:48pm
View
Thanks It Will Runing.
Fahid Zahoor
18-Mar-18 11:52am
View
System.Data.SqlClient.SqlException: 'Operand type clash: nvarchar is incompatible with image'
This Error is Occur when i using DBNull.Value
Fahid Zahoor
18-Mar-18 2:09am
View
Yes I'm using this. Now Paroblem is that only Date is Shown in GridView But when i take the print 12:00 this Time is also add to all the records...
Fahid Zahoor
17-Mar-18 23:57pm
View
No I use Form Default Close Button In my Application Only Two Form is Create paroblem Which is Dash Bord Form And EmPoly Record Form. When i click the close Button of EmpolyForm DashBord Alos Hide But Application Coding Remain runing.
Fahid Zahoor
17-Mar-18 23:52pm
View
But i need these Records where EmName is Same And any one Date is Same Just Like Any one date is same from StartDate and EndDate.
Fahid Zahoor
17-Mar-18 14:42pm
View
if (NumberOfItemPrintedSoFar <= CustomerDetilsdataGridView.Rows.Count)
{
e.Graphics.DrawString(""+p, new Font("Arial", 12, FontStyle.Bold), Brushes.Black, new Point(23, ysp));
// e.Graphics.DrawString(CustomerDetilsdataGridView.Rows[i].Cells[0].Value.ToString(), new Font("Arial", 16), Brushes.Black, 23, ysp);
e.Graphics.DrawString(CustomerDetilsdataGridView.Rows[i].Cells[1].Value.ToString() , new Font("Arial", 16), Brushes.Black, 120, ysp);
//e.Graphics.DrawString(CustomerDetilsdataGridView.Rows[i].Cells[3].Value.ToString(), new Font("Arial", 16), Brushes.Black, 330, ysp);
e.Graphics.DrawString(CustomerDetilsdataGridView.Rows[i].Cells[4].Value.ToString(), new Font("Arial", 16), Brushes.Black, 440, ysp);
e.Graphics.DrawString(CustomerDetilsdataGridView.Rows[i].Cells[9].Value.ToString(), new Font("Arial", 16), Brushes.Black, 640, ysp);
ysp += 30;
p++;
}
Fahid Zahoor
17-Mar-18 10:52am
View
Yes I'm Using Data GridView
Fahid Zahoor
17-Mar-18 5:22am
View
This error is occuer and ToString underLine By read color line
"Return a string that represent the current object. No over Load for method ToString takes 1 Arguments"
Tell me what i do next???
Fahid Zahoor
17-Mar-18 1:42am
View
Yes
Show More