User Profile

Collapse

Profile Sidebar

Collapse
hollywood115
hollywood115
Last Activity: Jul 17 '08, 04:48 AM
Joined: Feb 4 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • hollywood115
    replied to C# - Converting Month to a string.
    in .NET
    yep, that did it. Thanks a lot :)...
    See more | Go to post

    Leave a comment:


  • hollywood115
    started a topic C# - Converting Month to a string.
    in .NET

    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!
    See more | Go to post

  • thanks. that helped :).
    See more | Go to post

    Leave a comment:


  • ASP.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...
    See more | Go to post

  • hollywood115
    started a topic C# - Checking if application is closing
    in .NET

    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.
    See more | Go to post

  • hollywood115
    started a topic C# - Adding values to combo box items.
    in .NET

    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.
    See more | Go to post

  • hollywood115
    replied to need help for question
    in Java
    no... if u at least try i'll help u out, im not gonna do ur assignment for u....
    See more | Go to post

    Leave a comment:


  • hollywood115
    replied to inventory Program
    in Java
    i don't see it either...
    point out to us what u believe to be the method you are talking about....
    See more | Go to post

    Leave a comment:


  • hollywood115
    replied to need help for question
    in Java
    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....
    See more | Go to post

    Leave a comment:


  • hollywood115
    replied to IF Statement in ASP
    Thanks for your help but i have figured out how to do what i needed.
    thanks though! :)
    See more | Go to post

    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.
    See more | Go to post

    Leave a comment:


  • hollywood115
    replied to i need help plzzzzz
    in Java
    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....
    See more | Go to post

    Leave a comment:


  • hollywood115
    replied to Money program
    in Java
    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 :)...
    See more | Go to post

    Leave a comment:


  • hollywood115
    replied to instanceofoperator?
    in Java
    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)
       {
    ...
    See more | Go to post

    Leave a comment:


  • hollywood115
    replied to IF Statement in ASP
    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....
    See more | Go to post

    Leave a comment:


  • hollywood115
    started a topic IF Statement in ASP

    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"...
    See more | Go to post
No activity results to display
Show More
Working...