Windows窗体中vb.net中的文本更改事件中未触发断点 [英] break point not firing in text changed event in vb.net in windows forms

查看:82
本文介绍了Windows窗体中vb.net中的文本更改事件中未触发断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,VB Guru's

实际上,我有2个datagridview控件,当用户在文本框中输入文本后,这些控件应填充数据.此代码是在文本框的文本更改事件中编写的.

要求是这样的.假设如果数据库中的year列的值为1/3/5,则数据应填充到datagridview 1中;否则,如果年份为2/4/6,则数据应填充到datagridview 2中. />
但是令人惊讶的是,来自数据集的数据仅被填充到一个数据网格中.甚至在我把条件放在之后.

最重要的是,如果我设置了断点,则不会触发,并且消息提示,当前不会找到该断点.没有可执行代码与此行关联.

知道如何解决这个问题吗?

Anand

Hi VB Guru''s

Actually I have 2 datagridview controls which should get filled with data after the user enters text in a textbox. This code was written in text box''s text changed event.

The requirement is like this. Let''s say if the year column from database has values 1 / 3 / 5, the data should get filled in datagridview 1 else i.e. if the year has 2 / 4 / 6, the data should get filled in datagridview 2.

But surprisingly, the data from dataset is getting filled in one datagrid only. Even after I put if condition.

And on top of it, if I put break point, it is not firing and the message says, the break point will not currently be hit. No executable code is associated with this line.

Any idea how to solve this?

Anand

推荐答案

在Visual Studio中,构建"菜单->清洁溶液.然后重建您的项目.
In Visual Studio, Build menu -> Clean Solution. Then Rebuild your project.


这篇关于Windows窗体中vb.net中的文本更改事件中未触发断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆