Log ind for at få flere funktioner

  • 01-03-2013 · 21:38 428 visninger 1 svar
  • Denne tråd er over 6 måneder gammel

    Er du sikker på, at du har noget relevant at tilføje?

  • VB textbox til cmd

    Af fille gæst
hej hol

jeg er ved at lave et projekt til min skole hvor vi jeg skal demonstærer lind og ping/lancenty/ddos

jeg er ved at lave et lille program i Visual studio som skal åbne en command promp (windows) og skrive dette:
ping 0.0.0.0(ip) -t -l 65500

det skal være sådant at ipen skal man kunne skrive i en textbox og så klikke på en knap hvorefter der popper en cmd op med de ting i

min nuværende kode virker ikke jeg får fejkoden:
object varible or with block varible not set

her er fejlkoden:
System.NullReferenceException was unhandled
HResult=-2147467261
Message=Object variable or With block variable not set.
Source=Microsoft.VisualBasic
StackTrace:
at Microsoft.VisualBasic.CompilerServices.Symbols.Contain-
er..ctor(Object Instance)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.-
LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
at WindowsApplication1.Form1.Button1_Click(Object sender, EventArgs e) in C:\Users\filledk\AppData\Local\Temporary Projects\WindowsApplication1\Form1.vb:line 11
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMes-
sage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndPr-
oc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(I-
ntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessa-
geW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.Syst-
em.Windows.Forms.UnsafeNativeMethods.IMsoComponentMana-
ger.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMess-
ageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMess-
ageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsForms-
ApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsForms-
ApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsForms-
ApplicationBase.Run(String[] commandLine)
at WindowsApplication1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUser-
sAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Obje-
ct state)
at System.Threading.ExecutionContext.RunInternal(Executio-
nContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:


her kan i se min kode: https://docs.google.com/document/d/...
fille

#1

Gæst
01-03-2013 21:40
jeg tror at fejlen er ved:
sendbox.textbox1()

som i kan se i dokumnetet
Bruger påkrævet
En bruger er påkrævet for at oprette svar på Hardwareonline.dk
Du kan oprette en bruger her eller logge ind her

Log ind for at få flere funktioner