Neji commented: Great Code :) +1
Jx_Man 987 Nearly a Senior Poster Featured Poster
Welcome To Daniweb rehan :)
voltage control??
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
Welcome To Daniweb Vinod. :)
poguemahone already give the answer to get total records. but if it still redundant use DISTINCT to omitted redundant records.
Welcome To Daniweb Shawn :)
Nice Introduction Robert.
Welcome To Daniweb Friend :)
i suggest to use or operand in query, don't use and.
Welcome To Daniweb Friend ;)
you want it like add item on list box, so just when runtime only?
< %@ 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>
you're welcome.
happy coding and once again careful with the code.
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
give up now
4344
101101
bell
to
charlie angels
-580
set
test
rest
quote
"Zao shang hao!" what kind of language?
what a requirement? and now is Saturday 9 Feb 2008..
ASP with MySql
absolutely RamyMahrous.
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.
Welcome To Danieweb Friend :)
Welcome To Danieweb Friend :)
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.
…site
set
reg
bigger
a plastic glass, tv remote control, aerial for my tv tuner and a some books.
Hi Simon... Welcome To Daniweb :)
hi taino... Welcome To Daniweb :)
Where is Central Pa?
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);
}
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)
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.
Light travels faster than sound. This is why some people appear bright until you hear them speak.
cool.... :)
have an experience is the best teacher for you.
rate
eat
take
abated
-566
Hi Melab, Welcome To Daniweb...:)
personalities books give me a knowledge
She Got Married :'(
Absolutely yes....
Do like playing Basket Ball?