User Profile

Collapse

Profile Sidebar

Collapse
RobAMacAF
RobAMacAF
Last Activity: Feb 8 '08, 07:31 PM
Joined: Mar 25 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • RobAMacAF
    replied to WebRequest not showing everything....
    in .NET
    Ok, I switched to HttpWebRequest and am having the same exact issue. If I pull up http://digi-wiz.com/uploads/upload/Nouns/ then it shows 3 files....but if I run this code..

    HttpWebRequest HttpWReq = (HttpWebRequest )WebRequest.Cre ate("http://digi-wiz.com/uploads/upload/Nouns/");
    HttpWebResponse HttpWResp = (HttpWebRespons e)HttpWReq.GetR esponse();
    StreamReader strm = new StreamReader(Ht tpWResp.GetResp onseStream(),...
    See more | Go to post

    Leave a comment:


  • RobAMacAF
    replied to WebRequest not showing everything....
    in .NET
    When I searched google to figure out how to do this the first couple tutorials I read all used webclient. I will go look at HttpWebRequest and see what the difference is....
    See more | Go to post

    Leave a comment:


  • RobAMacAF
    started a topic WebRequest not showing everything....
    in .NET

    WebRequest not showing everything....

    I am using this...
    Code:
    string url = "http://digi-wiz.com/uploads/upload/Nouns";
    string result = null;
    
    WebClient client = new WebClient();
    result = client.DownloadString( url );
    MessageBox.Show(result);
    Which is very basic code. It just looks at the files in the http://digi-wiz.com/uploads/upload/Nouns

    Now, if you actually go to that website and view source, or...
    See more | Go to post
    Last edited by Plater; Jan 25 '08, 02:28 PM. Reason: adding [code] tags, tidy

  • RobAMacAF
    started a topic C# Creating a Variable based on a string.
    in .NET

    C# Creating a Variable based on a string.

    How do I go about making a variable based on a string?

    For instance....

    string test = "Bob";
    System.Windows. Forms.TextBox test = new System.Windows. Forms.TextBox() ;


    What I want to do is have it create a TextBox called Bob, because that is what is stored in the string test..

    Any ideas?
    See more | Go to post

  • RobAMacAF
    started a topic C# - GDI+ - Textboxes
    in .NET

    C# - GDI+ - Textboxes

    I am using C# with GDI+ and I am trying to create a textbox without a border. I am using:
    TextBoxRenderer .DrawTextBox(e. Graphics, textBorder, this.Text,
    this.Font, textRectangle, textFlags, TextBoxState.Se lected);
    and it draws a text box but the user can't change the text. It is almost treating this like a label instead of a text box.

    Anyone know what I am doing wrong, or know of a way to make...
    See more | Go to post

  • RobAMacAF
    replied to Very Odd issue with Docking...
    in .NET
    Sorry about bumping this. I have just looked everywhere I could imagine yesterday and usually you all are my last resort. I am not quite sure what to do if you don't know the answer.
    Rob
    See more | Go to post

    Leave a comment:


  • RobAMacAF
    started a topic Very Odd issue with Docking...
    in .NET

    Very Odd issue with Docking...

    I have code that when you drag a child form within 5 of the parent one it docks. Then when you drag it out of the 5 it returns the size of the child form to what it started as....That works GREAT! But when you release the mouse the child form then goes back to the size it was when it was docked. You drag it again and it goes back to the creation size like I wanted until I release the mouse again! GGGAAAH!

    I found a way to make it resize...
    See more | Go to post

  • RobAMacAF
    started a topic System.Windows.Documents namespace in C#
    in .NET

    System.Windows.Documents namespace in C#

    I am trying to write a C# program and it has a statement:

    Floater frmFloat = new Floater();

    It was erroring out because it said it wasn't in the namespace so I did some searching and found that is in the System.Windows. Documents namespace. Now when I try to add using System.Windows. Documents at the top of the program it errors out saying the name space doesn't exist.

    Might anyone know what is going on?...
    See more | Go to post

  • RobAMacAF
    started a topic C# - Restoring GDI+ after alt tab
    in .NET

    C# - Restoring GDI+ after alt tab

    I am using GDI and I am having some issues. When I alt-tab out of the window and go back to it the drawing events don't fire. Which should I be using to do this? You might not be able to understand the cod ebut I am code like this to draw...

    g.DrawString(no Def, fnt, new SolidBrush(Colo r.Black), rect, sf);
    g.FillRectangle ( new SolidBrush(Colo r.Green), rect);

    Any help would be great, Thanks
    Rob
    See more | Go to post

  • Its not from the same domain....Grrrr ...

    Any ideas on what I can use to get this to work? .cgi, php, asp? I need to take a web page and insert 1 line of code into it. When they use the url box to change pages it then inserts the line of code into that page as well.
    See more | Go to post

    Leave a comment:


  • Bwa ha ha! I got it! Well, at least the opening of the web page into the iframe..

    frames['middle'].location.href= frames['title'].document.getEl ementById('fiel d1').value;

    I am still needing to dynamically insert a script into this new page that loads though. I cant have it call the parent function because that page doesn't know about it because it is an outside page, such as google.com, msnbc.com, etc. I want to insert...
    See more | Go to post

    Leave a comment:


  • RobAMacAF
    started a topic Loading Javascript dynamically into a page.

    Loading Javascript dynamically into a page.

    I have a 3 frame window. When you type an address in the top it loads it in the middle. This works well but I need to dynamically load a small javascript function into the page that loads. I didn't know if it was possible to just throw it in there some how or if I have to copy the entire contents of the web site into an array which already holds the script....and if this was the case I am not even sure how to do it. If anyone can help that would...
    See more | Go to post

  • RobAMacAF
    started a topic C# WebBrowser returning HTML Button
    in .NET

    C# WebBrowser returning HTML Button

    I have a web page that I am loading in a form. I want to figure out how to trigger an event in the form based on when the user clicks on the button in the web page. Is this possible? Anyone have any clue on how to do it if it is?

    For my program I am using.
    this.webBrowser 1 = new System.Windows. Forms.WebBrowse r();

    and then using
    {webBrowser1.Na vigate("http://awebpage.com");

    to...
    See more | Go to post

  • Using VBA in Access to shuffle a record set then copy it over to another..

    Here is my prediciment. I have a database with a form. It in the people can pick a main category, then sub category, then it shows a list of questions from that in a sub form. I am trying to find a way to shuffle the questions in the sub form whenever they rechose a new sub category

    [Main Category]
    [Sub Category]

    [SubForm with questions from sub category]



    I was trying to change a...
    See more | Go to post

  • Using VB in Access to shuffle a record set then copy it over to another..

    Here is my prediciment. I have a database with a form. It in the people can pick a main category, then sub category, then it shows a list of questions from that in a sub form. I am trying to find a way to shuffle the questions in the sub form whenever they rechose a new sub category

    [Main Category]
    [Sub Category]

    [SubForm with questions from sub category]



    I was trying to change a...
    See more | Go to post
    Last edited by Killer42; May 3 '07, 11:31 PM. Reason: Please use [CODE]...[/CODE] tags around your code.

  • RobAMacAF
    replied to Using Child Functions from a Parent form
    in .NET
    I was trying to get creative and even tried this in the parent form instead of it being in the child form (with a few modifications)

    void DeleteRoomToolS tripMenuItemCli ck(object sender, EventArgs e)
    {
    foreach (DictionaryEntr y myDE in f.RoomList)
    {
    Rooms foundRoom = (Rooms)f.RoomLi st[Convert.ToInt32 (myDE.Key)];
    if (foundRoom.Show Room)
    {
    ...
    See more | Go to post

    Leave a comment:


  • RobAMacAF
    started a topic Using Child Functions from a Parent form
    in .NET

    Using Child Functions from a Parent form

    I am using:
    private void New_Click(objec t sender, EventArgs e)
    {
    f = new ChildForm();
    f.MdiParent = this;
    f.Text = "Form - " + this.MdiChildre n.Length.ToStri ng();
    f.frm1=this;
    f.Show();
    }

    to create child windows in a MDI container. In the child form I have:

    public void eraseWindow()
    ...
    See more | Go to post

  • RobAMacAF
    replied to Telling if a Button overlaps
    in .NET
    Wow SammyB, thanks SO much. I did a basic search and didn't come with any thing. Not sure how I missed it. That worked WONDERFULLY!

    SammyB For El Presidente!
    See more | Go to post

    Leave a comment:


  • RobAMacAF
    started a topic Telling if a Button overlaps
    in .NET

    Telling if a Button overlaps

    I am making it that when they click the form it adds a button. Sometimes however if they click to close to another button then it makes them overlap. Is there any easy way to tell if the buttons over lap or not? I was thinking of making a function that will run and return true or false if they overlap or not. The buttons are all Size 30,30.

    My initial thinking was take the location of the current button, then subtract the location...
    See more | Go to post

  • RobAMacAF
    replied to Error when opening a second open dialog
    in .NET
    The reason I made it use line count is so it can make the string array the same size of the input file. I couldn't find a way besides looping though it once to figure out how many lines were in the text file.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...