.net中实现listBox左右移动 .net中实现listBox左右移动

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

.net中实现listBox左右移动 .net中实现listBox左右移动

  2021-03-21 我要评论
想了解.net中实现listBox左右移动的相关内容吗,在本文为您仔细讲解.net中实现listBox左右移动的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:.net,listBox,左右移动,下面大家一起来学习吧。

今天用到listbox左右移动在网上找了一个,网友分享出来的,感觉不错,这里推荐给大家

复制代码 代码如下:

<div style="width:200px; float:left;">
    <table>
    <tr>
        <td  width="50%">
        <asp:ListBox ID="ListBox2" runat="server" Height="128px" Width="148px">
            <asp:ListItem Value="张三"></asp:ListItem>
            <asp:ListItem Value="李四"></asp:ListItem>
            <asp:ListItem>王五</asp:ListItem>
            </asp:ListBox>
        </td>
        <td>
            <asp:Button ID="Button2" runat="server" Text="《"></asp:Button>
            <asp:Button ID="Button1" runat="server" Text="<"></asp:Button>
            <asp:Button ID="Button3" runat="server" Text=">"></asp:Button>
            <asp:Button ID="Button4" runat="server" Text="》"></asp:Button>
        </td>
        <td align="left" width="50%">
             <asp:ListBox ID="ListBox1" runat="server" Height="128px" Width="148px"></asp:ListBox>
        </td>
    </tr>
    </table>
    </div>

以上所述就是本文的全部内容了,希望对大家熟练使用listbox能够有所帮助。

猜您喜欢

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们