j.mendes24 Posted March 12, 2009 at 11:25 AM Report Share #250177 Posted March 12, 2009 at 11:25 AM pessoal eu ao executar uma função ela da.me um "erro" que para mim não faz sentido nenhum. é o seguinte: Link to comment Share on other sites More sharing options...
Hellblazer Posted March 12, 2009 at 11:26 AM Report Share #250180 Posted March 12, 2009 at 11:26 AM pessoal eu ao executar uma função ela da.me um "erro" que para mim não faz sentido nenhum. é o seguinte: hm? There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
j.mendes24 Posted March 12, 2009 at 11:29 AM Author Report Share #250182 Posted March 12, 2009 at 11:29 AM Public Sub Self_OnInstantMessage(ByVal im As InstantMessage, ByVal sim As Simulator) If im.Dialog = InstantMessageDialog.MessageFromAgent Then slclient.Self.InstantMessage(im.FromAgentID, im.Message, im.IMSessionID) MsgBox(im.message) form_login.txt_conversa.Text = im.Message End If End Sub quando a função e chamada o texto da txt_conversa não fica com o conteudo da im.message, mas na msgbox ja apareçe o conteudo da im.message. não tou mesmo a perceber porque é que o text da txt_conversa não fica com o conteudo da im.message. alguem me pode ajudar? obrigado! Link to comment Share on other sites More sharing options...
Hellblazer Posted March 12, 2009 at 11:35 AM Report Share #250188 Posted March 12, 2009 at 11:35 AM Aquele form_login e o form que esta aberto ou vai abrir ainda? There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
j.mendes24 Posted March 12, 2009 at 11:39 AM Author Report Share #250190 Posted March 12, 2009 at 11:39 AM está aberto Link to comment Share on other sites More sharing options...
Hellblazer Posted March 12, 2009 at 11:43 AM Report Share #250194 Posted March 12, 2009 at 11:43 AM desculpa mas so estou a ver isso a poder atrufiar... se na messagebox esta bom.... tira o nome do form de antes da textbox... There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
j.mendes24 Posted March 12, 2009 at 11:47 AM Author Report Share #250196 Posted March 12, 2009 at 11:47 AM se tirar o nome da do form antes da text box ele da erro, pk depois nao conheçe a text box. preciso mesmo de resolver isto. Link to comment Share on other sites More sharing options...
Hellblazer Posted March 12, 2009 at 11:48 AM Report Share #250199 Posted March 12, 2009 at 11:48 AM Se e no form que esta aberto como e que nao reconhece a textbox? There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
j.mendes24 Posted March 12, 2009 at 11:51 AM Author Report Share #250200 Posted March 12, 2009 at 11:51 AM ah o codigo. percebite mal. esta funçao esta num module. Link to comment Share on other sites More sharing options...
Hellblazer Posted March 12, 2009 at 11:52 AM Report Share #250202 Posted March 12, 2009 at 11:52 AM Então e a caixa de texto no form fica vazia? There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
j.mendes24 Posted March 12, 2009 at 12:03 PM Author Report Share #250211 Posted March 12, 2009 at 12:03 PM sim fica. Link to comment Share on other sites More sharing options...
Hellblazer Posted March 12, 2009 at 12:08 PM Report Share #250212 Posted March 12, 2009 at 12:08 PM O que eu penso que esteja a acontecer é, tu crias-te uma nova instancia do form_login e associas-te aquela textbox um determinado texto, mas depois quando abres essa form vais declarar mais uma nova instancia do form_login o que seja que todos os seus controlos e variaveis fiquem com os seus valores por defeito ou seja a caixa de texto fica vazia.... Cumps There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
j.mendes24 Posted March 12, 2009 at 12:30 PM Author Report Share #250222 Posted March 12, 2009 at 12:30 PM o form_login esta sempre aberto. Link to comment Share on other sites More sharing options...
Hellblazer Posted March 12, 2009 at 12:41 PM Report Share #250225 Posted March 12, 2009 at 12:41 PM o form_login esta sempre aberto. E para teres atribuido o valor a textbox no module nao tiveste de dizer algo do genero. Dim form_login as new FormLogin() ? There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
j.mendes24 Posted March 12, 2009 at 12:52 PM Author Report Share #250230 Posted March 12, 2009 at 12:52 PM não :S Link to comment Share on other sites More sharing options...
Hellblazer Posted March 12, 2009 at 12:57 PM Report Share #250233 Posted March 12, 2009 at 12:57 PM Esquece ja estou a trocar-me todo... eu a tarde ja estou no PC do trabalho ja tenho o visual studio ja tento ver disso entao There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
j.mendes24 Posted March 12, 2009 at 01:06 PM Author Report Share #250245 Posted March 12, 2009 at 01:06 PM yh tenta la ver isso se for preciso ate te mando o projecto Link to comment Share on other sites More sharing options...
Hellblazer Posted March 12, 2009 at 02:11 PM Report Share #250262 Posted March 12, 2009 at 02:11 PM Como acedes a classe de onde está aquele codigo? There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
j.mendes24 Posted March 12, 2009 at 03:23 PM Author Report Share #250285 Posted March 12, 2009 at 03:23 PM ass: AddHandler slclient.Self.OnInstantMessage, AddressOf Self_OnInstantMessage Link to comment Share on other sites More sharing options...
Hellblazer Posted March 12, 2009 at 03:26 PM Report Share #250288 Posted March 12, 2009 at 03:26 PM Podias enviar o projecto entao para dar uma vista de olhos? e que assim a primeira vista parece estar tudo bem... There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now