java的awt怎么屏蔽掉系统热键f10,没招了,急急急

java的awt怎么屏蔽掉系统热键f10,没招了,急急急,java的awt怎么屏蔽掉系统热键f10,没招了,急急急,java的awt怎么屏蔽掉系统热键f10,没招了,急急急

0

2个回答

java.awt.KeyboardFocusManager kfm = java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager();
kfm.addKeyEventDispatcher(new java.awt.KeyEventDispatcher () {
// 如果 KeyboardFocusManager 不应对该 KeyEvent 进行进一步操作,则返回 true;否则,返回 false
@Override
public boolean dispatchKeyEvent(java.awt.event.KeyEvent e) {
if(e.getKeyCode() == java.awt.event.KeyEvent. VK_F10) {
return true; // 返回true以达到屏蔽效果
}
return false;
}
});

0

Java code
java.awt.KeyboardFocusManager kfm = java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager();
kfm.addKeyEventDispatcher(new java.awt.KeyEventDispatcher () {
// 如果 KeyboardFocusManager 不应对该 KeyEvent 进行进一步操作,则返回 true;否则,返回 false
@Override
public boolean dispatch…

-1
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
如何屏蔽掉系统热键,
ALT + F4rnALT + TABrnALT+ESCrnCTRL+ESC rn如题,代码请详细点.
java 如何屏蔽掉 系统的热键(如ALT+TAB)
java 如何屏蔽掉 系统的热键(如ALT+TAB)
热键问题!急急急!!!
各位大侠,我现在有一很棘手的问题,我做一程序,客户要求用F1到F12做热键,我是写了一自定义事件:ue_keydown(ID = pbm_dwnkey)rn//热键动作列表rnIf key = KeyF1! Thenrn parent.cb_insert.default = truern parent.cb_insert.setfocus( )rn parent.cb_insert.Event Clicked()rnEnd Ifrn。。。rn。。。rn。。。rnIf key = KeyF12! Thenrn parent.cb_save.default = truern parent.cb_save.setfocus( )rn parent.cb_save.Event Clicked()rnEnd Ifrn我在Grid型一览用的数据窗口中用它时,没有问题,但是我在做查询条件的下拉数据窗口中用它时,F10和F12就出现问题了,F10不起作用,F12我用作关闭窗体,但一按它整个应用都关了,要不就死机。这该怎么办呢???rn急啊!!! 各位高手帮帮忙吧!!!
请问如何屏蔽掉F10,多谢
F10好像是Windows的快捷键,每次按一下都激活菜单,即使没有菜单,也会将焦点rn转到控制菜单,请问如何把F10屏蔽掉,时期具有另外的功能。
[求助]vc里面怎么把系统热键屏蔽掉???
我用ddraw写了一个游戏,但是这个游戏在运行中的时候,如果你按下了alt+tabrn或者ctrl+alt+del的话,游戏就不能再进行了,所以我想把那些热键屏蔽掉!但是我不知道用什么API!
MyEclipse8.5,我没招了
MyEclipse8.5好像不支持MyEclipse5.5所支持的东西,jsf之类的吧,当打开jsp页面时,提示如图workspace。 rnrn第二个问题: rnrequest.setAttribute("CN",commonName); rnrequest.getRequestDispatcher("http://localhost:7001/sdzw/login.do?jt="+jt).forward (request,response); rnrn/*转发的action返回index.jsp页面,然后context.getRequestDispatcher(forwardPage).forward( rnrequest,response); rn它返回的是index.jsp页面的源码,如图Internet rn*/ rnreturn null;
热键相应的问题,急急急
一个应用程序运行在后台,如何使键盘某些键值有所反映,就是监视键盘输入!急急急
急,大家帮帮忙!我没招了
首先说下我的项目,开发一个WEB网站,是用模板做的,我负责登陆,登陆成功后跳到另一个页面,不能使用IE的后退按钮,我能做到,但是,还让用户使用下面的模板下的导航登录/注册,还能跳到登陆页,我实在没办法做了。
实在没招了!SOS!
void CDialogModalless::OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult) rnrn NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;rn // TODO: Add your control notification handler code here rn InsertListItem();rn UpdateData(FALSE);rn *pResult = 0;rnrnvoid CDialogModalless::InsertListItem()rnrn //获取当前被选择的tree view项rn HTREEITEM CurItem=m_Tree.GetSelectedItem();rn //获得当前选中项的文本 rn CString str=m_Tree.GetItemText(CurItem);rn CFileFind file;rn int number=0;rn str=str+"\\"+"*.*"; //设置路径rn //由于List插入两列的方法是:第一列用InsertItem(),第二、三列用SetItemText()rn //但是由于在查找时可能先找出的是满足第二列的功能,所以采用先找完第一列再找第二列的方法rn BOOL bfind=file.FindFile(str);rn while(bfind)rn rn bfind=file.FindNextFile(); //一定要紧随FindFile()其后,因为bfind是作为改变while循环的条件,否则会陷入死循环rn if(!file.IsHidden() && file.IsDirectory())rn rn CString DirectoryName=file.GetFileName(); rn m_List.InsertItem(number,DirectoryName);rn number++; rn rn rn number=0;rn bfind=file.FindFile(str);rn NM_LISTVIEW ListView;rn while(bfind)rn rn bfind=file.FindNextFile(); rn if(!file.IsHidden() && !file.IsDirectory())rn rn CString FileName=file.GetFileName();rn ListView.lParam=(LPARAM)number;rn m_List.SetItemText(number,1,_T(FileName)); //BOOL SetItemText(int nItem,int nSubItem,LPTSTR lpszText);可以设置每列的显示字符。nItem为设置的项的位置,nSubItem为列位置,lpszText为显示字符。 rn m_List.SetItemData(number,number); rn number++; rn rn rn SortListItem(number);rnrnrnvoid CDialogModalless::SortListItem(int total)rnrn for(int i=1;i<=total-1;i++)rn rn for(int j=1;j<=total-i;j++)rn rn//当我调试到下面这一句时出错,说m_List没有创建窗口,那我想对上面已经插好的文件名排序,我该怎么调用这个函数了?rn m_List.SortItems(CompareFunc,(DWORD)&m_List); rn rn rnrnrnint CALLBACK CDialogModalless::CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)rnrn CDialogModalless *pDialogModalless=(CDialogModalless*)lParamSort;rn CString strItem1=pDialogModalless->m_List.GetItemText(lParam1,0);rn CString strItem2=pDialogModalless->m_List.GetItemText(lParam2,0);rn return strcmp(strItem2,strItem1);rn
eclipse内存溢出,没招了。。。
近来写了一个小程序,用于倒数据。rn但是倒到中间,就会出现:rnrnException in thread "main" java.lang.OutOfMemoryError: Java heap spacernrn我调大了eclipse的启动参数:rnrneclipse.exe -vmargs -Xverify:none -XX:+UseParallelGC -XX:PermSize=200M -Xms512M -Xmx1536Mrnrn但是好象没有任何作用。我内存是2G的,导的数据大约有60多M的样子。rnrn谁能知道是怎么回事?rnrn
实在没招了
我在公司用的是自己的本,系统自带的就是IE7 , 但是在工作中开流程, 需要打开很多组织域的控件,我这里总是出现rnDAX ERRORrn Access violation at address 01243576 in module ‘oatree.ocx’ .Read of address 00000000
没招了 Sys未定义
vs2008 的树控件一运行就产生这样的错误-Sys未定义rn在别人的电脑上就没事,重装了系统不行,rn又装了IE7,360浏览器还是不行,真的没招了rnrnrn调试的时候抛出的异常rnif (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
怎么禁止系统热键
怎么屏蔽想CTRL+ALT+DEL WIN ALT+ESC等系统热键?
周末能怎么安排?没招了!
周末没有妹妹陪!看来只有去战网 PK了!充电又很寂寞难赖!该怎么办!支个招吧!
java中如何注册系统热键(急)
我要为我自己的一个JAVA程序注册一个系统热键,当我点击热键时会调出我的程序!!rn  如何在JAVA中实现这段代码!!
在C++ Bulider中怎样屏闭系统热键F10
-
再谈在C++ Bulider中怎样屏闭系统热键F10
在我的程序中有一个使用F10的地方,当每次按下F10时,系统优先获得该快捷键,怎样有一种方法,可使我程序优先获得该快捷键 rn有一网友提供一下方法,但该方法将我程序的热键F10也屏闭掉,有没有一种更好的方法rnForm1->KeyPreView=true;rnvoid __fastcall TForm1::FormKeyDown(TObject *Sender, WORD &Key,rn TShiftState Shift)rnrn if(Key=121) Key=0;rn rn
请教热键代码F10,F11分别是多少
Public Declare Function Shell_NotifyIcon Lib "shell32.dll" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long rnConst NIM_ADD = &H0 rnConst NIM_DELETE = &H2 rnConst NIF_ICON = &H2 rnConst NIF_MESSAGE = &H1 rnConst NIF_TIP = &H4 rn像这样的,我API编程接触少,找得个例子改的,帮忙把F10~F11的贴出来谢谢
jquery 怎么没加载数据?急急急
jquery 怎么没加载数据?console.log(err)没报错,但数据没加载过来,这是什么回事rnrn经过断点调试的时候发现可以加载数据,取消断点后就加载不了,这是怎么回事?rnrn```rn rn```rnrnrn```rn [WebMethod]rn public static Hashtable LoadData(string linkid)rn rn DataTable dt = links.getlinkall(Convert.ToInt32(linkid));rn string html = "";rn foreach (DataRow dr in dt.Rows)rn rn html += " " + dr["ItemName"].ToString() + "";rn rnrn string linkname = links.getlinkinfo(Convert.ToInt32(linkid)).Rows[0]["GroupName"].ToString();rn var data = new Hashtablern rn "billCount",linkname ,rn "billCount1",html,rn ;rn rn //获取数据rnrn return data;rn rn```rnrnrn
急急急!SERVLET怎么没显示啊?
与本机目录完全相同的 SERVLET放到服务器上就不显示,各位说说什么原因啊?
关于系统热键的问题!急~
为什么我的程序在98运行了游戏泡泡堂后在游戏界面里,热键失效了?切换回桌面又没有问题了!rn我在XP和2000下使用都没有问题!!高手求救啊!
MFC应用程序的F10热键的默认功能怎么屏蔽?
我想响应F10的事件。
为什么没屏蔽掉按键???
function killKeyDown(id,id1)rn rn var c;rn var idd=document.getElementById("id");rn var idd1=document.getElementById("id1");rn if(document.activeElement.id!=idd ||document.activeElement.id!=idd1)rn rn alert("tt");rn if(event.keyCode==8)rn rn alert("kill");rn event.keyCode=0;rn event.returnValue =false;rn rn rn rnrnbody中调用如下:onkeydown="killKeyDown('txt_mc','txt_tcbh')"我的意思是焦点如果在id,id1下??就不屏蔽掉,可是为什么都屏蔽了:txt_mc,txt_tcbh是两个文本框的id???
急,怎么屏蔽掉提示的信息?
如baidu搜索的textbox中,如果你曾搜索过,那么下次搜索,当你输入上次的信息时,下面会有提示rn请问,怎么屏蔽的,我看到过有这么一种方法,虽能给我提示一二rn分只有20,只给一人
我实在没招了,救我!!!
我在SDI中拆分了2个窗口,左边是CFormView,可是我发现里面得CStatic控件好像和其他地方得不一样;rn当我重载它的CtlColor,在里面用pDC->Textout(33,44,"fgfg");根本看不到.我跟踪了一下,其实是打出来了得,只是当这个函数结束时字又被抹掉了,所以我没看到;不知道为什么会被抹掉?难道和CDialog有关,因为CDialog也有好几种.
没招了,Hibernate 的 not mapped 问题
错误提示:rnorg.hibernate.hql.ast.QuerySyntaxException: User is not mapped [select count(*) from User u where u.setUsername = :username]rn at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180)rn at org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:111)rn at org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:93)rn at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:327)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3441)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:3325)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:733)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:584)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:301)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:244)rn at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:256)rn at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:187)rn at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:138)rn at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:101)rn at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:80)rnrn错误所在行rnHQL语句 :session.createQuery("select count(*) from User u where u.username = :username")rn .setString("username", u.getUsername());rnrn实体类和表名都是 Userrn配置文件 :rn折腾一天了,就是不知道哪错了,求指点。。。
JAVA急急急急急
我在数据库中读出一个INT型rnString id=rs.getString("id");rn强制转换后rnint id1=Integer.parseInt(id);rn创建rnselectvo vo=new selectvo();rn加到selectvo里面的setId方法面里面取出id;rn vo.setId(id1);rn怎么会错呢/rnrnrnselectvo.javarnrnpackage vo;rnrnpublic class selectvo rnprivate String ggwn;rnprivate int id;rnpublic String getGgwn() rn return ggwn;rnrnrnpublic void setGgwn(String ggwn) rn this.ggwn = ggwn;rnrnrnpublic int getId() rn return id;rnrnrnpublic void setId(int id) rn this.id = id;rnrnrnrnrnrnrnselect.javarnrnpackage select;rnimport java.sql.ResultSet;rnimport java.sql.SQLException;rnimport java.util.ArrayList;rnimport java.util.List;rnrnimport javax.servlet.http.HttpSession;rnimport javax.servlet.http.HttpServletRequest;rnimport vo.selectvo;rnimport java.lang.Integer.*;rnimport login.DataBaseOperation;rnpublic class select rnpublic ResultSet diaoyong(HttpServletRequest request) throws SQLExceptionrn DataBaseOperation aa=new DataBaseOperation();rn aa.DataBaseOperation1();rn HttpSession session = request.getSession();rn List listarray = new ArrayList();rn String sql = "select biaoti,id from ggwn";rn aa.DataBaseOperation1();rn ResultSet rs = aa.executeQuery(sql);rn while (rs.next()) rn String dd1=rs.getString("biaoti");rn String id=rs.getString("id");rn rn int id1=Integer.parseInt(id);rn int a=1;rn System.out.print("+++++++++++++++++++++");rn System.out.print(a);rn selectvo vo=new selectvo();rn vo.setGgwn(dd1);rn vo.setId(a);rn listarray.add(vo); rn rn session.setAttribute("selectvo", listarray);rn rn return rs;rn rnrnrn
DataGridView遍历 真是没招了
[code=C#]rn string staffids = "";rn foreach (DataGridViewRow row in this.dataGridView1.Rows)rn rn if (Convert.ToBoolean(row.Cells[0].Value))rn rn staffids += row.Cells[1].Value.ToString() + ",";rn rn rn[/code]rn我这个dataGridview第一列为checkbox,假如说现在有a,b,c,d四行,我选中a,b。通过断点看到只有a被选中,如果我之选中a那么运行程序后,发现a没有被选中。rn这是为什么 ? 应该在么办? 谢谢指教!
奇怪,我实在没招了。。。
我在VC6.0中调用delphi 的动态联接库,为什么,在动态联接库的窗体上执行操作,比如保存文件等操作时,我的主窗体却最小化了。当动态联接库的窗体关闭之后,主窗体有恢复了,请各位高手指点指点。
求助大虾!实在没招了!
问题现象: rn1.Outlook Express 和 MsnMessager 启动的时候特别慢。程序启动后马上进入进程挂起状态,在任务管理器内看到CPU占用率为 0,msimn 和 msnmsgr 进程的CPU占用率为零,内存占用量保持不变。约一分钟以后,这两个进程才会被激活,进入正常执行阶段。运行和关闭阶段无异常。 rnrn2.IE浏览网页的时候,如果网页上有BBS登陆窗口之类的表单存在,则在窗口切换或者点击“登陆”之类的提交按钮时IE也会进入挂起状态。同1现象一致,一分钟后恢复正常。 rnrn机器环境: rnP4 2.0G, 华硕主板, ATI Randon 9200 se, 256M SDRAM ,声卡网卡内置 rnWindows2000 Professional SP4, IE6.0 , OutlookExpress ,MSNMessager6.2 rnrn已尝试方法: rn1.替换imagehlp.dll , 无效 rn2. 升级到IE6.0SP1, OutlookExpressSP1 , 无效 rnrn已安装软件: rnoffice2003, macfee virusScan 8.0,微软拼音2003,金山词霸2003,Daemon3.0 , rnVC6,QQ2004,popo2004, winrar rnrn系统一个星期前刚重装,重装过程没有异常,一开始都没有问题的,不知什么时候就出现了,找不到问题原因,不知道各位有没有碰到过? rn
C#怎么实现系统热键
如金山词霸,最小化到系统托盘,然后使用金山词霸热键设置里面设置的热键呼出主窗口(比如:Ctrl+Shift+C)。请问C#怎么实现这种功能?
~~急急急急急,系统进不去了~~~~
win2000系统在进蓝天白云时键盘死,主机好像还在运行中.
急急急急急!!!!系统无法启动了。
今天我把mandrake的那个分区以及交换分区用pq8.0删的一干二净,重起之后:rngrub> rn然后就等待输入了.rn我该怎么编辑这个grub呢??rn原来我的c:是98,c,d,e是fat32 f:是xp,f,g是ntfs.原来的linux在g以后,ext3和swap,格了合并以后是ntfs.rn这下惨了,我的xp是不是没就了?如果fdisk /mbr的话,应该只有98的启动了?rn我很想弄明白这个启动的编辑啊rn好像grub很优先的,怎么把他删了,或者改过来?原来的菜单是linux failsafe windows.rnrn各位大侠,帮帮忙啊,我实在不愿因为小小的grub重装系统,或者格盘.rn谢了先!!!!!!!!!!rn要多少分都可以啊,只要能妥善解决!!!!!!!!!!!!!!!!1
java swing awt 怎么有错??急急,在线等待中
/*rn * To change this template, choose Tools | Templatesrn * and open the template in the editor.rn */rnpackage bigwork;rnrnimport java.awt.Color;rnimport java.awt.Container;rnimport java.awt.Dimension;rnimport java.awt.Font;rnimport java.awt.Graphics;rnimport java.awt.event.ActionEvent;rnimport java.awt.event.ActionListener;rnimport java.awt.event.ItemEvent;rnimport java.awt.event.ItemListener;rnimport java.awt.event.MouseEvent;rnimport java.awt.event.MouseListener;rnimport java.awt.event.MouseMotionListener;rnimport java.awt.event.WindowEvent;rnimport java.awt.event.WindowListener;rnimport javax.swing.JButton;rnimport javax.swing.JFrame;rnimport javax.swing.JLabel;rnimport javax.swing.JPanel;rnimport javax.swing.JRadioButton;rnrnclass MyWork extends JFrame implements ActionListener, MouseListener, MouseMotionListener, ItemListener, WindowListener rnrn int i, j;rnrn ;rnrn void Init() rn this.setSize(new Dimension(660, 670));rn this.setLocation(15, 15);rn this.setVisible(true);rnrn rnrn @Overridern public void paint(Graphics g) rn g.setColor(Color.pink);rn g.fill3DRect(10, 40, 490, 490, true);rn g.setColor(Color.black);rn for (i = 0; i < 16; i++) rn g.drawLine(30 + 30 * i, 60, 30 + 30 * i, 510);rn g.drawLine(30, 60 + 30 * i, 480, 60 + 30 * i);rn rnrn rnrn public void button() rn Container con = getContentPane();rn JPanel panel = new JPanel();rn con.add(panel);rn panel.setLayout(null);rn JRadioButton b1 = new JRadioButton("黑子先行");rn JRadioButton b2 = new JRadioButton("白子先行");rn JButton b3 = new JButton("重置游戏");rn JButton b4 = new JButton("开始游戏");rn b1.setBounds(500, 20, 80, 30);rn panel.add(b1);rn b2.setBounds(500, 60, 80, 30);rn panel.add(b2);rn b3.setBounds(500, 100, 80, 30);rn panel.add(b3);rn b4.setBounds(500, 140, 80, 30);rn panel.add(b4);rn JLabel Lab1 = new JLabel("白子赢了!");rn JLabel Lab2 = new JLabel("黑子赢了!");rn Font fnt = new Font("Serief", Font.ITALIC + Font.BOLD, 28);rn Lab1.setBounds(400, 550, 280, 30);rn Lab1.setFont(fnt);rn panel.add(Lab1);rn Lab2.setBounds(100, 550, 280, 30);rn Lab2.setFont(fnt);rn panel.add(Lab2);rn rnrn @Overridern public synchronized void addMouseMotionListener(MouseMotionListener l) rn super.addMouseMotionListener(l);rn rnrn @Overridern public synchronized void addMouseListener(MouseListener l) rn super.addMouseListener(l);rn rnrn public void actionPerformed(ActionEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void mouseClicked(MouseEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void mousePressed(MouseEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void mouseReleased(MouseEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void mouseEntered(MouseEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void mouseExited(MouseEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void mouseDragged(MouseEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void mouseMoved(MouseEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void itemStateChanged(ItemEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void windowClosed(WindowEvent e) rn rnrn public void windowOpened(WindowEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void windowClosing(WindowEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void windowIconified(WindowEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void windowDeiconified(WindowEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void windowActivated(WindowEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrn public void windowDeactivated(WindowEvent e) rn throw new UnsupportedOperationException("Not supported yet.");rn rnrnrnpublic class Main rnrn public static void main(String[] args) rn MyWork MY = new MyWork();rn MY.Init();rn MY.button();rn rnrn
急!!是不是中招了??
昨天down了一个软件(java sdk) 后,就时不时自动出现播号,如何办呢?
急急! 怎么将桌面右击菜单屏蔽掉?????
rt
java 应用程序绑定系统热键
java 应用程序绑定系统热键
如何屏蔽掉系统菜单的移动项的功能及其热键
-
急急急。vcd没音了。
我的新Msi845E集AC97。用三星DVD,现在读VCD出不了音。DVD牒没问题。玩游戏也有音。可就是放CD、VCD没音。!在win98下也能出音。其它一切正常。
模糊查询没效果,急急急
这是一段模糊查询,但是没效果,请大家看一下,谢谢,下面贴源码:rn存储过程:rnCREATE PROCEDURE SearchMTphone rn@KeyWords varchar(100),rn@return int outputrnrnASrnif exists(rnselect tb_MobileTelephone.MTSerialNumber, tb_MobileTelephone.MTName,rn tb_MobileTelephone.MTType, rnConvert(char(10),MTContractStartingTime,120)as MTContractStartingTime,rnConvert(char(10),MTContractEndTime,120)as MTContractEndTime ,rnconvert(char(10), MTUsingStartingTime,120) as MTUsingStartingTime , rnConvert(char(10),MTUsingEndTime,120)as MTUsingEndTime , tb_Vendor.VendorName,rn tb_UsingType.UsingTypeName,rntb_BusinessTransaction.BusinessTransactionNamernFROM tb_MobileTelephone INNER JOIN tb_Vendorrn ON tb_MobileTelephone.VendorId = tb_Vendor.VendorIdrn INNER JOIN tb_UsingType ON tb_MobileTelephone.UsingTypeId = tb_UsingType.UsingTypeId rnINNER JOIN tb_BusinessTransaction ON tb_MobileTelephone.BusinessTransactionId= tb_BusinessTransaction.BusinessTransactionId where tb_MobileTelephone.MTSerialNumber like '%'+@KeyWords+'%'rnunionrnselect tb_MobileTelephone.MTSerialNumber, tb_MobileTelephone.MTName,rn tb_MobileTelephone.MTType, rnConvert(char(10),MTContractStartingTime,120)as MTContractStartingTime,rnConvert(char(10),MTContractEndTime,120)as MTContractEndTime ,rnconvert(char(10), MTUsingStartingTime,120) as MTUsingStartingTime , rnConvert(char(10),MTUsingEndTime,120)as MTUsingEndTime , tb_Vendor.VendorName,rn tb_UsingType.UsingTypeName,rntb_BusinessTransaction.BusinessTransactionNamernFROM tb_MobileTelephone INNER JOIN tb_Vendorrn ON tb_MobileTelephone.VendorId = tb_Vendor.VendorIdrn INNER JOIN tb_UsingType ON tb_MobileTelephone.UsingTypeId = tb_UsingType.UsingTypeId rnINNER JOIN tb_BusinessTransaction ON tb_MobileTelephone.BusinessTransactionId= tb_BusinessTransaction.BusinessTransactionId where tb_MobileTelephone.MTName like '%'+@KeyWords+'%'rnrn)rnrnset @return=1rnelse rnset @return=0rnGOrnrnrnC#代码:rnpublic partial class Account_MTInfo : System.Web.UI.Pagernrn string conn=ConfigurationManager.ConnectionStrings["SQLCONN"].ConnectionString;rn protected void Page_Load(object sender, EventArgs e)rn rn if(!IsPostBack)rn rn ShowMTphone();rn Label1.Visible = false;rn rn rn ///rn ///绑定手机信息rn ///rn private void ShowMTphone ()rn rn MTphoneGd.DataSource = ExecPro.ExecPro.ExecuteDataset(conn, CommandType.StoredProcedure, "ShowMTphone");rn MTphoneGd.DataBind();rn rn protected void MTphoneGd_PageIndexChanging(object sender, GridViewPageEventArgs e)rn rn MTphoneGd.PageIndex = e.NewPageIndex; rn rnrn private void SearchMTphone()rn rn SqlParameter[] parms = new SqlParameter[2];rnrn parms[0] = new SqlParameter("@KeyWords",SqlDbType.VarChar,100);rn parms[0].Direction = ParameterDirection.Input;rn parms[0].Value =SearchTxt.Text;rnrn parms[1] = new SqlParameter("@return", SqlDbType.Int);rn parms[1].Direction = ParameterDirection.Output;rnrn ExecPro.ExecPro.ExecuteNonQuery(conn,CommandType.StoredProcedure,"SearchMTphone",parms);rnrn int returns;rn returns = Convert.ToInt32(parms[1].Value.ToString());rn if (returns == 1)rn rn MTphoneGd.Visible = true;rn Label1.Visible = false;rnrn rn elsern rn MTphoneGd.Visible = false;rn Label1.Visible = true;rn rnrn rn protected void SearchBtn_Click(object sender, EventArgs e)rn rn SearchMTphone();rn ShowMTphone();rn rn rnrn前台代码:rn rn rnrn 请输入关键字:rn rn rnrn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rnrnrn本人刚开始学习,所以请大家帮忙一下,非常感谢rnrnrnrn
相关热词 c# gdi 占用内存 c#中遍历字典 c#控制台模拟dos c# 斜率 最小二乘法 c#进程延迟 c# mysql完整项目 c# grid 总行数 c# web浏览器插件 c# xml 生成xsd c# 操作sql视图