449 Posted Topics

Member Avatar for leahrose87

[CODE=vb] Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Form2.Show() End Sub[/CODE] Shows both forms overlapping. So ÜnLoCo gave you the right answer.

Member Avatar for pritesh2010
0
195
Member Avatar for utong_005

You can use the My.Settings to store values. [url]http://msdn.microsoft.com/en-us/library/ms379611(VS.80).aspx[/url]

Member Avatar for hirenpatel53
0
74
Member Avatar for Mr Programmer

[QUOTE]I want when i again run the project, the text in the label should be changed once i click Button1.[/QUOTE] To what should it change? You want to increase to 2?

Member Avatar for Mr Programmer
0
168
Member Avatar for madlan

how about getting rid of the radioButtons at all and use a comboBox instead? then you could add this control behind the textbox.

Member Avatar for GeekByChoiCe
0
73
Member Avatar for GeekByChoiCe

Hey guys... With the old forum style we had few quick links at the right side of the forum just like (search this forum) Right now there is only the "normal search" bar on top which searches in ALL forums. thats pretty unhandy. Also the "Mark forum as read" links …

Member Avatar for jonsca
0
187
Member Avatar for fenhopi

First of all you should attach the textfile that you try to parse and also the code you have already. You can't expect anyone here to do a blind guess based on the given information.

Member Avatar for G_Waddell
0
94
Member Avatar for jonniebl

if you use the Shell command it returns the process ID [CODE=vb]Dim pid As Integer = Shell("C:\Windows\notepad.exe") MsgBox(pid)[/CODE] then you can simply kill the process ... [CODE=vb]Process.GetProcessById(pid).CloseMainWindow()[/CODE] if your second App is hidden then you can use [CODE=vb]Process.GetProcessById(pid).Kill()[/CODE]

Member Avatar for GeekByChoiCe
0
178
Member Avatar for GeekByChoiCe

Hey, I have created a new AppDomain with a unique name. But i do not want to store that name during the whole application runtime. So i ask you guys if it is possible to get that created AppDomain by name back. [CODE=vb] Sub Main() AppDomain.CreateDomain("TestDomain") End Sub [/CODE] so …

Member Avatar for GeekByChoiCe
0
91
Member Avatar for A Huang

Yes, because that is an infinity loop. You create a new class "c" and each time you create a new c you create again a new c...

Member Avatar for GeekByChoiCe
0
151
Member Avatar for GeekByChoiCe

I have created a thread which have to do some xml parsing in its class. The class Inherits from System.Windows.Threading.DispatcherObject while its parsing i wanna get the dispatcher to add the items to a ObservableCollection(Of T) i will add my code here and describe the problem in the comments [CODE=vb] …

0
69
Member Avatar for dxmedia

try this: create a global delegate [CODE=vb]Private Delegate Sub ShowDelegate[/CODE] Then a function [CODE=vb]private sub ShowFrm myForm.show end sub[/CODE] all you have now to do is to replace your crossthread line with [CODE=vb]Me.invoke(new ShowDelegate(Addressof Showfrm))[/CODE]

Member Avatar for Teme64
0
2K
Member Avatar for Merovingian

You actually can do it in different ways... 1. using the WMI class [CODE=vb] Private Sub GetInstalledProducsByWindowsInstaller() 'need Imports System.Management and its needed reference Try Dim moc As ManagementObjectCollection Dim mos As ManagementObjectSearcher Dim mo As ManagementObject mos = New ManagementObjectSearcher("Select * from Win32_Product WHERE Name = 'ThirdPartyApp'") moc = …

Member Avatar for Merovingian
0
116
Member Avatar for petrelutza
Member Avatar for Geos

use the SendMessage API Read here: [url]http://www.pinvoke.net/default.aspx/user32/SendMessage.html[/url]

Member Avatar for GeekByChoiCe
0
47
Member Avatar for Totte94l

[CODE=vb] Private Declare Function ReadProcessMemory1 Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer,ByVal lpBaseAdress As Integer, ByVal lpBuffer() As Byte, ByVal nSize As Integer, ByVal lpNumberOfBytesWritten As Integer) As Integer [/CODE] or [CODE=vb] Public Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByVal lpBuffer As …

Member Avatar for GeekByChoiCe
0
575
Member Avatar for NIKHILA99

you are student? fine! then do what the teacher tells you. what the hell is this behave about? coming and asking for a complete project without showing any effort? why you even study it then?

Member Avatar for nilesh04dream
-3
159
Member Avatar for NamrataC

Add into the Form closing event the following code [CODE=vb] dim frmA as new FormA frmA.show [/CODE]

Member Avatar for NamrataC
0
1K
Member Avatar for frozie

If InputBox() = myStreamReader = True <<< this never will be true (except both is nothing) is there only one password in your pwp.pw file? if so: [CODE=vb] If InputBox("Enter Password") = myStreamReader.readtoend = True Then Me.ShowDialog() Else End End If myStreamReader.close [/CODE]

Member Avatar for GeekByChoiCe
0
82
Member Avatar for frozie

on button click you just calculate the location of the new form: [CODE=vb]newForm.Location= new point((alreadyOpenForm.location.X + alreadyOpenForm.Width),alreadyOpenForm.location.Y) newForm.Show[/CODE] for keep this newForm sticking on the right you add a handler locationChanged for the alreadyOpenForm and set the location of newForm in there.

Member Avatar for evisi
0
143
Member Avatar for Kingcoder210
Member Avatar for hemal1972

ever tried to read the "Help" of this software? It explains everything (even with pictures!)

Member Avatar for pritesh2010
0
141
Member Avatar for Gamra

try this: [CODE=vb] TV.Nodes.Clear() Dim N As String = "[STANDARD_DATA" Dim Nstd As String = "STD" openfile.InitialDirectory = "C:\temp\" openfile.ShowDialog() Dim hoeveel As Integer = 0 Dim level As Integer = 0 Dim fileinhoud As New IO.StreamReader(openfile.FileName) Dim line As String Do line = fileinhoud.ReadLine() If line.StartsWith(N) Then level = …

Member Avatar for GeekByChoiCe
0
102
Member Avatar for pritesh2010

If you would also provide the code where this exception is thrown, then I am sure we could help you.

Member Avatar for GeekByChoiCe
0
204
Member Avatar for pathostamuka

sure, if you show us what you have done so far and where you stick on the code we sure will help you.

Member Avatar for pathostamuka
0
96
Member Avatar for Robintje1

[CODE=VB] Dim ProcessName As String = "explorer" 'without the extension Dim Processes() As System.Diagnostics.Process = System.Diagnostics.Process.GetProcessesByName(ProcessName) If Processes.Count = 0 Then Debug.WriteLine("Process not found.") Return End If Dim id = Processes(0).Id Debug.WriteLine(id)[/CODE]

Member Avatar for GeekByChoiCe
0
2K
Member Avatar for adams161

You could add an "ID" property of type Integer to your peopleClass and then doing a LINQ query like: [CODE=vb] Dim var = (From p as peopleClass in myArray where p.LastName="Smith" Select p.ID) [/CODE] var will then hold all matching ID's.

Member Avatar for adams161
0
125
Member Avatar for Dazamondo

you mean something like [URL="http://mpg-solutions.com/?Downloads:Password_Generator%26nbsp%3B%26nbsp%3B"]THIS[/URL] ?

Member Avatar for Luc001
0
227
Member Avatar for bghodsi
Member Avatar for jephthah

To be honest I liked the old style more. this new color is beating my eyes in the early morning. I'm used to surf this site every morning to slowly wake up but now the "slowly" part fails since I get hit with purple and laaaaarge fonts. Also some of …

Member Avatar for Dani
8
2K
Member Avatar for GeekByChoiCe

Hello guys I just want to make a few suggestions to the new design on Daniweb... Is it possible to also have this "Mark This Forum Read" Link on top of the forum? Right now it is not possible to open threads in a separate tab any more if I …

Member Avatar for lllllIllIlllI
0
156
Member Avatar for jRish24
Member Avatar for TrueCoding

I am not sure what exactly your problem is. the code below shows the messagebox after 1 minute. I guess you didn't set a value to span? [CODE=vb] Private CountDownTime As Date Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStartStop.Click If btnStartStop.Text = "Start" Then CountDownTime …

Member Avatar for TrueCoding
0
181
Member Avatar for IndranilM
Member Avatar for GeekByChoiCe
0
115
Member Avatar for PDB1982

StateList.Items(i).toUpper AbbrevList.Items(i).toUpper Both items are not type of string by default. so if you want to assign these items as string just do: StateList.Items(i).tostring.toUpper AbbrevList.Items(i).tostring.toUpper

Member Avatar for PDB1982
0
136
Member Avatar for ogimy

command.CommandText = "SELECT * FROM [UserName] WHERE TblUserName[COLOR="Red"][B]=[/B][/COLOR]'" & txtUserName.Text & "' AND Pin= '" & txtPin.Text & "';"

Member Avatar for GeekByChoiCe
0
86
Member Avatar for mshdpotato
Member Avatar for ana_eht

[CODE=vb]subtotal = CDbl(txtSubtotal.Text)[/CODE] i dont see anywhere in your code that u actually set this txtSubtotal.Text before using it. [CODE=vb]num = CInt(Label1.Text)[/CODE] that should be CDbl(Label1.Text)

Member Avatar for ana_eht
0
152
Member Avatar for pysdex

[CODE]rand.Next[/CODE] will create a random number between 0 and Int32.MaxValue so if the random number is smaller than 9999 then "array(0).Substring(0, 5)" will fail to make sure it dont fail do [CODE]rand.Next(10000,Int32.MaxValue)[/CODE]

Member Avatar for Renukavani
0
95
Member Avatar for sonia sardana

you can create your own broserdialog to avoid that. but its not possible wth the orginal one.

Member Avatar for ghimangi
0
198
Member Avatar for TechSupportGeek

actually what adatapost posted is exactlly what you need. You save these settings as strings in your registry! to assign these strings to your code you have to cast it into the types. iE: u save the color as "Red" in your registry. this is a string so you have …

Member Avatar for TechSupportGeek
0
244
Member Avatar for horseygal

Since u handle all 3 textboxes textChanged event with the same function and checking all 3 textboxes, you have atleast 2 textboxes where the text is "". converting an empty string to a double will always throw an exception.

Member Avatar for horseygal
0
140
Member Avatar for GeekByChoiCe

I have created a CustonControl (NOT a usercontrol) and defined a DependencyProperty as following: [CODE=vb] Public Shared ReadOnly HelpBrushProperty As DependencyProperty = DependencyProperty.Register("HelpBrush", GetType(String), GetType(ComboBox_with_helpBrush), New UIPropertyMetadata("Select..."), New ValidateValueCallback(AddressOf StringProp_Validate)) Public Property HelpBrush() As String Get Return DirectCast(GetValue(HelpBrushProperty), String) End Get Set(ByVal value As String) SetValue(HelpBrushProperty, value) RaiseEvent PropertyChanged(Me, New …

Member Avatar for GeekByChoiCe
0
124
Member Avatar for JAM1011

[CODE=vb] Dim txt As Object = Me.Controls.Find("Txtdynamic" & intcountt & "_mycntrl", True)(0) If txt Is Nothing Then MsgBox("textbox not found") Else MsgBox(CType(txt, TextBox).Text) End If [/CODE]

Member Avatar for GeekByChoiCe
0
506
Member Avatar for dwisely
Member Avatar for spxChrome

you could set the TextBox1.Tag property to the orginal string. If a user now use the trackbars you display the manipulation in the textbox1. so the orginal string never changes.

Member Avatar for spxChrome
0
105
Member Avatar for cool5_1

And what have you done so far? You might read this before posting: [url]http://www.daniweb.com/forums/announcement58-2.html[/url]

Member Avatar for Nick Evan
0
248
Member Avatar for iammirko
Member Avatar for iammirko
0
117
Member Avatar for ykornx

ok im totally confused here. You have a form (called Form1) that contains one textbox and one tabcontrol. You want to transfer the content of a textbox from another Form to the textbox that is in Form1? please tell us more detailed what exactlly your problem is and what controls …

Member Avatar for ykornx
0
1K
Member Avatar for jlego

i would go with the Tag property. create a class in your project: [CODE=vb] Public Class ComboItem Private m_Tag As String Private m_text As String Public Sub New(ByVal Text As String, ByVal Tag As String) m_text = Text 'normal text m_Tag = Tag ' additional infos End Sub Public ReadOnly …

Member Avatar for jlego
0
148
Member Avatar for dot2303

The End.