15,896,442 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 Pikoh (Top 130 by date)
Pikoh
11-Feb-16 9:22am
View
If you have experienced it, you are the one that is right of course ;) It's just i can't understand why it should be that way, unless MS implementation is poor, what wouldn´t surprise me at all
Pikoh
11-Feb-16 5:10am
View
Ok, it's just a slight difference, i'm not going to argue about it :)
Pikoh
11-Feb-16 4:51am
View
Ibrahim, you've been just told how to apply color to a range of cells, so you can change a Row backcolor.
Pikoh
11-Feb-16 4:51am
View
Well, i don't think it grows a lot. It's just a small jpg added and i think excel would just tile it, but i never tried it.
Pikoh
11-Feb-16 4:22am
View
You're welcome :)
Pikoh
11-Feb-16 4:10am
View
CB_City.SelectedIndex=0;
Pikoh
8-Feb-16 6:43am
View
A simple google search for "face detection algorithm" throws 3.140.000 results. And you didn't find any help?
This
does not help you get you started? Of course is not an easy task at all, so don't expect a simple DetectFace() method...
Pikoh
1-Oct-15 8:00am
View
i'm not saying that this json is not ok, just that it doesn't look good to me.. :)
Pikoh
31-Aug-15 8:26am
View
Well..in the code you just send, you never fill the listbox with data, something like:
listBox1.DataSource = emplist;
this.listBox1.DisplayMember = ... ;
this.listBox1.ValueMember = ... ;
Pikoh
1-Jul-15 9:27am
View
That seems homework. It is an extremely easy question,try to do it yourself and if you got stuck, come here for help.
Pikoh
29-May-15 5:38am
View
That for loop should be this:
for (int index = 0; index < dataGridView1.ColumnCount - 1; index++)
I think OriginalGriff had a typo error :)
Pikoh
6-May-15 7:12am
View
AFAIK, mp3 files are already compressed. You won't find a method to compress an mp3 file with a great advantage in size.
Pikoh
20-Apr-15 6:06am
View
Try adding a '@' before the lati,like:
webBrowser1.Navigate(url + "@" + lati + "," + longi);
Pikoh
25-Feb-15 3:39am
View
There is nothing,as far as i know, like theming for winforms. What AeonHack has done, and you can do it the same way, is inheriting controls, changing their appearance and then using them instead of stardard controls.
Pikoh
25-Feb-15 3:37am
View
That's WPF,he wants a solution for Winforms
Pikoh
24-Feb-15 4:01am
View
See updated solution :)
Pikoh
18-Feb-15 11:58am
View
See my updated solution. I think the problem is how you enter the new date. You probably are inserting the date in a dd/MM/yyyy format,but in your default cultureInfo the expected format is MM/dd/yyyy or even yyyy/MM/dd.
Pikoh
18-Feb-15 9:34am
View
First,to add code it's better you use "Improve Question" and add it to the original question.
That code seems right to me. When does the error rise? When you start editing the field or when you save? if so,improve question and show us the Update code.
Pikoh
18-Feb-15 6:42am
View
Try adding it just before binding the data to the datagrid.
Pikoh
5-Feb-15 3:24am
View
Crystal Reports are free?
Pikoh
3-Feb-15 3:31am
View
So,just to clarify. What you want is to find the name of all the documents opened in, let's say, all instances of Word opened?
Pikoh
2-Feb-15 3:44am
View
May I ask why are you using an Outlook interop instead of SmtpCLient?
Pikoh
30-Jan-15 6:48am
View
Well,then instead of For Each s As String In stringList, use this:
For Each DataRow dr in dt.Tables(0).Rows
string s=dr("eNB_Name").ToString()
If s.EndsWith("J1") Then
textBox1.Text = s
End If
If s.EndsWith("J2") Then
textBox2.Text = s
End If
If s.EndsWith("J3") Then
textBox3.Text = s
End If
If s.EndsWith("K1") Then
textBox4.Text = s
End If
If s.EndsWith("K2") Then
textBox5.Text = s
End If
If s.EndsWith("K3") Then
textBox6.Text = s
End If
Next
Pikoh
30-Jan-15 5:56am
View
Have you tried changing ContentType to application/XLSX?
Pikoh
26-Jan-15 3:46am
View
Don't worry. I've been doing some tests and it seems i'm getting closer. I'll post a solution when i find it. :)
Pikoh
26-Jan-15 3:46am
View
Deleted
Don't worry. I've been doing some tests and it seems i'm getting closer. I'll post a solution when i find it. :)
Pikoh
26-Jan-15 3:05am
View
Thank you for your comment. Yes,using doublebuffering was my first choice, but the problem is that invalidating rows in the RowPrePaint event causes the event to be fired again, and this of course causes the flickering.
Pikoh
19-Dec-14 5:53am
View
See updated solution. Adding the bolded line should do the job.
Pikoh
17-Dec-14 4:37am
View
I know..just trying to satisfy your curiosity :)
Pikoh
17-Dec-14 3:38am
View
In fact i had not tried it. As i told,i always use background workers for this kind of task. But after your comment,i tried it and it works.I have a small sample if you wannt to see it.
Pikoh
4-Dec-14 9:27am
View
Well,options 2 and 3 are just fakes...
Pikoh
25-Nov-14 11:04am
View
Thank you very much. Now i know i've done it the wrong way for years :)
Pikoh
25-Nov-14 10:42am
View
I'm curious. Why RowPrePaint and not CellFormatting? What are the avantages or differeces between them?
Pikoh
20-Nov-14 3:10am
View
Never post your email online,the only thing you will get is spam. You should also improve your question saying what third party dll you are using. With the info you provided is impossible that someone could help you
Pikoh
13-Nov-14 6:48am
View
you're welcome
Pikoh
13-Nov-14 6:05am
View
*Facepalm*
Pikoh
13-Nov-14 6:01am
View
See updated solution
Pikoh
11-Nov-14 3:04am
View
To ensure the file is completely copied,why don't you copy it with another name (e.g. FileCoping.xml) and when the copy is finished,rename it to File.xml?
Pikoh
11-Nov-14 2:58am
View
That's even better :)
Pikoh
10-Nov-14 11:10am
View
See updated solution
Pikoh
10-Nov-14 6:18am
View
So..you are using an external application just to get the time? Why?
Pikoh
7-Nov-14 3:07am
View
Glad it helps you :). Please mark solution as accepted so others looking for the same find it.
Pikoh
6-Nov-14 10:18am
View
Well..you really make me interested in whether this is posible or not and..it really is and it was not as difficult as i thought. I'm coding a sample project and i'll post an article in the Tips/tricks section. When it's finished i'll post it here as a solution :)
Pikoh
6-Nov-14 2:57am
View
Yes,now i understand what you want,that's why i updated my solution with the animated gif part. But i guess you want the other images to be hiden to any other image program,am i right?
Pikoh
5-Nov-14 4:43am
View
So you mean in size? Yes, i'm not a big expert in this technique, but it works as you said using not used bits,so you've got a size limit and probably your original image may lose quality. But as i told you, i'm not an expert :)
Pikoh
5-Nov-14 4:29am
View
limited in what sense?
Pikoh
4-Nov-14 11:45am
View
Well, i know i shouldn't, but sometimes a mistake like this can make you lose a lot of time cause does not throw any error. At least OP made a question and provided source code :)
Pikoh
4-Nov-14 5:16am
View
You're welcome :) If it works please mark the solution as accepted so others with your same problem would know how to solve it
Pikoh
4-Nov-14 4:08am
View
And see updated solution
Pikoh
4-Nov-14 4:03am
View
And by the way,i tried it and it works,so i think yes,it would help :)
Pikoh
4-Nov-14 4:02am
View
Well...i'm not an expert in VB,but it seems in VB Process works slightly different to C#. If you process.Start(ProcesssStartInfo) it seems that the process started does not get attached to the process variable. In the way i suggested,the process get correctly attached.
Pikoh
3-Nov-14 3:51am
View
See updated solution
Pikoh
30-Oct-14 11:04am
View
That's not an easy one. Have a look at Microsoft UI Automation and maybe that could lead you to an answer, but as i told you i think that's not easy and probably it will be slightly different depending on the browser. Sorry i can't help you more
Pikoh
30-Oct-14 8:00am
View
You're welcome :)
Pikoh
30-Oct-14 4:41am
View
If it hangs, probably is in one of your Do While loops. Debug them and see if,for example, your datareader is not moving forward,making HasRows being always true.
Pikoh
28-Oct-14 6:21am
View
Then you should accept one solution, so others with your same problem could know how to solve it :)
Pikoh
28-Oct-14 5:37am
View
I was just about to say the same. I can´t really understand what he is trying to archieve.
Pikoh
28-Oct-14 5:35am
View
Did you tried adding the code George Jonsson and i suggested? If not, I really can't help you,sorry.
Pikoh
28-Oct-14 5:21am
View
And anyway, you should add this code to ensure that the path is created before creating the log file. If you run your code in any system for the first time, it's not going to work unless you manually create that directory.
Pikoh
28-Oct-14 5:19am
View
Well, i'll try what i've told you. If it doesn't work, the only thing i can think of is a permissions issue. Try to change path to "C:\" and see if it works there.
Pikoh
28-Oct-14 5:16am
View
In createLogFile you create the file,but not the directory.
Pikoh
28-Oct-14 5:15am
View
I didn't see it before posting mine. I think you are right. :)
Pikoh
28-Oct-14 4:54am
View
Fived. Simple and elegant.
Pikoh
28-Oct-14 4:53am
View
You are right. I have updated solution :)
Pikoh
22-Oct-14 4:56am
View
See updated solution
Pikoh
21-Oct-14 4:29am
View
CellFormatting event is called for each row in the datagrid. e.RowIndex contains the row number that is being evaluated in that call. You don't have to write nothing in there,just read it to know which row to paint.
Pikoh
15-Oct-14 3:09am
View
try
public delegate bool del(dept d);
Pikoh
14-Oct-14 5:26am
View
That pdf..how do you generate it? Because,as i told you, the problem is that the file is being used by another process,and of course you can´t delete a file that is being used.
Pikoh
14-Oct-14 3:39am
View
I meant explorer.exe (Windows Explorer,don't know how is it called in english,my windows is in spanish), not IExplore ;) What i think is that they are trying to generate the pdf but the process is failing, making the pdf file being blocked by the process trying to generate it. That's why size is 0.
Pikoh
14-Oct-14 3:27am
View
can you move it or delete it from explorer? maybe that file is blocked by another process...
Pikoh
13-Oct-14 5:25am
View
You're welcome :)
Pikoh
13-Oct-14 4:56am
View
They have different signature,so you can just add this
[DllImport("user32.dll")]
static extern IntPtr WindowFromPoint(Point Point);
[DllImport("user32.dll")]
static extern IntPtr WindowFromPoint(int xPoint, int yPoint);
to your app,check what bit OS is it running, and call the method acordingly
Pikoh
13-Oct-14 4:39am
View
You have stated that:
- IntPtr WindowFromPoint(int x, int y) works in 32-bit but fails in 64-bit process.
So try using WindowFromPoint(int x, int y) in 32 bits OS and WindowFromPoint(POINT Point) in 64 bits OS
Pikoh
1-Oct-14 4:28am
View
If it helped you please mark solution as accepted so it could help others having the same problem
Pikoh
1-Oct-14 4:15am
View
did you restart server after following this steps?
Pikoh
1-Oct-14 3:50am
View
Why are you answering a question more than 3 years old?
Pikoh
16-Sep-14 3:30am
View
do you add as "from" email "No-Reply@Test.com" or a real email address? Maybe if "from" email doesn't exists that could make it be flagged as spam
Pikoh
12-Sep-14 4:44am
View
Thank you. And thanks also for letting me know about dotnetfiddle, looks very interesting :)
Pikoh
12-Sep-14 4:44am
View
Deleted
Thank you. And thanks also for letting me know about dotnetfiddle, looks very interesting :)
Pikoh
10-Sep-14 7:52am
View
That error doesn't give us any info. Try to open the application from the server and see what error throws, or follow the error message you just pasted here to see a real error .
Pikoh
9-Sep-14 3:03am
View
First,don't add a comment to give more information about your question. Just improve your original question.
Second, so what you want is consume a web service from your winforms application? if that's your question, yes, you can.
Pikoh
4-Sep-14 3:40am
View
Not enough info. That table,how many rows contains? One or several? And the increment depends on the previous row value or the same row value?
Pikoh
3-Sep-14 11:04am
View
Let's give this answer a five,to compensate the 1 some spiteful has given to you :)
Pikoh
26-Aug-14 8:18am
View
That's by definition,i think it's in ISO 8601
Pikoh
26-Aug-14 8:09am
View
You're welcome. BTW,you accepted solution 2,does that work to you?
Pikoh
25-Aug-14 5:55am
View
http://pdfsharp.com/PDFsharp/index.php?option=com_content&task=view&id=40&Itemid=51
[
^
]
Pikoh
25-Aug-14 5:54am
View
Deleted
a
Pikoh
25-Aug-14 5:54am
View
Deleted
http://pdfsharp.com/PDFsharp/index.php?option=com_content&task=view&id=40&Itemid=51
[
^
]
Pikoh
30-Jul-14 11:12am
View
You're welcome :)
Pikoh
30-Jul-14 10:36am
View
O.k...see my improved solution and try that code,i think that will help you
Pikoh
30-Jul-14 10:18am
View
It's been a long time since i last used ini files...but if i remember well if you pass null in the key value,it should return all the section.
Pikoh
30-Jul-14 10:10am
View
Well,tecnically you database won't be in the internet. Just a webservice,with as many security as required. I can't see another way to do it,maybe using a vpn?
Pikoh
30-Jul-14 9:26am
View
That code won't work Ryan. For it to work refer my solution. The format in parseExact should be "dd/MM/yyy h:mm:ss tt" :)
Pikoh
30-Jul-14 5:59am
View
Just open your project,go to form2, and when you see timerTitle_Tick_Tick just change it to timerTitle_Tick. It's not too difficult.
Pikoh
30-Jul-14 5:43am
View
See my improved solution and try it
Pikoh
30-Jul-14 5:04am
View
Be more informative. What's wrong? Does it raise an error? or it just does nothing?
Pikoh
30-Jul-14 3:49am
View
Another question. You want to search in just one column or in any of them?
Pikoh
30-Jul-14 3:43am
View
Winforms?
Pikoh
30-Jul-14 3:40am
View
Did you tried my solution?
Pikoh
30-Jul-14 3:38am
View
See my improved solution.
Pikoh
30-Jul-14 3:35am
View
Sorry,i thought it was winforms but it's asp.net isn't it?
Pikoh
30-Jul-14 2:49am
View
I've seen your solution. You have a method timerTitle_Tick_Tick. It should be timerTitle_Tick
Pikoh
30-Jul-14 2:47am
View
i guess you haven't added the timerTitle_Tick method. See my answer and copy it.
Pikoh
29-Jul-14 6:46am
View
Well,i don't understand why you don´t like to group things that should be grouped by definition. That said,what is your problem? Radio buttons will behave ok at a form level i suppose.
EDIT:
And BTW,panels are invisible by default,what's the deal using them?
Pikoh
29-Jul-14 6:30am
View
Not really a solution,but an advice. Instead of generating the pdf that way, i'd rather create a report, fill it with the invoice data,and then generate the pdf.
Pikoh
17-Jul-14 10:12am
View
Glad to help you :)
Pikoh
17-Jul-14 9:45am
View
First,instead of pasting code here,click improve question and paste it there so the code shows formatted. Second,your logic seems ok,what error give it to you?
Pikoh
17-Jul-14 9:36am
View
Increment when? How? Are you using clickonce?
Pikoh
15-Jul-14 3:48am
View
Well,i don't know anything that fits your requirements. I think the only scripts i found to show progress bar in ie 7+ are in php,for example
this
Pikoh
14-Jul-14 5:33am
View
try this
stackoeverflow
Pikoh
7-Jul-14 3:00am
View
Please improve your question with your ddl loading code and the ddl selected index changed event. The problem must be in one of those methods
Pikoh
20-Jun-14 3:56am
View
see my improved solution. in the dictionary definition,after string, there should be int. In the frocess of copy/paste got lost
Pikoh
20-Jun-14 3:17am
View
So,let me see if i understand what you wanna do. You want to be able to access a collection of integers by an index?
Pikoh
13-Jun-14 7:33am
View
But why are you opening the file before moving it? That way of course you'll have problems
Pikoh
13-Jun-14 7:30am
View
Deleted
But why are you opening the file before moving it? That way of course you'll have problems
Pikoh
13-Jun-14 3:41am
View
Wrong post? :)
Pikoh
13-Jun-14 3:23am
View
I'm not sure to understand your problem. Do you mean that if your file is opened while the scheduled task is executed it gives you that error? If is that what you mean,that is normal,you can't rename an opened file. If you want in that case to skip that file and go on with the process, wrap the move line in a try/catch.
Pikoh
12-Jun-14 7:39am
View
are the labels text loading correctly? if so,just add labelInput.name==j before labelInput.text=j;
Pikoh
9-Jun-14 11:20am
View
Of course you'll have to embbed all the connectors you need. That will depend on which method you use to deploy your application, e.g with click once is an easy task, refer this http://stackoverflow.com/questions/12042024/how-can-i-package-mysql-data-with-my-clickonce-application
Pikoh
9-Jun-14 11:09am
View
As you've been told,first look at connectionstrings.com. Then you just have to code different classes in your DAL depending in the database selected. It's not as difficult as it seems.
Pikoh
9-Jun-14 4:11am
View
Noone here is going to do your homework. Think about the problem,try to do something and if you got stuck come back with specific questions
Pikoh
5-Jun-14 12:15pm
View
Difficult? You're a genius,i think it's impossible :)
Pikoh
4-Jun-14 7:36am
View
See improved solution
Pikoh
2-Jun-14 9:45am
View
I really can't think a situation where a context menu with so many options that needs a scroll bar is useful. Why don't you organize that context menu in submenus avoiding tha scroll bar?
BTW, here you have a great context menu http://www.codeproject.com/Articles/677074/Enhanced-ContextMenuStrip
Pikoh
23-May-14 3:56am
View
Sorry,didn't notice it was a chekedListBox...so checkedListBox1 is a list of strings. What do you want exactly to add to @keysubject? the index of the checked item? if so,define an int variable before the foreach,use the foreach of all items,ask if item is checked,if so execute query and finally increment variable.
UPDATE:
i'm not too awake as i'd like. use this instead
foreach(int indexChecked in checkedListBox1.CheckedIndices) {
db.Parameters["@keySubject"],indexChecked);
}
Pikoh
23-May-14 3:35am
View
Then the only solution i can think of is the one DamithSL told use..use a timer to write the log every x minutes so you can more or less guess when was it closed.
Pikoh
23-May-14 3:30am
View
you can't convert item to int. Someone told you up,use int.Parse(item.value).
Pikoh
20-May-14 7:55am
View
I believe that's by design,when you maximize a child windows in MDI app its title bar becomes the app title bar. Have you considered using a label on top of your mdi child to display the title?
Pikoh
5-Feb-14 6:40am
View
well..just use a string variable (string pattern="AB/0000/0/0") and replace all occurences of this.textbox1.text with pattern. Textbox was just to try it,but the logic is valid.
Pikoh
5-Feb-14 6:03am
View
It's working..but i forgot to initialize the textbox with "AB/2014/2/1" for example,or even "AB/0000/0/0". If it's empty it doesn't work
Show More