object already loaded
Code: Private Function GetAvailableSocketIndex() As Integer Dim AvailIndex As Integer Dim SocketElement As Variant AvailIndex = 0 ' First check for available sockets...
View Articleplay different sounds from resources using dim string?
I have this code: Code: For i As Integer = 1 To 4 Dim btn As Control = Me.Controls("button" & i.ToString()) bttn.Add(btn) Dim beepx As String =...
View Article[RESOLVED] .SendData doesn't work in Form_Unload
I have this code in Form_Unload of Form2 Code: Private Sub Form_Unload(Cancel As Integer) ClientSocket.SendData "605" & ClientUser Cancel = True 'Let main Form (Form1) close this Form (Form2) End...
View ArticleMsOf07 [RESOLVED] Check for worksheet's name generates Run-time Error 424
Hi, guys. My code is supposed to call subs that update sheets on saving. If sheets exist in the workbook, it works fine. Then I modified it to check if sheet exists and removed Sheet2 and Sheet4....
View ArticleC vs C++
I want to switch to either C or C++, but I don't know which one to choose. I don't care about the difficulty, because I have awesome forum people to help code. ;) I only work with timers, so which one...
View ArticleSending text to a RTB
I just started programming in VB again so I forgot a lot :(. Anyways can anyone tell me how to make a button send text to a RichTextBox? Thanks ahead of time to anyone who replies.
View ArticleProblem: Application only crashes ActiveX Controls and not the Main Form, oh...
Hello again, ThEiMp here!! I am looking at a problem that arises when the end-user clicks on a MenuBar that hasn't got any kind of ContextMenu attached to it when at the point of Complie Time, anyway....
View ArticleFind bytes in big file and get position *URGENT*
Hi all, Please anyone can help me out with sample of code to find sequence of bytes in 1 large file and return the decimal offset where the byte starts in the file? I'm trying to solve this for days...
View ArticleList1 ItemData value does not stay persistentent
In a line of code I put a value in List1.ItemData like this: List1.AddItem RoomName List1.ItemData(List1.NewIndex) = Index Ok, ItemData contains the value 2 at this time This is the only code line that...
View ArticleVS 2010 Run As Service
I have a Windows Forms App made in VB.NET that I would like to run as a service. There is no gui. :) How do I do it?
View ArticleVS 2010 Deleting space after 5 digits
Hello all, I'm new to this forum but wanted to give this a shot. I have a huge text file (if put into word is 182 pgs) that has a space after 5 digits that I need deleted. An example of the data would...
View ArticleVS 2010 [RESOLVED] "Could not find file" - is WebBrowser locking it?
I'm getting a "Could not find file" error when trying to File.Copy an image file which is currently being displayed in a WebBrowser control. The latter is in "design mode" and is being used as a basic...
View Articledefault.aspx has stopped loading implicitly
I'm not sure what I did to cause this but my website homepage won't load unless I specifically type the filename into the root of the website - i.e. www.mywebsite.com/default.aspx works but...
View ArticlePlanning on writing an emal server software, but need some help how it all works
Ok I understand a VERY BASIC system with SMTP for sending and POP3 for receiving, when the situation is that everyone is using the same service provider (said provider provides the SMTP and POP3 for...
View ArticleNeed Help writing to event log.
Hello All, I need help writing to the event log. The problem I ran into is writing to a folder under Applications and Services. Here is the path I want to write to: Code: Event Viewer...
View ArticleVS 2010 [RESOLVED] Mouse input for input box re: Picture Coordinates
Hi all! I'm having an issue and so I turn to the geniuses for help :) What I'm trying to do: I'm trying to have users be able to click a button, which then allows the user to click the top left corner...
View Article[vb 2012] Input single lines of text from text files
i basicly explained wat i need help with in the title the smaller the code the better :) i would also like each input to have it its string attached to it dim bob as string = line1 dim tools as string...
View ArticleDataTable.Select question
For the FilterExpression on the DataTable.Select method can I have more than one filter. Like this: Code: String expression = "[ProductID] = '" + PMTDProductID + "' &&...
View ArticleVS 2010 [RESOLVED] datetimepicker and monthcalendar accepting MM/dd/yyyy
I have a program (for friends and family) where the date is validated using MM/dd/yyyy. I recently found out that it bombs if you're not set in US format, for example Canada system settings for...
View Article