473,387 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

TabControl&databind problem

myTab control got 2 pages,
in page1, i need to type in customer code, and the customer information will
be displayed in page 1 & page2.
I am using databinding to move the record position.
Before bmCustomer.addnew() . Everything goes fine, I can see the data in
both Page2.
However, after bmCustomer.addnew(), I type a customer code, [the back end
store procedure will query that code and the return a datarow ]
[In page 1] Me.txtCustAdd1.text = drCust(..... etc) <-- works fine and i
can see the data
[in page2] Me.txtCustInform.text = drCust(....etc) <- i can't see the data
in page 2.

I use messagebox to test the page2 data, it return a correct value.
BUT EVERY THING IN PAGE 2 is blank , why ??
I add 'Me.Tab2.refresh()' it seems useless. if I cut the textbox
Me.txtCustInform.text from page2 and then paste in page1.
It displays very well. What happend about Tab page2 ???

FromAgnes
Nov 20 '05 #1
3 1103
Hi Agnes,

You have placed this message before and got no answer, which mostly mean
that your question is to complex, by adding more you do not get more
answers, I think that you get more answers when you try to bring it back to
the essentials and than do it step by step.

Just my thought
Cor
myTab control got 2 pages,
in page1, i need to type in customer code, and the customer information will be displayed in page 1 & page2.
I am using databinding to move the record position.
Before bmCustomer.addnew() . Everything goes fine, I can see the data in
both Page2.
However, after bmCustomer.addnew(), I type a customer code, [the back end
store procedure will query that code and the return a datarow ]
[In page 1] Me.txtCustAdd1.text = drCust(..... etc) <-- works fine and i
can see the data
[in page2] Me.txtCustInform.text = drCust(....etc) <- i can't see the data
in page 2.

I use messagebox to test the page2 data, it return a correct value.
BUT EVERY THING IN PAGE 2 is blank , why ??
I add 'Me.Tab2.refresh()' it seems useless. if I cut the textbox
Me.txtCustInform.text from page2 and then paste in page1.
It displays very well. What happend about Tab page2 ???

FromAgnes

Nov 20 '05 #2
Dear Cor
Agree with U , I am so tired and worry to switch our system from VFP
to VB.Net. I need to perform the same basic features from vfp application
to vb.net and I found it is a harsh task.
I will try to check it again.
Btw, I listen to your advice and normalize the tables which under 100
fields, using the most simple way (data adapter) to insert the data.
Now, it is sucessfuly to update / insert the record.

Thanks for your kind help.
From Agnes
p.s- I am vfp developer in Hong Kong , sorry for my poor english

"Cor Ligthert" <no**********@planet.nl> ¦b¶l¥ó
news:Od**************@TK2MSFTNGP11.phx.gbl ¤¤¼¶¼g...
Hi Agnes,

You have placed this message before and got no answer, which mostly mean
that your question is to complex, by adding more you do not get more
answers, I think that you get more answers when you try to bring it back to the essentials and than do it step by step.

Just my thought
Cor
myTab control got 2 pages,
in page1, i need to type in customer code, and the customer information

will
be displayed in page 1 & page2.
I am using databinding to move the record position.
Before bmCustomer.addnew() . Everything goes fine, I can see the data in
both Page2.
However, after bmCustomer.addnew(), I type a customer code, [the back end store procedure will query that code and the return a datarow ]
[In page 1] Me.txtCustAdd1.text = drCust(..... etc) <-- works fine and i can see the data
[in page2] Me.txtCustInform.text = drCust(....etc) <- i can't see the data in page 2.

I use messagebox to test the page2 data, it return a correct value.
BUT EVERY THING IN PAGE 2 is blank , why ??
I add 'Me.Tab2.refresh()' it seems useless. if I cut the textbox
Me.txtCustInform.text from page2 and then paste in page1.
It displays very well. What happend about Tab page2 ???

FromAgnes


Nov 20 '05 #3
Hi Agnes,

Every time you go further in dotNet, you see that you did it yesterday in a
stupid way.
There are so much classes that there is always a better way.

However, I hear now that you are making much progress and that is great.

Do not say sorry for your English, most visitors and I think 50% of the
regulars are not from native English speaking countries.

There is nobody who says something about some ones English in this newsgroup
or does not answer a question because of that

Cor
Agree with U , I am so tired and worry to switch our system from VFP
to VB.Net. I need to perform the same basic features from vfp application
to vb.net and I found it is a harsh task.
I will try to check it again.
Btw, I listen to your advice and normalize the tables which under 100
fields, using the most simple way (data adapter) to insert the data.
Now, it is sucessfuly to update / insert the record.

Thanks for your kind help.
From Agnes
p.s- I am vfp developer in Hong Kong , sorry for my poor english

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dennis C. Drumm | last post by:
Is there a way to prevent the user from leaving a tab on a TabControl until all the controls on that tab have finished validating? The problem I am experiencing is when a control fails its...
1
by: genc ymeri | last post by:
Hi, I'm running in a strange "problem" .... I'm trying to hide a page in tabcontrol with this command " tabMyPage.Hide();" but it still shows up. Am I missing something ??
1
by: JH | last post by:
I have a tab control in my form. I am trying to create a dynamic pie chart. If I use the following code,it works fine on the main form. this.CreateGraphics().FillPie(brushtargeted,240,200,200, 200,...
2
by: Stan Sainte-Rose | last post by:
Hi guys I have a little problem with the tabcontrol. I add and remove tabpage using the following methods : TabControl1.Controls.Add(tabpagex) TabControl1.Controle.Remove(tapagex) But how...
4
by: Mika M | last post by:
Hello! I'm using VB.NET 2003 and Windows Forms application type. Question: Why ComboBoxes are not changing their arrearance to XP-Styles look althought other UI Components does when I use the...
2
by: Agnes | last post by:
Now, I understand my problem (bugs?) about the Tab Control & dataBinding 1)a simple blank form with tabcontrol , there are 2 pages, pages1 got 3 textboxes (txtShipperNAme,txtJobNo,txtVslName) and...
5
by: Henry Wu | last post by:
Hi, I was wondering if I could save all of the controls in a tabcontrol for example, complete with the controls' name, text, value, position, size, etc.. Then when the user opens the application...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.