On Fri, Dec 26, 2008 at 7:31 PM, Geoff Flight <[email protected]> wrote:
> Hi guys...
>
> I wonder if there is anyone out there who could give me a little advice on
> VB.NET. I've been trying to make the transition from VFP to .NET and
> discovered exactly how good VFP is. In my first attempt at a VB.NET project
> I'm coming unstuck at every step of the way and finding difficulties and
> roadblocks that are not only frustrating me but make me wonder just how VB
> can be so obtuse. For example...
----------------------------------------------------------
heads up on reality.  VFP is VFP, VB.NET != VFP

Stop trying to do it the same way.  let me repeat that "Stop writing
code in other languages like VFP."


>
> I am trying to databind an integer SQL database column to a radio button. IN
> VFP it is simplicity itself. I cant find out how to do it in VB at all! I
> could code up a user control that does what I want but as a newbie I kinda
> expected to be able to drop a radio button on the form and bind it to a
> column and voila... however, I can find no way of doing it.
-------------------------------

If your using dataset/dataTable
rbtPull.Checked=ds3.Tables(0).Rows(0)("Log.IsPull")




> I like to write apps where the bound text boxes, combos and radio buttons
> display the data but are disabled or marked as read-only until i press my
> edit button. Pretty basic stuff. In VB making enabled=false turns the text
> that horrible pale unreadable grey color. However that color cannot be
> overridden. So off to using read-only, only to find that combo boxes don't
> have that property. It never ends...
-------------
Are you binding your data against objects or tables in datasets?  Go
the Object route!!!!  Drop the whole idea of that dumb cursor concept.
 It is so 1900s.

> If anyone can give me any advice on the above and the inevitable further
> problems I will face I will appreciated it. I googled these issues and all I
> found were other people with the same problem.
-------

Winform or web?  For Web you just need to put in CSS.  I don't realy
care about the winform side of the equation.

> I am learning VB on a dinky little app that I wrote in VFP in 1 day. I'm on
> day two of this VB rewrite and I have completed as much as I would have done
> in 5mins in VFP.
--------------------------------

Try Python.  You should be as capable in oh 3 days as all of your
years of VFP experience.

Sorry to be an ass but in all honesty you are asking for a lot.  I
found that it took me about 1 solid month to not think in VFP syntax
when I changed over to .NET.   Why did you think it was just easy and
no problem?  Are you hitting the Nog again.  :)



-- 
Stephen Russell
Sr. Production Systems Programmer
Mimeo.com
Memphis TN

901.246-0159


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to