Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 2,806
» Latest member: BrandonSes
» Forum threads: 856
» Forum posts: 3,643

Full Statistics

Online Users
There are currently 2 online users.
» 0 Member(s) | 1 Guest(s)
Google

Latest Threads
Looking for Adventure? Fi...
Forum: Random Discussion
Last Post: iHOMEz
11-16-2024, 09:18 PM
» Replies: 0
» Views: 508
Prettys Womans in your to...
Forum: Random Discussion
Last Post: iHOMEz
10-30-2024, 07:45 AM
» Replies: 0
» Views: 805
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-26-2024, 10:50 AM
» Replies: 0
» Views: 821
Beautiful Womans from you...
Forum: Random Discussion
Last Post: iHOMEz
10-19-2024, 02:48 PM
» Replies: 0
» Views: 919
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-06-2024, 05:00 PM
» Replies: 0
» Views: 1,080
Womans from your city - V...
Forum: Random Discussion
Last Post: iHOMEz
07-28-2024, 10:26 AM
» Replies: 0
» Views: 1,459
Supreme Сasual Dating - A...
Forum: Random Discussion
Last Post: iHOMEz
06-14-2024, 11:28 AM
» Replies: 0
» Views: 1,880
Beautiful Womans in your ...
Forum: VB.NET
Last Post: iHOMEz
06-09-2024, 09:23 PM
» Replies: 0
» Views: 1,686
Hangman in Rust
Forum: Other
Last Post: brandonio21
02-04-2018, 11:14 AM
» Replies: 2
» Views: 20,697
How to: Search files from...
Forum: VB.NET
Last Post: brandonio21
11-25-2017, 12:55 PM
» Replies: 1
» Views: 16,012

 
  Sockets Programming(Disconnecting from Server)
Posted by: xolara - 04-06-2012, 04:00 AM - Forum: Programming Help - Replies (1)

Okay at the moment i am coding a Server/Client program or rather i am updating an old program of mine to use Server/Client. But i am having abit of a problem with disconnecting from my server (this means if a client closes the program the server crashes)

So lets say ive called my socket on the client for

clientSocket

now what i have tried is

clientSocket.Disconnect ' This will simply Freeze the damn program, But it does disconnect the damn thing

clientSocket.Dispose ' Does the same as above freeze

So what i was wondering is if anyone has a code or a suggestion to do this

Allso since i am using a Client list on my server to see who is online and stuff (To administrate online users)

Once the user has disconnected i need to remove them from the list again. Suggestions for this is appreciated or a code and i'll owe you one <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->

Print this item

  Web Browser History Help
Posted by: Vinwarez - 04-05-2012, 04:52 AM - Forum: Programming Help - Replies (4)

I was trying to find the solution to this problem via Google, but just couldn't find one. So, here is the situation:

I have two window forms. One window form is the browser itself and the other window form is meant for history. The history window form contains ListBox named lb_History and a few buttons; Remove Selected, Bookmark Selected, Clear All, Visit Link.

I managed to create a history, but it would clear itself after opening and closing history window form.

Could anyone help me with this?
Thank you very much, in advance!

Editing reason: Damn grammar. <!-- sTongue --><img src="{SMILIES_PATH}/icon_razz.gif" alt="Tongue" title="Razz" /><!-- sTongue -->

Print this item

  MySql Help
Posted by: Blackrobot - 04-05-2012, 02:35 AM - Forum: Programming Help - Replies (3)

[Image: e7pl-3v-42a0.jpg]
Hello Guys,
i need some help with my programm and sry for my Bad English.
I want to connect the program with a MySQL database
Description to the picture:

1. "Anwesend" mean something like Online:
- The Nickname of T1 -> Add to L1.
- The nickname may only be in the list 1 time.

2. "Abwesend" mean something like Offline:
- The Nickname of T1 -> Remove from L1.

3. "Entfernen" mean something like Remove:
- The selected nickname from L1 -> Remove from L1.

4. "Leeren" mean something like Clear:
- Clear L1.

5. "Go Team!" :
- The first nickname from L1 -> Add to L2 -> and Remove from L1.

6. "Leeren" mean something like Clear:
- Clear L2.

7. "Ersetzen" mean something like Replace:
- The selected nickname from L2 -> Remove from L2 -> Add the frist nickname from L1.

8. Is like 5, 6, 7 only with L3

The File: <!-- m --><a class="postlink" href="http://www.mediafire.com/?zuqa73445x4m3x0">http://www.mediafire.com/?zuqa73445x4m3x0</a><!-- m -->

I hope you can help me, despite my poor English <!-- sSad --><img src="{SMILIES_PATH}/icon_e_sad.gif" alt="Sad" title="Sad" /><!-- sSad --> .

Print this item

  Suggest me an Icon for My Software!!
Posted by: Himansh - 04-04-2012, 11:39 PM - Forum: Off-Topic - Replies (7)

Hi everybody,
I have made a Software called "Text Encryptor"

Can anybody please Suggest me An Icon for my software.


Thanks in Advance
-Himansh

Print this item

  Help with IndexOutOfRange Exception
Posted by: FtDLulz - 04-04-2012, 09:40 PM - Forum: VB.NET (Visual Basic 2010/2008) - Replies (3)

I keep getting this error when trying to run my program and click on something in a listbox.

IndexOutOfRangeException was unhandled Index was outside the bounds of the array.

My Code and the part where it errors (Marked with ><):

Code:
Dim conn As MySqlConnection
    conn = New MySqlConnection("server=db4free.net;port=3306; user id=*******; password=**********; database=*******")

    Dim sqlquery As String = "SELECT * FROM UTGAccess"
    Dim adapter As New MySqlDataAdapter
    Dim data As MySqlDataReader
    Dim command As New MySqlCommand
    conn.Open()
    command.CommandText = sqlquery
    command.Connection = conn
    adapter.SelectCommand = command
    data = command.ExecuteReader
    While data.Read()
        ListBox1.Items.Add(data(1).ToString)
        ListBox3.Items.Add(data(0).ToString)
        Dim writer As New System.IO.StreamWriter(My.Application.Info.DirectoryPath + "/" + data(1).ToString + "=" + data(0).ToString + ".txt", False)
        writer.Write(data(3).ToString + "=" + data(0).ToString)
        writer.Close()
    End While

    data.Close()
    conn.Close()

End Sub

Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
    ListBox3.SelectedIndex = ListBox1.SelectedIndex
    Dim reader As New System.IO.StreamReader(My.Application.Info.DirectoryPath + "/" + ListBox1.SelectedItem.ToString + "=" + ListBox3.SelectedItem.ToString + ".txt")
    Dim splitread() As String = reader.ReadToEnd.Split("=")
    reader.Close()
  >lbl_rank1.Text = "Rank: " + splitread(3).ToString<
    lbl_id1.Text = "ID: " + splitread(0).ToString
End Sub
Note that it doesn't error on lbl_id1.text but it does on lbl_rank1.text. The ID is an INT on the site, while the rank is a VARCHAR. Both are numbers.
I tried rank with an INT too.

In the database:
0 = ID
1 = Username
2 = Password
3 = Rank

Print this item

  Creating Custom Events
Posted by: brandonio21 - 04-03-2012, 12:57 PM - Forum: Code Snippets - Replies (3)

This code snippet was made after hours of work on my project QuickClean

To make a custom event, the first thing you are going to do is declare the event for global usage in the global declarations section of your class. For example,

Code:
Public Class Modes

    Event onModeSwitch()

'Sample method
Public Sub New()
   Msgbox(":D")
End Sub
End Class

Then, in order to call this event, you must use the code snippet RaiseEvent

So, using our same example:
Code:
Public Class Modes

    Event onModeSwitch()

'Sample method
Public Sub New()
   Msgbox(":D")
End Sub

'Sample Method to Raise Event
Public Sub SwitchMode()
  RaiseEvent onModeSwitch()
End Sub
End Class

Now, every time the SwitchMode method is called, the event onModeSwitch will be called. This event can now be accessed in the code viewer on any new instance of this class.

Print this item

  I am Back
Posted by: Vinwarez - 04-03-2012, 05:59 AM - Forum: Off-Topic - Replies (4)

It has been like 2 weeks since I last visited this forums. [Insert Thread Title Here], just saying.

<!-- m --><a class="postlink" href="http://youtu.be/Q2J9F2sJMT4">http://youtu.be/Q2J9F2sJMT4</a><!-- m -->

Print this item

  How to code a print Button?
Posted by: Himansh - 04-01-2012, 02:16 AM - Forum: VB.NET (Visual Basic 2010/2008) - Replies (1)

I am creating an advance notepad in visual basic &
it is almost ready .
But i don't know how to code a print button which prints
the text in richtextbox1.

So can anybody tell me how to do that

Regards,
-Himansh

Print this item

  How to create a change password Button??
Posted by: Himansh - 03-29-2012, 11:45 PM - Forum: VB.NET (Visual Basic 2010/2008) - Replies (8)

I have created an application and have added a login form to it so that If you want to access that application you will first need to enter username and password.
Also i have added a button to main application named "Change Password"
But i dont know how to change the real password of form to the password that user types in "change password" dialog box
So can anybody please help me.

Anyway,
Thanks everybody you hv earlier taken interest in my topics!!!!!!!

Print this item

  Trouble with vb instalation
Posted by: Gamester699 - 03-27-2012, 06:35 AM - Forum: VB.NET (Visual Basic 2010/2008) - Replies (1)

I had to get my computer restored to a factory state. So i tried to reinstall it and this is the error it keeps giving me "Suite Interogation Toolkit Executable has stopped working" i dont know how to fix it. any idea how to fix this

Print this item