×

Loading...
Ad by
  • 技多不压身,工到自然成:安省技工证书特训班,点击咨询报名!
Ad by
  • 技多不压身,工到自然成:安省技工证书特训班,点击咨询报名!

急救SOS!!!, 面试时公司要求完成一个模拟的VB Project,周一交. 场景见内:

本文发表在 rolia.net 枫下论坛要求: 一个模板产生系统(like business card produce system, user can select different template to display card, or design new layout)

用VB完成界面,用户可以象用Toolbar一样拖拉不同的控件到设计窗口, 可以移动,调整大小.不同的控间对应不同的数据库字段,最后可以还要将设计窗口及内部的控件的信息存入数据库, 使用户可以选择不同的模板来编辑及显示.

我的思路:
one listbox control, used for list templates
one frame control, as template contrainer
one picturebox, as controls contrainer
one toolbar control with several buttons for controls will be draged to picturebox
menu, and regular toolbar

when user click controls toobar button, set cursor to picturebox, get mouse position, let user draw a rectangle, after mouse up, get mouse position again, use controls.add to add and display relative control and set size. then user can draw another control

after save command clicked, use controls collection to write all the properties to table.

Difficulty is how to write correct information into table and how to get all the information from table?

主要是显示LOGO(IMAGE? 多个)和个人信息(TEXTBOX? 多个).

是否一定要用API做,表怎么组织?

各位DX, 有没有类似的SOURCE CODE, 或好的IDEA?? 快来救火啊!!!!!更多精彩文章及讨论,请光临枫下论坛 rolia.net
Report

Replies, comments and Discussions:

  • 枫下家园 / 电脑用户 / 急救SOS!!!, 面试时公司要求完成一个模拟的VB Project,周一交. 场景见内:
    本文发表在 rolia.net 枫下论坛要求: 一个模板产生系统(like business card produce system, user can select different template to display card, or design new layout)

    用VB完成界面,用户可以象用Toolbar一样拖拉不同的控件到设计窗口, 可以移动,调整大小.不同的控间对应不同的数据库字段,最后可以还要将设计窗口及内部的控件的信息存入数据库, 使用户可以选择不同的模板来编辑及显示.

    我的思路:
    one listbox control, used for list templates
    one frame control, as template contrainer
    one picturebox, as controls contrainer
    one toolbar control with several buttons for controls will be draged to picturebox
    menu, and regular toolbar

    when user click controls toobar button, set cursor to picturebox, get mouse position, let user draw a rectangle, after mouse up, get mouse position again, use controls.add to add and display relative control and set size. then user can draw another control

    after save command clicked, use controls collection to write all the properties to table.

    Difficulty is how to write correct information into table and how to get all the information from table?

    主要是显示LOGO(IMAGE? 多个)和个人信息(TEXTBOX? 多个).

    是否一定要用API做,表怎么组织?

    各位DX, 有没有类似的SOURCE CODE, 或好的IDEA?? 快来救火啊!!!!!更多精彩文章及讨论,请光临枫下论坛 rolia.net
    • 这个公司很黑啊, 要是我的话就做个DEMO, 你看是不是这样:
      我记得VB可是做自己的TOOLBAR的, 那么你自己开发一些小控件, CONTROL的特性和方法分别是屏幕位置, 与数据库的字段对应什么的。把这些空间放到TOOLBAR上, 不用多, 两个就可以。 然后再加个SAVE BUTTON 就可以了吧。 你说的光是使用原由的VB空间可能不行。 瞎说的, 你自己觉得怎么做对就怎么做
    • 神啊,救救我吧
      • 改为:DXs,救救我吧
    • 如今IT行业好象是鱼龙混杂,啥人都挤在里面,楼上这位八成又是个半路出家的,有时间不会翻翻资料动动脑.
      • 你难道没遇到过不知道或不确定的东西吗? 其实这个界面和DLL我差不多已经做完了, 只是不确定是否有更有效的方法,
        • 好象一般这样的项目不用尽善尽美, 思路好就可以
          • 我不就是怕到时候人家说我的办法不好,现在的就业市场还是小心谨慎为好, C++的工作也不好找. 另: 关于空间的移动,dragdrop肯定是不够精确, 所以是否只好用GDI API?
            • GDI API? 没用过, 我只用WINDOWS API。
      • 此话差矣,你也不是天生的IT人
    • 当心,对这种公司不要报太大希望,我觉得很有可能他们会拿了你代码后,先假装找出一点毛病,把你拒绝掉,顺手再据为已有!!!!
      • 再小心,工作都让做CO-OP 和 VOLUNTEER抢光了, 这世道:-(
    • 这?用过VB的人都知道吧。
      • 那您到是指导一下我呀, 正着急上火呢.
        • 对不起,你别骂我,我不会,只是帮你UP。
    • you may like to post the original requirement in english without your own comments.
      • the thing is they just give me the scene, let me analyze, design and develop it, then document the idea, codes to show the ability to do things right.
    • 什么公司?怎么象我们公司?给个网址?
    • 怎么样了?还活着么?