16,012,468 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 .NET 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 Shaddow>dark (Top 20 by date)
Shaddow>dark
20-Feb-18 8:20am
View
i need to add new column in print save button called des from description ?? got that
Shaddow>dark
20-Feb-18 7:07am
View
what do u need ??
Shaddow>dark
20-Feb-18 5:06am
View
i wanna add a Des in save print button ??? any one understand me ??
Shaddow>dark
15-Feb-18 5:21am
View
Thanks guys a lot im gonna use the debugger and check my code thanks im very thankful for u all
Shaddow>dark
13-Feb-18 7:26am
View
some codes in google doesn't describe my problem its just give a ready code i need to learn from my errors mR F that's it :)
Shaddow>dark
13-Feb-18 7:21am
View
thank you mr CHilll your good man <3
Shaddow>dark
13-Feb-18 7:20am
View
am i noising you ?? :)
i'm here for guys like you help us i mean fresh people in codes and you are here to help i think but thank you for your replay it was pleasure to Talk to you mr F :)
Shaddow>dark
13-Feb-18 3:26am
View
ALTER PROCEDURE [dbo].[insert_dept]
@dept_id INT = NULL,
@debt_name NVARCHAR(50) = NULL,
@debt_emp NUMERIC(18) = NULL
AS
BEGIN
IF NOT EXISTS(SELECT 1 FROM Department WHERE dept_id = @dept_id)
BEGIN
INSERT INTO dbo.Department (dept_id ,debt_name ,debt_emp )
VALUES (@dept_id ,@debt_name ,@debt_emp )
END
ELSE
BEGIN
UPDATE dbo.Department
SET debt_name=@debt_name ,debt_emp=@debt_emp
WHERE dept_id=@dept_id
END
END
Shaddow>dark
13-Feb-18 3:22am
View
Thank You Very Much For Your Answer it's Very useful and your Good Dude i like it all of it Btw i can debugging but my problem is how to find the Error and the problem i'm just new in the company and its the first time i work my study was very different from the work i'm trying the best to know how to code in my company no one helps me i'm on my self it's hard to do such a thing without somebody help u and update you and learn you how to work in every code solve another problem shows up and that's blowing up my mind what should i do ?????
your professional and i'm just like your student
Shaddow>dark
13-Feb-18 1:47am
View
ALTER PROCEDURE [dbo].[insert_emp]
@EMP_NUM numeric(18) = null,
@DEBT_NUM numeric(18) ,
@EMP_NAME varchar(150) =null,
@EMP_P_DATE smalldatetime =null,
@EMP_WORK_DATE smalldatetime =null,
@EMP_SAL NUMERIC(18) =null,
@EMP_DESC VARCHAR(250) =null,
@DEBT_NAME VARCHAR(150) =null
AS
BEGIN
IF NOT EXISTS(SELECT 1 FROM Employee WHERE EMP_NUM = @EMP_NUM )
BEGIN
INSERT INTO DBO.EMPLOYEE ( DEPT_NUM ,EMP_NAME ,EMP_P_DATE ,EMP_WORK_DATE ,EMP_SAL ,EMP_DESC,DEBT_NAME )
VALUES (@DEBT_NUM,@EMP_NAME,@EMP_P_DATE,@EMP_WORK_DATE,@EMP_SAL,@EMP_DESC,@DEBT_NAME )
END
ELSE
BEGIN
UPDATE dbo.Employee
SET emp_num =@EMP_NUM ,dept_num =@DEBT_NUM ,emp_name =@EMP_NAME ,emp_p_date =@EMP_P_DATE ,emp_work_date =@EMP_WORK_DATE ,emp_sal =@EMP_SAL ,emp_desc =@EMP_DESC ,debt_name =@DEBT_NAME
WHERE emp_num =@EMP_NUM
END
Shaddow>dark
13-Feb-18 1:41am
View
ALTER PROCEDURE [dbo].[insert_emp]
@EMP_NUM numeric(18) = null,
@DEBT_NUM numeric(18) ,
@EMP_NAME varchar(150) =null,
@EMP_P_DATE smalldatetime =null,
@EMP_WORK_DATE smalldatetime =null,
@EMP_SAL NUMERIC(18) =null,
@EMP_DESC VARCHAR(250) =null,
@DEBT_NAME VARCHAR(150) =null
AS
BEGIN
IF NOT EXISTS(SELECT 1 FROM Employee WHERE EMP_NUM = @EMP_NUM )
BEGIN
INSERT INTO DBO.EMPLOYEE ( DEPT_NUM ,EMP_NAME ,EMP_P_DATE ,EMP_WORK_DATE ,EMP_SAL ,EMP_DESC,DEBT_NAME )
VALUES (@DEBT_NUM,@EMP_NAME,@EMP_P_DATE,@EMP_WORK_DATE,@EMP_SAL,@EMP_DESC,@DEBT_NAME )
END
ELSE
BEGIN
UPDATE dbo.Employee
SET emp_num =@EMP_NUM ,dept_num =@DEBT_NUM ,emp_name =@EMP_NAME ,emp_p_date =@EMP_P_DATE ,emp_work_date =@EMP_WORK_DATE ,emp_sal =@EMP_SAL ,emp_desc =@EMP_DESC ,debt_name =@DEBT_NAME
WHERE emp_num =@EMP_NUM
END
Shaddow>dark
12-Feb-18 11:06am
View
in your opinion whats the best way to do ???
Shaddow>dark
12-Feb-18 7:54am
View
???????????????????????????????????
Shaddow>dark
12-Feb-18 7:35am
View
Private Sub ComboBox2_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox8.KeyDown, TextBox6.KeyDown, TextBox5.KeyDown, TextBox3.KeyDown, TextBox2.KeyDown, DateTimePicker2.KeyDown, DateTimePicker1.KeyDown, ComboBox2.KeyDown
If (e.KeyCode = Keys.Enter) Then
End If
If (Me.GetNextControl(ActiveControl, True) <> Nothing) Then
e.Handled = True
Me.GetNextControl(ActiveControl, True).Focus()
End If
Shaddow>dark
12-Feb-18 7:35am
View
Error 1 Operator '<>' is not defined for types 'System.Windows.Forms.Control' and 'System.Windows.Forms.Control'.
My new Error after update ???
Shaddow>dark
11-Feb-18 10:38am
View
Are you here for help or what ???\
Shaddow>dark
11-Feb-18 7:39am
View
???
Shaddow>dark
11-Feb-18 7:32am
View
1 _ i wanna make it give me the details when i insert the department id give me all details in the other text boxes >>>>>>>
2 _ i wanna prevent the duplicate in department id when i insert the department id got it ???
Shaddow>dark
11-Feb-18 7:29am
View
in that code i have 3 text boxes and i have button with a grid view and i activated the max number for department text box what im gonna say know that what i want i want when i insert number of the department i want it to give all details about it in the other text boxes and i want to I also want to prevent repetition in
department id ?>>>??>> that's it
Shaddow>dark
11-Feb-18 7:09am
View
TY can u replay the correct solution for this ill be thankful
Show More