Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome To Daniweb rehan :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

voltage control??

Jx_Man 987 Nearly a Senior Poster Featured Poster

OK.
This the project and exe files
Get Startup.zip

see my post 3 days ago. i put an attachment contain file project named Get Startup.Zip

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome To Daniweb Vinod. :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

poguemahone already give the answer to get total records. but if it still redundant use DISTINCT to omitted redundant records.

Jx_Man 987 Nearly a Senior Poster Featured Poster
Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome To Daniweb Shawn :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Nice Introduction Robert.
Welcome To Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

i suggest to use or operand in query, don't use and.

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome To Daniweb Friend ;)

Jx_Man 987 Nearly a Senior Poster Featured Poster

you want it like add item on list box, so just when runtime only?

Jx_Man 987 Nearly a Senior Poster Featured Poster
< %@ Page Language="C#" %> 
< script runat="server">  
   void AlertBtn_Click(object sender, EventArgs e) 
   { 
       string showmessage = "Test Message Box"; 
       string alertScript = "< script language=JavaScript> "; 
       alertScript += "alert('" +showmessage +"');"; 
       alertScript += "< /script" +"> "; 

       if (!IsClientScriptBlockRegistered("alert")) 
           this.RegisterClientScriptBlock("alert", alertScript); 
   } 
< /script>  
< html>  
< head>  
< /head>  
< body>  
   < form runat="server">  
       < asp:Button id="btn" onclick="AlertBtn_Click" 
 runat="server" Text="Button"> < /asp:Button>  
   < /form>  
< /body> 
< /html>
Jx_Man 987 Nearly a Senior Poster Featured Poster

you're welcome.
happy coding and once again careful with the code.

Neji commented: Great Code :) +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

thx for the site jwenting :)

Jx_Man 987 Nearly a Senior Poster Featured Poster
Jx_Man 987 Nearly a Senior Poster Featured Poster
private void button1_Click(object sender, System.EventArgs e)
{
	Form2 jx = new Form2() ;
	jx.Show();
	this.Hide(); 
}

do the same think in form2 to form1

Jx_Man 987 Nearly a Senior Poster Featured Poster

give up now

Jx_Man 987 Nearly a Senior Poster Featured Poster

4344

Jx_Man 987 Nearly a Senior Poster Featured Poster

101101

Jx_Man 987 Nearly a Senior Poster Featured Poster

bell

Jx_Man 987 Nearly a Senior Poster Featured Poster

to

Jx_Man 987 Nearly a Senior Poster Featured Poster

charlie angels

Jx_Man 987 Nearly a Senior Poster Featured Poster

-580

Jx_Man 987 Nearly a Senior Poster Featured Poster

tall

Jx_Man 987 Nearly a Senior Poster Featured Poster

set
test
rest

quote

Jx_Man 987 Nearly a Senior Poster Featured Poster

"Zao shang hao!" what kind of language?

Jx_Man 987 Nearly a Senior Poster Featured Poster
Sawamura commented: nice site +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

what a requirement? and now is Saturday 9 Feb 2008..

Jx_Man 987 Nearly a Senior Poster Featured Poster

ASP with MySql

Jx_Man 987 Nearly a Senior Poster Featured Poster

absolutely RamyMahrous.

Jx_Man 987 Nearly a Senior Poster Featured Poster

Select * from RG_TAB where CMCode = 4 and CMCode = 5

This query not giving me any result but

if u use this clause (and operator) it means two condition must be available. if just one condition only (ex CMCode=4) then this command didn't give result. so CMcode = 4 & CMcode = 5 must be available to get result.

Select * from RG_TAB where CMCode = 4 Or CMCode = 5
is giving me result.

This clause will give result if one of condition available or two condition available. so you don't needed two condition to give a result, one condition can give result.

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome To Danieweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome To Danieweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Try This following Code :

Option Explicit

Private Const No_ERROR = 0

Private Declare Function inet_addr Lib "wsock32.dll" (ByVal s As String) As Long
Private Declare Function SendARP Lib "iphlpapi.dll" (ByVal DestIp As Long, ByVal ScrIP As Long, pMacAddr As Long, PhyAddrLen As Long) As Long
Private Declare Sub CopyMemory Lib "kernel32.dll" Alias "RtlMoveMemory" (dst As Any, src As Any, ByVal bcount As Long)

Private Function GetRemoteMACAddress(ByVal sRemoteIP As String, sRemoteMacAddress As String) As Boolean
    Dim dwRemoteIp As Long
    Dim pMacAddr As Long
    Dim bpMacAddr() As Byte
    Dim PhyAddrLen As Long
    Dim cnt As Long
    Dim tmp As String
    
    dwRemoteIp = inet_addr(sRemoteIP)
    If dwRemoteIp <> 0 Then
        PhyAddrLen = 6
        If SendARP(dwRemoteIp, 0&, pMacAddr, PhyAddrLen) = No_ERROR Then
            If pMacAddr <> 0 And PhyAddrLen <> 0 Then
                ReDim bpMacAddr(0 To PhyAddrLen - 1)
                CopyMemory bpMacAddr(0), pMacAddr, ByVal PhyAddrLen
                For cnt = 0 To PhyAddrLen - 1
                    If bpMacAddr(cnt) = 0 Then
                        tmp = tmp & "00-"
                    Else
                        tmp = tmp & Hex$(bpMacAddr(cnt)) & "-"
                    End If
                Next
                
                If Len(tmp) > 0 Then
                    sRemoteMacAddress = Left$(tmp, Len(tmp) - 1)
                    GetRemoteMACAddress = True
                End If
                
                Exit Function
            Else
                GetRemoteMACAddress = False
            End If
        Else
            GetRemoteMACAddress = False
        End If
    Else
        GetRemoteMACAddress = False
    End If
End Function

Private Sub btnGetMac_Click()
Dim sRemoteMacAddress As String
If Len(txtIpAddress.Text) > 0 Then
    If GetRemoteMACAddress(txtIpAddress.Text, sRemoteMacAddress) Then
        lblMacAddress.Caption = sRemoteMacAddress
    Else
        lblMacAddress.Caption = "(SendARP call failed)"
    End If
End If
End Sub

Actually this code can use as hacking tool, so use this code carefully friend.

Estella commented: What A Wonderful Code :) +1
Naruse commented: Never Know about this before +1
ITKnight commented: i grab this code :) +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

site
set
reg

bigger

Jx_Man 987 Nearly a Senior Poster Featured Poster

a plastic glass, tv remote control, aerial for my tv tuner and a some books.

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi Simon... Welcome To Daniweb :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

hi taino... Welcome To Daniweb :)
Where is Central Pa?

Jx_Man 987 Nearly a Senior Poster Featured Poster
Jx_Man 987 Nearly a Senior Poster Featured Poster

add reference (right click on project name) :
Microsoft Visual Basic.Net Runtime
mscorlib

add this on the top of code.

using System.Diagnostics;
using Microsoft.VisualBasic;

try this following code :

private void button1_Click(object sender, System.EventArgs e)
		{
			Interaction.Shell("C:\\Documents and Settings\\Jerry\\My Documents\\Calck.exe", (AppWinStyle) 2, false, -1);
		}
Jx_Man 987 Nearly a Senior Poster Featured Poster

use this api function estella :

Private Declare Function inet_addr Lib "wsock32.dll" (ByVal s As String) As Long
Private Declare Function SendARP Lib "iphlpapi.dll" (ByVal DestIp As Long, ByVal ScrIP As Long, pMacAddr As Long, PhyAddrLen As Long) As Long
Private Declare Sub CopyMemory Lib "kernel32.dll" Alias "RtlMoveMemory" (dst As Any, src As Any, ByVal bcount As Long)
jonc commented: Fantastic, always wondered how that was done. +1
dnk commented: great +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

hi z3r0_vb...
welcome to daniweb friend...
please don't hijack other post.
make a new thread and give title agree with your problems and describe your problem. many people will give you help :)

happy coding.

Jx_Man 987 Nearly a Senior Poster Featured Poster

Light travels faster than sound. This is why some people appear bright until you hear them speak.

cool.... :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

have an experience is the best teacher for you.

Jx_Man 987 Nearly a Senior Poster Featured Poster

rate
eat
take

abated

Jx_Man 987 Nearly a Senior Poster Featured Poster

-566

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi Melab, Welcome To Daniweb...:)

Jx_Man 987 Nearly a Senior Poster Featured Poster

personalities books give me a knowledge

Jx_Man 987 Nearly a Senior Poster Featured Poster

She Got Married :'(

Jx_Man 987 Nearly a Senior Poster Featured Poster

Absolutely yes....

Do like playing Basket Ball?