Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 05-07-2014, 05:55 AM   #11
Fully Optimized
 
BikerEcho's Avatar
 
Join Date: Feb 2011
Location: Denmark
Posts: 4,013
Default Re: Noob needs a little help with C#

It all worked perfectly. Thanks.
__________________

__________________
MOBO: Asus Maximus 6 Hero - GPU: Gigabyte GTX 980ti xtreme - CPU: I7-4770K - PSU: Corsair AX760
RAM: Corsair Vantage 2x4GB - SSD: Samsung 840 EVO 512 + LiteOn LCS-256 - Case: NZXT H440
BikerEcho is offline   Reply With Quote
Old 05-09-2014, 05:04 AM   #12
Fully Optimized
 
BikerEcho's Avatar
 
Join Date: Feb 2011
Location: Denmark
Posts: 4,013
Default Re: Noob needs a little help with C#

I think this will be the last question for my first small program.
I want to put 2 arrays into a label.
I do the following:
labelSchedule.Text = (StartSplitter[0]) + ":" +(StartSplitter[1]) + " - " + (EndSplitter[0]) + ":" + (EndSplitter[1]);

It works, but only problem is that the label show the result like this:

09:
00-
15:
45

it should be like this: 09:00 - 15:45

any ideas?
__________________

__________________
MOBO: Asus Maximus 6 Hero - GPU: Gigabyte GTX 980ti xtreme - CPU: I7-4770K - PSU: Corsair AX760
RAM: Corsair Vantage 2x4GB - SSD: Samsung 840 EVO 512 + LiteOn LCS-256 - Case: NZXT H440
BikerEcho is offline   Reply With Quote
Old 05-09-2014, 09:07 AM   #13
Fully Optimized
 
BikerEcho's Avatar
 
Join Date: Feb 2011
Location: Denmark
Posts: 4,013
Default Re: Noob needs a little help with C#

i figured it out. I appreciate all the help.
I have completed my first program ever.
If you want to try it then here it is: FileSwap.com : Worktime ProcentBar.exe download free
Note.. it's a very limited program, but it was fun to make.
__________________
MOBO: Asus Maximus 6 Hero - GPU: Gigabyte GTX 980ti xtreme - CPU: I7-4770K - PSU: Corsair AX760
RAM: Corsair Vantage 2x4GB - SSD: Samsung 840 EVO 512 + LiteOn LCS-256 - Case: NZXT H440
BikerEcho is offline   Reply With Quote
Old 05-09-2014, 09:22 AM   #14
..m.0,0.m..
Site Team
 
iPwn's Avatar
 
Join Date: May 2010
Location: USA
Posts: 3,870
Default Re: Noob needs a little help with C#

Have source code available?
__________________
Me: You'd think as the dominant species we wouldn't be so effing stupid.
J: We're just intelligent enough to be completely effing stupid.
iPwn is offline   Reply With Quote
Old 05-09-2014, 09:50 AM   #15
Fully Optimized
 
BikerEcho's Avatar
 
Join Date: Feb 2011
Location: Denmark
Posts: 4,013
Default Re: Noob needs a little help with C#

sure. I don't have it currently. It's at my work place. I'll post it Tuesday. (i am free Monday)
It's written in visual studio. So should i just upload the project folder or should i do something else?
__________________
MOBO: Asus Maximus 6 Hero - GPU: Gigabyte GTX 980ti xtreme - CPU: I7-4770K - PSU: Corsair AX760
RAM: Corsair Vantage 2x4GB - SSD: Samsung 840 EVO 512 + LiteOn LCS-256 - Case: NZXT H440
BikerEcho is offline   Reply With Quote
Old 05-09-2014, 09:52 AM   #16
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: Noob needs a little help with C#

Quote:
Originally Posted by BikerEcho View Post
sure. I don't have it currently. It's at my work place. I'll post it Tuesday. (i am free Monday)
It's written in visual studio. So should i just upload the project folder or should i do something else?
You could upload it to somewhere like sourceforge / bitbucket / github too - they provide free open source project hosting, and you could use that to get used to version control also
__________________
Save the whales, feed the hungry, free the mallocs.
berry120 is offline   Reply With Quote
Old 05-09-2014, 09:55 AM   #17
..m.0,0.m..
Site Team
 
iPwn's Avatar
 
Join Date: May 2010
Location: USA
Posts: 3,870
Default Re: Noob needs a little help with C#

Quote:
Originally Posted by BikerEcho View Post
It's at my work place.
As interested as I am in taking a gander, I'm not interested in getting you in trouble. Please be sure you're not breaking any rules or exposing any confidential information by posting that first
__________________
Me: You'd think as the dominant species we wouldn't be so effing stupid.
J: We're just intelligent enough to be completely effing stupid.
iPwn is offline   Reply With Quote
Old 05-09-2014, 11:29 AM   #18
Fully Optimized
 
BikerEcho's Avatar
 
Join Date: Feb 2011
Location: Denmark
Posts: 4,013
Default Re: Noob needs a little help with C#

It's a very simple program. it just calculate how much time en % you have completed on todays job. So no confidential information is included ^^
I have just messed around with it within my brakes.

i'll upload the hole project folder to fileswap.com.
__________________
MOBO: Asus Maximus 6 Hero - GPU: Gigabyte GTX 980ti xtreme - CPU: I7-4770K - PSU: Corsair AX760
RAM: Corsair Vantage 2x4GB - SSD: Samsung 840 EVO 512 + LiteOn LCS-256 - Case: NZXT H440
BikerEcho is offline   Reply With Quote
Old 05-13-2014, 03:05 AM   #19
Fully Optimized
 
BikerEcho's Avatar
 
Join Date: Feb 2011
Location: Denmark
Posts: 4,013
Default Re: Noob needs a little help with C#

Here is the hole project with source code.

FileSwap.com : Worktime ProcentBar.rar download free

---------- Post added at 09:05 AM ---------- Previous post was at 09:02 AM ----------

There is a form called form2. It's never used. i created it by mistake. The form3 is the settings form.
I really should name them ^^
__________________
MOBO: Asus Maximus 6 Hero - GPU: Gigabyte GTX 980ti xtreme - CPU: I7-4770K - PSU: Corsair AX760
RAM: Corsair Vantage 2x4GB - SSD: Samsung 840 EVO 512 + LiteOn LCS-256 - Case: NZXT H440
BikerEcho is offline   Reply With Quote
Old 05-13-2014, 05:58 AM   #20
Fully Optimized
 
BikerEcho's Avatar
 
Join Date: Feb 2011
Location: Denmark
Posts: 4,013
Default Re: Noob needs a little help with C#

good god i am having trouble getting this to work.
How the hell do i call a function i have made in form1 from form3?
I am trying to clean up the code a bit and implement something extra.

Here is the code on Form1

public void Calculate()
{
buttonCalculate.PerformClick();
}

I am trying to use the following code, but that doesn't work.
From1.Calculate();

also tried Calculate();
__________________

__________________
MOBO: Asus Maximus 6 Hero - GPU: Gigabyte GTX 980ti xtreme - CPU: I7-4770K - PSU: Corsair AX760
RAM: Corsair Vantage 2x4GB - SSD: Samsung 840 EVO 512 + LiteOn LCS-256 - Case: NZXT H440
BikerEcho is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 02:42 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0