Click here to Skip to main content
16,004,944 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Parameter is not valid. Pin
Dave Kreskowiak28-Sep-09 0:55
mveDave Kreskowiak28-Sep-09 0:55 
QuestionControversial Topic of Winsck and TCP/IP Connecting Pin
teknozwizard24-Sep-09 20:17
teknozwizard24-Sep-09 20:17 
AnswerRe: Controversial Topic of Winsck and TCP/IP Connecting Pin
Johan Hakkesteegt24-Sep-09 22:53
Johan Hakkesteegt24-Sep-09 22:53 
AnswerRe: Controversial Topic of Winsck and TCP/IP Connecting Pin
Ian Shlasko25-Sep-09 3:36
Ian Shlasko25-Sep-09 3:36 
AnswerRe: Controversial Topic of Winsck and TCP/IP Connecting Pin
Dave Kreskowiak25-Sep-09 3:39
mveDave Kreskowiak25-Sep-09 3:39 
QuestionRe: Controversial Topic of Winsck and TCP/IP Connecting Pin
teknozwizard25-Sep-09 5:12
teknozwizard25-Sep-09 5:12 
AnswerRe: Controversial Topic of Winsck and TCP/IP Connecting Pin
Ian Shlasko25-Sep-09 5:57
Ian Shlasko25-Sep-09 5:57 
GeneralRe: Controversial Topic of Winsck and TCP/IP Connecting Pin
teknozwizard25-Sep-09 9:23
teknozwizard25-Sep-09 9:23 
Ian,

This is some really great advice! Thanks so much for writing it for me. So far, I'm shocked and surprised that I get more help here than I do on the MSDN official VB forums with Microsoft, heh. I'm definitely checking into these things as of right this moment. Now, I do have a question, do you think it would be more beneficial for me to modulate the your suggestions, or should I privatize them and make them classes? Also, I'm including code below - upgraded I/O module - from Nerdy Mud Clients source code. Should I attempt to just copy/paste and credit that portion of the code to Nerdy, or are your suggestions above suggestions for I/O? I know that sounds like a stupid question and I apologize if it makes me look even more noobish. I know this project is definitely above my level, but I'm fully committed to seeing it through. To me, I feel that it's better to tackle something difficult and learn as much from it as possible than to keep with the smaller projects and learn little by little. Backwards logic, I know.

Option Strict Off
Option Explicit On
Module mdlDataIO
	Dim cmdhistRow As Short
	Dim cmdhistNewPos As Short
	Dim cmdHistTmp As String
	Public arraycmdhist(30) As String
	Public Sub multisend(ByRef txt2send As String)
		frmMain.Winsock1.SendData(txt2send & vbCr)
	End Sub
    Public Sub File2Combo(ByRef sfile As String, _
                          ByRef oList As System.Windows.Forms.ComboBox) _
                          'this has been relocated from frmmain to help modularize and clean up code
        'it should be stable and complete
        Dim fnum As Short
        Dim sTemp As String
        fnum = FreeFile()
        oList.Items.Clear()
        FileOpen(fnum, sfile, OpenMode.Input)
        While Not EOF(fnum)
            sTemp = LineInput(fnum)
            oList.Items.Add(sTemp)
        End While
        FileClose(fnum)
    End Sub
	
	Public Sub cmdHistScrollup() 'stable/finalized
		If CDbl(frmMain.lblSBH.Text) = 30 Then frmMain.lblSBH.Text = CStr(0)
		If arraycmdhist(CInt(frmMain.lblSBH.Text)) = "" Then
            Do While arraycmdhist(CInt(frmMain.lblSBH.Text)) = "" _
            And CDbl(frmMain.lblSBH.Text) < 30
                frmMain.lblSBH.Text = CStr(CDbl(frmMain.lblSBH.Text) + 1)
            Loop
		End If
		frmMain.txtInput.Text = arraycmdhist(CInt(frmMain.lblSBH.Text))
        If CDbl(frmMain.lblSBH.Text) <= 29 Then frmMain.lblSBH.Text = _
        CStr(CDbl(frmMain.lblSBH.Text) + 1)
	End Sub
	
	Public Sub cmdhistscrollDown()
		
		If CDbl(frmMain.lblSBH.Text) = 0 Then frmMain.lblSBH.Text = CStr(30)
		If arraycmdhist(CInt(frmMain.lblSBH.Text)) = "" Then
            Do While arraycmdhist(CInt(frmMain.lblSBH.Text)) = "" _
            And CDbl(frmMain.lblSBH.Text) > 0
                frmMain.lblSBH.Text = CStr(CDbl(frmMain.lblSBH.Text) - 1)
            Loop
		End If
		frmMain.txtInput.Text = arraycmdhist(CInt(frmMain.lblSBH.Text))
        If CDbl(frmMain.lblSBH.Text) >= 1 Then frmMain.lblSBH.Text = _
        CStr(CDbl(frmMain.lblSBH.Text) - 1)
	End Sub
End Module

GeneralRe: Controversial Topic of Winsck and TCP/IP Connecting Pin
Ian Shlasko25-Sep-09 11:08
Ian Shlasko25-Sep-09 11:08 
Questionlistview Pin
paya1pa24-Sep-09 19:39
paya1pa24-Sep-09 19:39 
AnswerRe: listview Pin
Christian Graus24-Sep-09 19:47
protectorChristian Graus24-Sep-09 19:47 
AnswerRe: listview Pin
Paramhans Dubey25-Sep-09 0:22
professionalParamhans Dubey25-Sep-09 0:22 
QuestionDevice Programming Pin
structures8324-Sep-09 19:19
structures8324-Sep-09 19:19 
AnswerRe: Device Programming Pin
Christian Graus24-Sep-09 19:48
protectorChristian Graus24-Sep-09 19:48 
AnswerRe: Device Programming Pin
Dave Kreskowiak25-Sep-09 3:32
mveDave Kreskowiak25-Sep-09 3:32 
QuestionAttached an Exe file in a mail and not able to find at destination pc. Pin
r_mohd24-Sep-09 13:48
r_mohd24-Sep-09 13:48 
AnswerRe: Attached an Exe file in a mail and not able to find at destination pc. Pin
Christian Graus24-Sep-09 13:59
protectorChristian Graus24-Sep-09 13:59 
AnswerRe: Attached an Exe file in a mail and not able to find at destination pc. Pin
Luc Pattyn24-Sep-09 14:57
sitebuilderLuc Pattyn24-Sep-09 14:57 
Question.NET memory encreasing (GetBitmapBits) Pin
Colin Raaijmakers24-Sep-09 9:56
Colin Raaijmakers24-Sep-09 9:56 
AnswerRe: .NET memory encreasing (GetBitmapBits) Pin
Luc Pattyn24-Sep-09 10:05
sitebuilderLuc Pattyn24-Sep-09 10:05 
AnswerRe: .NET memory encreasing (GetBitmapBits) Pin
freakyit25-Sep-09 5:01
freakyit25-Sep-09 5:01 
GeneralRe: .NET memory encreasing (GetBitmapBits) Pin
Colin Raaijmakers25-Sep-09 11:37
Colin Raaijmakers25-Sep-09 11:37 
QuestionCollege Games Competition Pin
maybel 24-Sep-09 9:52
maybel 24-Sep-09 9:52 
AnswerRe: College Games Competition Pin
Dave Kreskowiak24-Sep-09 10:21
mveDave Kreskowiak24-Sep-09 10:21 
GeneralRe: College Games Competition Pin
maybel 25-Sep-09 2:35
maybel 25-Sep-09 2:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.