15,898,371 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 sam9787 (Top 47 by date)
sam9787
28-Jan-21 5:27am
View
just example
sam9787
4-Dec-19 3:22am
View
there are multi applications access your gallary and phone book and other things more personal from sms
sam9787
4-Dec-19 3:21am
View
you will get notification to allow application send sms from your mobile , there are no problem in that
sam9787
1-Dec-19 15:15pm
View
the problem is when any one open webservice methods they can add method name only so the error message tell him you missed parameter x then he will add value to x and run, if there are another parameter the error message will tell him you missed parameters y and so on
sam9787
2-Nov-19 9:57am
View
i mean in old version ( api < 23 ) ,,the translation from en to ar not work
sam9787
27-Sep-19 6:19am
View
fill data adapter into dataset
sam9787
1-May-19 2:20am
View
i try that but not work :(
sam9787
23-Apr-19 5:06am
View
thank you
sam9787
23-Apr-19 4:34am
View
my friend i think it will be easy more that , the select statement work fine , but insert dont work
sam9787
20-Feb-19 15:55pm
View
great
sam9787
4-Aug-17 17:13pm
View
great ,,,, i declare as Decimal and it works fine
sam9787
17-Apr-17 14:02pm
View
Thank u :)
sam9787
16-Dec-16 16:37pm
View
thnks alot :)
sam9787
16-Dec-16 16:20pm
View
how can i increase the limit more than 160 char ?
sam9787
16-Dec-16 15:24pm
View
how ?
sam9787
20-Oct-16 14:58pm
View
yes i tried all these steps
and i have no problem with english language
sam9787
7-Oct-16 15:59pm
View
but how can i get all checked values in my checkboxlist ?
something like that but it doesnt work
it is always get 2016
for (int i = 0; i < checkedListTrainingRoom.Items.Count; i++)
if (checkedListTrainingRoom.GetItemChecked(i))
{
label1.Text = (checkedListTrainingRoom.SelectedItem as ComboboxItem).Value.ToString();
}
sam9787
28-May-16 6:19am
View
SaveFileDialog savefile = new SaveFileDialog();
// set a default file name
savefile.FileName = @"C:\Users\samer\Desktop\Files\i.png";
// set filters - this can be done in properties as well
savefile.Filter = "All files (*.*)|*.*";
if (savefile.ShowDialog() == DialogResult.OK)
{
using (StreamWriter sw = new StreamWriter(savefile.FileName))
sw.WriteLine("Hello World!");
}
i used this code and work fine :)
sam9787
28-May-16 6:07am
View
:(i try it many time , but it doesnt work ?
sam9787
28-May-16 5:43am
View
ok it work fine :)
but how can i allow the user to choose the file location to save ?
string remoteUri = @"C:\Users\samer\Desktop\Files\";
string fileName = "i.png", myStringWebResource = null;
// Create a new WebClient instance.
WebClient myWebClient = new WebClient();
// Concatenate the domain with the Web resource filename.
myStringWebResource = remoteUri + fileName;
Console.WriteLine("Downloading File \"{0}\" from \"{1}\" .......\n\n", fileName, myStringWebResource);
// Download the Web resource and save it into the current filesystem folder.
myWebClient.DownloadFile(myStringWebResource, fileName);
Console.WriteLine("Successfully Downloaded File \"{0}\" from \"{1}\"", fileName, myStringWebResource);
Console.WriteLine("\nDownloaded file saved in the following file system folder:\n\t" + Application.StartupPath);
this code save image in startuppath ?
sam9787
28-May-16 5:29am
View
i need windows :)
sam9787
28-May-16 5:25am
View
is this code work in windows application ?
sam9787
28-May-16 5:21am
View
but how can i download this file again on click button ?
sam9787
23-May-16 15:04pm
View
Thanks
sam9787
23-May-16 15:04pm
View
Others not support
sam9787
27-Jan-16 14:34pm
View
how can i use this ?
sam9787
8-Jan-16 15:38pm
View
man
i try to connect this type of sensor to arduino UNO ,
but i need material to connect it , because i think there are wrong in wire that connected to sensor
sam9787
6-Jan-16 11:10am
View
string filePath =Server.MapPath(myrow["UploadFile"].ToString());
HttpResponse res = HttpContext.Current.Response;
res.Clear();
res.AppendHeader("content-disposition", "attachment; filename=" + filePath);
res.ContentType = "application/octet-stream";
res.WriteFile(filePath);
res.Flush();
res.End();
itry this code and work fine but the file language is corrupted ????
sam9787
2-Nov-15 13:45pm
View
no
i dont want people to logout from web site when click Enter Key ....
this is my problem !!!!
sam9787
2-Nov-15 13:44pm
View
man
my problem is when i click Enter key from keyboard the web site logout ...
so how can i disable Enter Key from my site ?
sam9787
19-Oct-15 16:08pm
View
Deleted
please show my family tree here
http://alkhalili-001-site1.mywindowshosting.com/FamilyTree.aspx
sam9787
16-Oct-15 15:30pm
View
how can i call my css for IE in master page ???
sam9787
25-Sep-15 17:20pm
View
thanks you very much :)
sam9787
25-Sep-15 17:14pm
View
ok
sam9787
25-Sep-15 16:47pm
View
MemberId Name ParentId
1 MIKE NULL
2 John 1
3 WILTH 1
4 sam 2
5 malik 2
6 joly 5
I try to use one select statement to get full Joly Name
the result must be ( joly mailk john mike )
I using sql server as database :)
sam9787
16-Jun-15 14:57pm
View
no I try to use that , but with same problem :(
sam9787
31-Aug-14 2:32am
View
please help me ,,, if there are any way to find remote HD space , or use command line
sam9787
31-Aug-14 2:12am
View
sorry
this is the correct code for local host
DriveInfoSystem info = DriveInfo.GetInfo("C:\");
lngFreeSpace = Convert.ToDouble(info.Available);
lngTotalSpace = Convert.ToDouble(info.Total);
lngFreeSpace = ((lngFreeSpace / 1024) / 1024) / 1024;
lngTotalSpace = ((lngTotalSpace / 1024) / 1024) / 1024;
sam9787
31-Aug-14 2:01am
View
hi
i try this code for local host
DriveInfoSystem info = DriveInfo.GetInfo(@"\\10.10.10.10\C:");
lngFreeSpace = Convert.ToDouble(info.Available);
lngTotalSpace = Convert.ToDouble(info.Total);
lngFreeSpace = ((lngFreeSpace / 1024) / 1024) / 1024;
lngTotalSpace = ((lngTotalSpace / 1024) / 1024) / 1024;
sam9787
14-Jul-14 3:12am
View
I try to use this
But i got error
String st="reg add "\\10.10.10.10\a\b_b\c c\d" /f"
sam9787
27-Apr-14 14:30pm
View
thanks but i need to use Run to run the teamviewer program
C:\Program Files (x86)\TeamViewer\Version9\TeamViewer.exe -i 190.12.8.8 --Password test
sam9787
25-Apr-14 12:13pm
View
man ... i don't understand how to use StartInfo class .
i Google it but nothing useful
please help me with code if you can :)
thanks a lot :)
sam9787
25-Apr-14 11:38am
View
what ?
sam9787
11-Apr-14 8:27am
View
i try this code "
bool online = false;
try
{
PrintDocument printDocument = new PrintDocument();
printDocument.PrinterSettings.PrinterName = "192.168.5.2";
online = printDocument.PrinterSettings.IsValid;
}
catch
{
online = false;
}
return online;
sam9787
8-Apr-14 15:58pm
View
please if these all at same table ? how can i do it ?
sam9787
8-Apr-14 13:31pm
View
the table Name Students , it contains columns ( studentName , CourseName , firstexam , secoundexam , finalexam )
so i need to display the studentsName as first column , then CourseName as HeadRow , and under each course calculate the sum of three exams
sam9787
8-Apr-14 13:26pm
View
the input as shown in the table output example ...
i just want the sql statement type and i will change the input later
Show More