Search Result

Collapse
10 results in 0.0041 seconds.
Keywords
Members
Tags
method
  •  

  • How to delete a tab page created in one method from another method?

    For example, if I want to do this

    Code:
    private void ProcessLogin()
                {
                    TabPage welcomeTab = new TabPage("Welcome");
                    welcomeTab.BackColor = SystemColors.Control;
    
                    tabControl1.TabPages.Remove(loginTab);
                    tabControl1.TabPages.Add(welcomeTab);
                }
    and my tab control is created in this method...
    See more | Go to post

  • mota
    started a topic Issue while calling a method
    in Java

    Issue while calling a method

    Code:
    public class Sample 
    {
    	public int called()
    	{
    			System.out.println(".....I shouldn't be here.....");
    		return 0;
    		
    	}
    	
        public void caller()
    	{
    		System.out.println("It is supposed to be here -->(" + called() + ")<-- Why isn't it working?\n");
    	}
    }
    
    
    public class Test
    {
    	public static
    ...
    See more | Go to post

  • dajoker2505
    started a topic Form Action
    in PHP

    Form Action

    i am somewhat new to php.

    Code:
    <?php
    
    echo"
    
    <span class='sif'>
    	<form method='post' action='index.php?username='>
    		Username <input type='text' name='username2'><br />
    		Password <input type='password' name='password2'><br />
    		<input class='sub' type='submit' value='Submit'>
    	</form>
    </span>
    
    
    &qu
    ...
    See more | Go to post
    Last edited by Atli; May 13 '10, 09:30 PM. Reason: Added [code] tags.

  • Using class and methods for updating information...

    Hi,Please help me to answer this question.I tried my best and I am not sure if my code is good or useless.
    I am writing a program that calculates projectile motion.
    so the ball is thrown with initial speed ,angle in postion x=0 and v=0
    location and vertical velocity are changing while horizental velocity is constant.DELTA= 0.01 and G=9.8
    the formulas are :
    The formula for updating the y-position is y = y + vy * DELTA...
    See more | Go to post

  • intelrate
    started a topic How to mock protected method in Java
    in Java

    How to mock protected method in Java

    Here is a question.

    I wanted my JUnit tests to be more modular and found how to mock protected methods for that purpose. Briefly speaking, we cannot mock and control calls of protected method with JDK dynamic proxy because protected methods are not in any interface but we can create MockInterface with mock method under control and call it from overridden protected method to achieve our goal.

    The problem I’m trying...
    See more | Go to post

  • wexx
    started a topic Calling C++ class method from C
    in C

    Calling C++ class method from C

    Hello guys,

    Ok here is the issue/roadblock. I am trying to call a method that is a member of a c++ class. I know I need to have a wrapper function to give C a pointer to the member function. I have created a shared header file <header.h> and 2 source files. <cSource.c> and <cppSource.cpp> . Then of course the main file written in c. <cMain.c>

    If anyone could help me get this small example...
    See more | Go to post

  • Steel546
    started a topic Student programmer - need help :(
    in Java

    Student programmer - need help :(

    Let me begin, I am a college student in a basic programming class and I honestly have a tough time learning Java. I'm here because I have a lab I'm trying to do and it's like I have a hard time filling in the blanks because our teachers don't teach us, they just say "go". So, any offering help is much obliged.

    My lab link is located http://www.cse.unt.edu/~ecelikel/spr...ments/lab4.doc. It's a...
    See more | Go to post
    Last edited by JosAH; Mar 10 '09, 06:58 AM. Reason: fixed the [code] ... [/code] tags and removed the bold attribute

  • deepakNagpal
    started a topic SMTP server response: 501 5.5.4 Invalid Address
    in PHP

    SMTP server response: 501 5.5.4 Invalid Address

    hi friends

    i am trying to create a contact feedback form. but when i am running the code it showing some warning:

    Please if anyone can help me.

    PHP Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in C:\Inetpub\wwwr oot\mySite\send _simpleform.php on line 20

    my html code is:

    <html>
    <head>
    <title>Simple Feedback...
    See more | Go to post

  • Paul J. Lay
    Guest started a topic WebClient Class Method=Post

    WebClient Class Method=Post

    I am sending and receiving multipart messages using the WebClient UploadData
    method Method=Post. Everything seems to work well except when the URL
    contains parameters. For example:
    http://www.someURL.com?parm1=data1&parm2=data2. I don't believe these
    paramters are transmitted as part of the URL with the HTTP Post interface. I
    was under the impression that the WebClient class automatically handled
    these parameters...
    See more | Go to post

  • John Davis
    Guest started a topic post the result back to same page??

    post the result back to same page??

    <html>
    <body>
    <Form action="calc.as p" method="post" name="calc">
    <P>NUM1: <input type="text" name="num1">
    <P>NUM2: <input type="text" name="num2">
    <P>RESULT: <input type="text" name="result">
    <P><input type="submit">
    </Form>

    ...
    See more | Go to post
Working...