16,013,082 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 Tobias Wälde (Top 21 by date)
Tobias Wälde
11-Oct-16 12:13pm
View
thanks, but the other solution is better and works with variable length...
Tobias Wälde
11-Oct-16 12:11pm
View
thanks a lot, it works perfectly now
Tobias Wälde
1-Oct-16 18:17pm
View
thanks, helpful answer, but unfortunatel i can't develop in wpf, maybe i will try a tutorial of buy a book :D
Tobias Wälde
30-Sep-16 11:05am
View
thanks, very helpful
Tobias Wälde
30-Sep-16 6:42am
View
thanks, but it doesn't remove this annoying white bar on the top...
Tobias Wälde
30-Sep-16 6:41am
View
thanks, moving the form is no problem
but i want to keep the original windows border to have the shadow around the form
Tobias Wälde
30-Sep-16 6:40am
View
thanks, i'm going to try this
Tobias Wälde
29-Sep-16 16:28pm
View
thanks for your fast answer.
first, i have tried every formborderstyle and creating own borders...
then, fixed windows are useless in my project.
thanks anyway
Tobias Wälde
29-Sep-16 16:24pm
View
first, thanks for your fast answer.
this bar is very very annoying, because i want to add an icon and change the backcolor-property...
is there any possibility to draw a panel or sth like this over this bar?
Tobias Wälde
29-Jul-16 5:05am
View
with all paddings and margins =0px, and divs with width=50% there's still 3 or 4 pixels space between them and i don't know why
Tobias Wälde
29-Jul-16 3:49am
View
Thanks for your quick answer :D
but that's not the problem...
the problem is the visualisation of the two divs
take a look at my homepage:
http://www.tobiaswaelde.de/
then try resizing or open the page on your mobile...
Tobias Wälde
8-May-16 6:38am
View
Thank you, I'm going to try it.
Tobias Wälde
10-Oct-15 6:50am
View
which *.dll do i need?
Tobias Wälde
3-Oct-15 11:31am
View
thanks a lot :D
Tobias Wälde
2-Oct-15 8:16am
View
ok, which software do i need to use the oledb databases on every computer?
Tobias Wälde
2-Oct-15 6:44am
View
Thanks for your answer. can i use mysql without installing any software?
Tobias Wälde
1-Oct-15 9:55am
View
i tried to paste your code into the timer.
Pro: i get only one messageBox at once
Con: when the remaining time is less then 10 minutes it shows me though a messageBox but when i close the messageBox, the next box comes directly.
thats my problem...
here you can see a screenshot: https://drive.google.com/open?id=0B9TvijbG9geKUU9yMF93Q1dqNEU
Tobias Wälde
1-Oct-15 0:51am
View
Hey,
thanks a lot for your informations. My programm is running nearly perfectly now. But I want to set three notification times. This is my actual code:
[code]
How can I write a function where my program can view a MessageBox when the left time is e.g. at 10 minutes?
I tried this:
TimeSpan zero = new TimeSpan(0, 0, 0, 0, 0);
TimeSpan notification1 = new TimeSpan(0, 0, 10, 0, 0); //10mins
if(dateTimePicker1.Checked)
{
if((dateTimePicker1.Value – DateTime.Now) > zero)
diffs.Add(dateTimePicker1.Value – DateTime.Now);
if((dateTimePicker1.Value – DateTime.Now) < notification1)
MessageBox.Show("Notification: 10 minutes left!");
}
My problem is that I got the MessageBox 10 times per second (cause timer.Intervall = 100) if the left time is lower than 10 minutes.
How can I let the program show me the messagebox only once?
And how can I add a screenshot of my program? Because the GUI is nearly completed and so I can show you what I want to do.
Tobias Wälde
29-Sep-15 11:58am
View
Ok, my program runs perfectly.
But I want to test for the DateTimePickers which are activated.
This is my actual code:
<pre lang="c#">private void timer_Tick(object sender, EventArgs e)
{
DateTime now = DateTime.Now;
TimeSpan[] diffs = new TimeSpan[7];
if(dateTimePicker1.Checked)
diffs[0] = now - dateTimePicker1.Value;
if(dateTimePicker2.Checked)
diffs[1] = now - dateTimePicker2.Value;
if(dateTimePicker3.Checked)
diffs[2] = now - dateTimePicker3.Value;
if(dateTimePicker4.Checked)
diffs[3] = now - dateTimePicker4.Value;
if(dateTimePicker5.Checked)
diffs[4] = now - dateTimePicker5.Value;
if(dateTimePicker6.Checked)
diffs[5] = now - dateTimePicker6.Value;
Array.Sort(diffs);
TimeSpan max = diffs[0];
TimeSpan min = diffs[6];
this.lab_timeLeft.Text = (min.Hours * (-1)).ToString("00") + ":" + (min.Minutes * (-1)).ToString("00") + ":" + (min.Seconds * (-1)).ToString("00");
}</pre>
By the way, how can I paste the code as 'Code' and not as 'Text'?
Tobias Wälde
28-Sep-15 13:05pm
View
Hi,
I tried this:
if([smallest Value of all DateTimePickers] < DateTime.Now)
{
MessageBox.Show("Notification: Time is over!");
}
But I get lots of MessageBoxes...
Tobias Wälde
28-Sep-15 13:02pm
View
Hey,
I tried to test for every DateTimePicker. But I want to show only the smalles difference in the label. So I wrote a lot of if-querys in a timer to show only the smallest difference.
How can I write the if-querys for 7 DateTimePickers?
And in my test-project when the time difference was equal 00:00:00 or less it opened a lot of MessageBoxes:
if([smallest Value of all DateTimePickers] < DateTime.Now)
{
MessageBox.Show("Notification: Time is over!");
}
How can I let the program show the messagebox only once?
How can I say the program that it should show the 2nd smallest difference?
Show More