[VB.Net & Compact Framework]

Pagina: 1
Acties:
  • 30 views sinds 30-01-2008

  • Denga
  • Registratie: September 2000
  • Laatst online: 10-04 15:02

Denga

The riding never stops....

Topicstarter
Ik heb de volgende 2 pagina's gemaakt voor de pda...
Op de eerste pagina vult ie een combobox met namen en op de knop details gedrukt zou ie gewoon details moeten geven, heb het eerst getest als zijnde windows applicatie en dat werkte perfect, maar nu ik 't omzet naar pda doet ie het niet meer en valt ie over de suspendlayout methode...
Weet iemand waar dit aan zou kunnen liggen?

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
Public Class PersoonResultaat
    Inherits System.Windows.Forms.Form
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Public WithEvents cmbKeuze As System.Windows.Forms.ComboBox
    Public WithEvents lblError As System.Windows.Forms.Label
    Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox

#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

    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.
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Button2 As System.Windows.Forms.Button
    Friend WithEvents Button1 As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(PersoonResultaat))
        Me.PictureBox1 = New System.Windows.Forms.PictureBox
        Me.Label1 = New System.Windows.Forms.Label
        Me.Button2 = New System.Windows.Forms.Button
        Me.Label2 = New System.Windows.Forms.Label
        Me.Button1 = New System.Windows.Forms.Button
        Me.cmbKeuze = New System.Windows.Forms.ComboBox
        Me.lblError = New System.Windows.Forms.Label
        Me.SuspendLayout()
        '
        'PictureBox1
        '
        Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
        Me.PictureBox1.Location = New System.Drawing.Point(10, 5)
        Me.PictureBox1.Size = New System.Drawing.Size(100, 58)
        '
        'Label1
        '
        Me.Label1.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Bold)
        Me.Label1.Location = New System.Drawing.Point(114, 26)
        Me.Label1.Size = New System.Drawing.Size(152, 20)
        Me.Label1.Text = "Relation Manager"
        '
        'Button2
        '
        Me.Button2.Location = New System.Drawing.Point(125, 152)
        Me.Button2.Size = New System.Drawing.Size(60, 20)
        Me.Button2.Text = "Terug"
        '
        'Label2
        '
        Me.Label2.Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Regular)
        Me.Label2.Location = New System.Drawing.Point(0, 280)
        Me.Label2.Size = New System.Drawing.Size(192, 20)
        Me.Label2.Text = "Copyright © 2005 Alexion Software"
        '
        'Button1
        '
        Me.Button1.Location = New System.Drawing.Point(55, 152)
        Me.Button1.Size = New System.Drawing.Size(60, 20)
        Me.Button1.Text = "Details"
        '
        'cmbKeuze
        '
        Me.cmbKeuze.Location = New System.Drawing.Point(55, 81)
        Me.cmbKeuze.Size = New System.Drawing.Size(137, 22)
        Me.cmbKeuze.Visible = False
        '
        'lblError
        '
        Me.lblError.Location = New System.Drawing.Point(61, 111)
        Me.lblError.Size = New System.Drawing.Size(103, 20)
        Me.lblError.Text = "errortext"
        Me.lblError.Visible = False
        '
        'PersoonResultaat
        '
        Me.ClientSize = New System.Drawing.Size(240, 294)
        Me.ControlBox = False
        Me.Controls.Add(Me.lblError)
        Me.Controls.Add(Me.cmbKeuze)
        Me.Controls.Add(Me.Button1)
        Me.Controls.Add(Me.Label2)
        Me.Controls.Add(Me.Button2)
        Me.Controls.Add(Me.Label1)
        Me.Controls.Add(Me.PictureBox1)
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Text = "Alexion"
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Me.Close()
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim pd As PersoonDetails = New PersoonDetails
        Dim drv As DataRowView
        drv = DirectCast(cmbKeuze.SelectedItem, DataRowView)
        pd.BindData(drv)
        pd.Show()
    End Sub

End Class


2e form die de details zou moeten tonen:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
Public Class PersoonDetails
    Inherits System.Windows.Forms.Form
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents txtNaam As System.Windows.Forms.TextBox
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents txtVoornaam As System.Windows.Forms.TextBox
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents TextBox4 As System.Windows.Forms.TextBox
    Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox

    Public Sub BindData(ByVal dr As DataRowView)
        txtVoornaam.DataBindings.Add("Text", dr, "Voornaam")
        txtNaam.DataBindings.Add("Text", dr, "achternaam")
    End Sub

#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

    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.
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Button2 As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(PersoonDetails))
        Me.PictureBox1 = New System.Windows.Forms.PictureBox
        Me.Label1 = New System.Windows.Forms.Label
        Me.Button2 = New System.Windows.Forms.Button
        Me.Label2 = New System.Windows.Forms.Label
        Me.txtNaam = New System.Windows.Forms.TextBox
        Me.Label3 = New System.Windows.Forms.Label
        Me.Label4 = New System.Windows.Forms.Label
        Me.txtVoornaam = New System.Windows.Forms.TextBox
        Me.Label5 = New System.Windows.Forms.Label
        Me.TextBox3 = New System.Windows.Forms.TextBox
        Me.Label6 = New System.Windows.Forms.Label
        Me.TextBox4 = New System.Windows.Forms.TextBox
        '
        'PictureBox1
        '
        Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
        Me.PictureBox1.Location = New System.Drawing.Point(10, 5)
        Me.PictureBox1.Size = New System.Drawing.Size(100, 58)
        '
        'Label1
        '
        Me.Label1.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Bold)
        Me.Label1.Location = New System.Drawing.Point(114, 26)
        Me.Label1.Size = New System.Drawing.Size(152, 20)
        Me.Label1.Text = "Relation Manager"
        '
        'Button2
        '
        Me.Button2.Location = New System.Drawing.Point(81, 214)
        Me.Button2.Size = New System.Drawing.Size(60, 20)
        Me.Button2.Text = "Terug"
        '
        'Label2
        '
        Me.Label2.Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Regular)
        Me.Label2.Location = New System.Drawing.Point(0, 280)
        Me.Label2.Size = New System.Drawing.Size(192, 20)
        Me.Label2.Text = "Copyright © 2005 Alexion Software"
        '
        'txtNaam
        '
        Me.txtNaam.Location = New System.Drawing.Point(81, 70)
        Me.txtNaam.Size = New System.Drawing.Size(138, 20)
        Me.txtNaam.Text = ""
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(9, 72)
        Me.Label3.Size = New System.Drawing.Size(65, 20)
        Me.Label3.Text = "Naam"
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(9, 100)
        Me.Label4.Size = New System.Drawing.Size(65, 20)
        Me.Label4.Text = "Voornaam"
        '
        'txtVoornaam
        '
        Me.txtVoornaam.Location = New System.Drawing.Point(81, 98)
        Me.txtVoornaam.Size = New System.Drawing.Size(138, 20)
        Me.txtVoornaam.Text = ""
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(9, 156)
        Me.Label5.Size = New System.Drawing.Size(65, 20)
        Me.Label5.Text = "Naam"
        '
        'TextBox3
        '
        Me.TextBox3.Location = New System.Drawing.Point(81, 154)
        Me.TextBox3.Size = New System.Drawing.Size(138, 20)
        Me.TextBox3.Text = ""
        '
        'Label6
        '
        Me.Label6.Location = New System.Drawing.Point(9, 128)
        Me.Label6.Size = New System.Drawing.Size(65, 20)
        Me.Label6.Text = "Naam"
        '
        'TextBox4
        '
        Me.TextBox4.Location = New System.Drawing.Point(81, 126)
        Me.TextBox4.Size = New System.Drawing.Size(138, 20)
        Me.TextBox4.Text = ""
        '
        'PersoonDetails
        '
        Me.ClientSize = New System.Drawing.Size(240, 294)
        Me.ControlBox = False
        Me.Controls.Add(Me.Label5)
        Me.Controls.Add(Me.TextBox3)
        Me.Controls.Add(Me.Label6)
        Me.Controls.Add(Me.TextBox4)
        Me.Controls.Add(Me.Label4)
        Me.Controls.Add(Me.txtVoornaam)
        Me.Controls.Add(Me.Label3)
        Me.Controls.Add(Me.txtNaam)
        Me.Controls.Add(Me.Label2)
        Me.Controls.Add(Me.Button2)
        Me.Controls.Add(Me.Label1)
        Me.Controls.Add(Me.PictureBox1)
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Text = "Alexion"

    End Sub

#End Region

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Me.Close()
    End Sub

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

    End Sub

End Class


alvast bedankt

Never eat yellow snow...


  • gorgi_19
  • Registratie: Mei 2002
  • Laatst online: 10:42

gorgi_19

Kruimeltjes zijn weer op :9

Ik mis een heleboel informatie. Een volledige titel, wat gaat er precies fout, foutmeldingen / exceptions, waar heb je zelf gezocht en de relevante code (dus geen lappen tekst). Je bent al eerder op de quickstart gewezen, dus ik neem aan dat je die onderhand wel kent :) Deze gaat dicht; je mag een nieuw topic openen conform de eisen die we stellen in Programming & Webscripting

[ Voor 4% gewijzigd door gorgi_19 op 18-05-2005 11:40 ]

Digitaal onderwijsmateriaal, leermateriaal voor hbo


Dit topic is gesloten.