User Profile
Collapse
-
yep, that did it. Thanks a lot :)... -
C# - Converting Month to a string.
I have a DateTime variable and i need to print out the month that is stored in it... but when i use the Month property it gives me a number obviously, is there a method or something that i could call to automatically give me the string representation of that month... (ie. "March" instead of 3). i would like to avoid writing an if statement to get each month..
Thanks! -
hollywood115 started a topic ASP.NET and C# - Calculating 1st and 3rd wednesday of the month on a calendarin .NETASP.NET and C# - Calculating 1st and 3rd wednesday of the month on a calendar
I have a pretty simple thing i have to do... i have a calendar on an aspx page and i have meetings set up every first and 3rd wednesday of each month. theres a button under the calendar that says "Find next meeting" and the calendar is supposed to display the next meeting depending on which date is selected.
Anyone have any idea of a formula or something that could get me on track to finishing this off? im kinda stuck.
Thanks... -
C# - Checking if application is closing
I have a quick question.
I need to write to a file when my form closes... is there a way to make it so an event is fired when a user clicks the X button to close the window?
Thanks in advance. -
C# - Adding values to combo box items.
Hey guys. I have a quick question... its very simple but i cant find a way to do it..
I need to add items to a combobox in a windows form... i need to have a name, and a value to go with it so they're associated with one another.
whats the easiest way i can do this? i thought of creating a new class to handle it, but im sure c# has a way of doing that already....
thanks for your help. -
no... if u at least try i'll help u out, im not gonna do ur assignment for u....Leave a comment:
-
i don't see it either...
point out to us what u believe to be the method you are talking about....Leave a comment:
-
thats not very hard to do at all. once u start it and get it going u'll start putting it together rather easily.
start by getting the integers from the user, once that works u worry about determining if its negative or not....Leave a comment:
-
Thanks for your help but i have figured out how to do what i needed.
thanks though! :)Leave a comment:
-
yea i agree with the guy above.. i dunno why you would wanna name your variables after strings.. it would make things very hard to keep track of.. ud be better of naming it urself or using an array if ur grabbing lots of employees... its a lot easier for u as a programmer to keep track of the variables that way.Leave a comment:
-
lol thats hilarious... i had the exact same assignment a few years back. lol.
i think i still have it.
anyways... if ur still stuck in a little while ill try and help out. its not very hard, u should figure it out in a little bit....Leave a comment:
-
You're problems is that you're not using Math.round.
just replace:
int money = (int)(TOTAL_AMO UNT * 100);
with:
int money = (int)Math.round (TOTAL_AMOUNT * 100);
it should round a lot more accurately now, try it out.
hope it helps :)...Leave a comment:
-
Hey Saumyaranjan.. its quite simple actually.
say you have a method:
public void getObj(Object obj)
{
....
}
instanceOf is useful if u have to do different things in that method depending on whether you get an integer input, a string input, or others. so u could say
Code:public void getObj(Object obj) { if (obj instanceof String) {
Leave a comment:
-
hey, thanks for the tip.
but i really need it to actually make it viewable in all resolutions.
any ideas on making it viewable and not just alerting?
thanks for ur help....Leave a comment:
-
IF Statement in ASP
im having trouble incorporating an if statement into the ASP page.
this is what i have:
<div id="text" runat="server" style="display: none; position: absolute; width: 350; text-align: right">
</div>
so what i need to do is check if the resolution is less than 1024 pixels wide and if it is i need to make that statement:
<div id="text"...
No activity results to display
Show More
Leave a comment: