Click here to Skip to main content
15,896,489 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: SOCK_RAW on CE Pin
zoid ! 1-Feb-05 4:26
zoid ! 1-Feb-05 4:26 
QuestionIs any smartphone good for development? Pin
Member 55831131-Jan-05 1:40
Member 55831131-Jan-05 1:40 
QuestionHow to prevent notification bubble from being dismissed? Pin
DJonarson29-Jan-05 19:23
DJonarson29-Jan-05 19:23 
QuestionWhere to download masm 6.0? Pin
rushing27-Jan-05 15:25
rushing27-Jan-05 15:25 
AnswerRe: Where to download masm 6.0? Pin
JGonzalezGUS3-Feb-06 8:20
JGonzalezGUS3-Feb-06 8:20 
GeneralCamera Mobile Phone Pin
Identity Undisclosed27-Jan-05 4:01
Identity Undisclosed27-Jan-05 4:01 
GeneralPPC 2003 Read from COM Port Pin
BC_Cartman26-Jan-05 7:42
BC_Cartman26-Jan-05 7:42 
GeneralProblem of multi-thread adding control in cf tabpage Pin
Leungping26-Jan-05 0:26
Leungping26-Jan-05 0:26 
my program need to add control during runtime, and the control adding is triggered by a socket listening thread. However, i discover that the control adding cannot do in different thread, and ArgumentException will throw.
Here is the Code for demostrate the problem.(Click the button1 will open a new thread to add textbox1) Any Idea to solve the problem?

_____________________________________________________________________________________
Imports System.Threading

Public Class Form1
Inherits System.Windows.Forms.Form
Friend WithEvents TabControl1 As System.Windows.Forms.TabControl
Friend WithEvents TabPage1 As System.Windows.Forms.TabPage
Friend WithEvents TabPage2 As System.Windows.Forms.TabPage
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu

#Region " Windows Form Designer generated code "

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
MyBase.Dispose(disposing)
End Sub

'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Private Sub InitializeComponent()
Me.MainMenu1 = New System.Windows.Forms.MainMenu
Me.TabControl1 = New System.Windows.Forms.TabControl
Me.TabPage1 = New System.Windows.Forms.TabPage
Me.Button1 = New System.Windows.Forms.Button
Me.TabPage2 = New System.Windows.Forms.TabPage
Me.TextBox1 = New System.Windows.Forms.TextBox
'
'TabControl1
'
Me.TabControl1.Controls.Add(Me.TabPage1)
Me.TabControl1.Controls.Add(Me.TabPage2)
Me.TabControl1.SelectedIndex = 0
Me.TabControl1.Size = New System.Drawing.Size(240, 272)
'
'TabPage1
'
Me.TabPage1.Controls.Add(Me.Button1)
Me.TabPage1.Location = New System.Drawing.Point(4, 4)
Me.TabPage1.Size = New System.Drawing.Size(232, 246)
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(128, 88)
Me.Button1.Text = "Button1"
'
'TabPage2
'
Me.TabPage2.Location = New System.Drawing.Point(4, 4)
Me.TabPage2.Size = New System.Drawing.Size(232, 246)
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(8, 88)
Me.TextBox1.Text = "TextBox1"
'
'Form1
'
Me.Controls.Add(Me.TabControl1)
Me.Menu = Me.MainMenu1
Me.Text = "Form1"

End Sub

#End Region

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub TabPage1_EnabledChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabPage1.EnabledChanged

End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ListeningThread As Thread
ListeningThread = New Thread(AddressOf AddTextBoxFunction)
ListeningThread.Start()
End Sub

Private Sub AddTextBoxFunction()
Me.TabPage1.Controls.Add(Me.TextBox1)
End Sub
End Class
GeneralRe: Problem of multi-thread adding control in cf tabpage Pin
Leungping26-Jan-05 0:38
Leungping26-Jan-05 0:38 
Generaldebug problem Pin
dcudev.lcr24-Jan-05 12:48
dcudev.lcr24-Jan-05 12:48 
GeneralPocket pc 03 and ms access Pin
mldunham20-Jan-05 8:13
mldunham20-Jan-05 8:13 
Generallooking for unoptimised C codes Pin
Frank Francis20-Jan-05 0:08
sussFrank Francis20-Jan-05 0:08 
GeneralRe: looking for unoptimised C codes Pin
Rob Graham5-Feb-05 9:20
Rob Graham5-Feb-05 9:20 
GeneralNew Ideas about .NET Applications fot PDAs or Pocket PCs Pin
Mustafa Rawat19-Jan-05 18:49
Mustafa Rawat19-Jan-05 18:49 
GeneralRe: New Ideas about .NET Applications fot PDAs or Pocket PCs Pin
Peter Beedell21-Jan-05 1:49
Peter Beedell21-Jan-05 1:49 
Generalevc++ 4.0 Bitmap - Icon trouble Pin
Lvca19-Jan-05 6:29
Lvca19-Jan-05 6:29 
GeneralRe: evc++ 4.0 Bitmap - Icon trouble Pin
Anonymous24-Jan-05 8:54
Anonymous24-Jan-05 8:54 
Generalevc 3 + classwizard + adding members Pin
TeddybearCrisis19-Jan-05 3:22
TeddybearCrisis19-Jan-05 3:22 
GeneralAssertion error after CCeSocket is closed Pin
GDavy19-Jan-05 1:47
GDavy19-Jan-05 1:47 
Generallooking for the missing debugger in the emulator Pin
dcudev.lcr17-Jan-05 7:24
dcudev.lcr17-Jan-05 7:24 
GeneralHelp on Status Icon Pin
SylviaOM17-Jan-05 2:08
SylviaOM17-Jan-05 2:08 
GeneralA Simple Read/ Write Application Pin
CT Menot16-Jan-05 16:13
CT Menot16-Jan-05 16:13 
GeneralPocket PC Emulator Pin
Pee_jay15-Jan-05 1:26
Pee_jay15-Jan-05 1:26 
GeneralRe: Pocket PC Emulator Pin
João Paulo Figueira15-Jan-05 4:12
professionalJoão Paulo Figueira15-Jan-05 4:12 
GeneralRe: Pocket PC Emulator Pin
Pee_jay16-Jan-05 3:17
Pee_jay16-Jan-05 3:17 

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.