449 Posted Topics
Re: [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. | |
Re: You can use the My.Settings to store values. [url]http://msdn.microsoft.com/en-us/library/ms379611(VS.80).aspx[/url] | |
Re: [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? | |
Re: how about getting rid of the radioButtons at all and use a comboBox instead? then you could add this control behind the textbox. | |
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 … | |
Re: 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. | |
Re: 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] | |
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 … | |
Re: 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... | |
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] … | |
Re: 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] | |
Re: 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 = … | |
Re: Turn "AutoSize" off on the Label1. | |
Re: use the SendMessage API Read here: [url]http://www.pinvoke.net/default.aspx/user32/SendMessage.html[/url] | |
Re: [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 … | |
Re: 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? | |
Re: Add into the Form closing event the following code [CODE=vb] dim frmA as new FormA frmA.show [/CODE] | |
Re: 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] | |
Re: 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. | |
Re: The question is somehow weird. you need to use then WMI class to get the disk serial. | |
Re: ever tried to read the "Help" of this software? It explains everything (even with pictures!) | |
Re: 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 = … | |
Re: If you would also provide the code where this exception is thrown, then I am sure we could help you. | |
Re: sure, if you show us what you have done so far and where you stick on the code we sure will help you. | |
Re: [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] | |
Re: 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. | |
Re: you mean something like [URL="http://mpg-solutions.com/?Downloads:Password_Generator%26nbsp%3B%26nbsp%3B"]THIS[/URL] ? | |
Re: 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 … | |
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 … | |
Re: OR you look into TCP/UDP and code it yourself. | |
Re: 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 … | |
Re: please use the forum search. this topic were already answered 100 times. | |
Re: 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 | |
Re: command.CommandText = "SELECT * FROM [UserName] WHERE TblUserName[COLOR="Red"][B]=[/B][/COLOR]'" & txtUserName.Text & "' AND Pin= '" & txtPin.Text & "';" | |
Re: DateTimePicker1.Value holds the selected Date | |
Re: [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) | |
Re: [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] | |
Re: you can create your own broserdialog to avoid that. but its not possible wth the orginal one. | |
Re: 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 … | |
Re: 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. | |
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 … | |
Re: [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] | |
Re: use the FileOK event of the openfiledialog. | |
Re: 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. | |
Re: And what have you done so far? You might read this before posting: [url]http://www.daniweb.com/forums/announcement58-2.html[/url] | |
Re: try InstituteBaseDataSet.acceptchanges after your inserting | |
Re: 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 … | |
Re: 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 … | |
The End.