Click here to Skip to main content
15,910,878 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: problem related to textbox Pin
Zaegra9-May-09 4:00
Zaegra9-May-09 4:00 
GeneralRe: problem related to textbox Pin
nazimghori9-May-09 4:13
nazimghori9-May-09 4:13 
QuestionRe: problem related to textbox Pin
nazimghori9-May-09 4:19
nazimghori9-May-09 4:19 
GeneralRe: problem related to textbox [modified] Pin
Zaegra9-May-09 4:30
Zaegra9-May-09 4:30 
Questionwhat is the purpose? Pin
Willington9-May-09 1:57
Willington9-May-09 1:57 
AnswerRe: what is the purpose? Pin
Dave Kreskowiak9-May-09 7:17
mveDave Kreskowiak9-May-09 7:17 
QuestionHelp Needed Pin
DarkSorrow388-May-09 7:58
DarkSorrow388-May-09 7:58 
AnswerRe: Help Needed Pin
Dave Kreskowiak8-May-09 8:58
mveDave Kreskowiak8-May-09 8:58 
First, without seeing any code, it's very difficult to say what you did wrong.

But, I'll take some guesses.


Ishaan Karnik wrote:
(1) I am using LINQ command to delete an entry from database in my application. After the code block is executed that particular entry is deleted from database however the binding navigator control or my application doesnot acknolodge the change. I tried to acknolodge the change by refreshing and/or updating the form and/or control.


This is probably because you bypassed the dataset/datatable the controls are bound to and made the changes directly to the database. You'd have to refresh the dataset/datatable, or whatever collection you used so it retrieves the new data from the database.


Ishaan Karnik wrote:
(2) I also want to how to count total number of entries present in the database and the index of the current selected entry dynamically. After deleting or adding an entry the change is not acknolodged.


Again, you bypassed the local collection of records when you made the update.

You can get the current number of records from the DataSet/DataTable or collection that you used to hold the data. There are Count and Length properties you could use to determine this.

The currently selected record would be available from the BindingNavigator you have setup.


Ishaan Karnik wrote:
(3) I am doing a hardware project where I use a service which when activated will get my COM port(serial port) in passive open state. I am achieving this by creating a infinite for loop. However by doing this whenever my I start the service I am not able to use rest of application.


Your description doesn't make sense. Are you saying that you're running your application as a service?? This is a REALLY bad idea. If not, then did you launch your actual work under a seperate thread in the services OnStart event? (This is where some code small code snippets would help a lot!)

Ishaan Karnik wrote:
I plan to use one thread for the service but don't know if I should use thread for other elements.


What other elements?? What is this service supposed to do??

Ishaan Karnik wrote:
I have a doubt if the signal arrives when the thread is not in focus then would the signal be lost.


COM port communucation is buffered, so it's unlikely that you'll lose anything.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Help Needed Pin
Wes Aday8-May-09 11:34
professionalWes Aday8-May-09 11:34 
GeneralRe: Help Needed Pin
Dave Kreskowiak8-May-09 12:06
mveDave Kreskowiak8-May-09 12:06 
QuestionHow can I make report with VISUAL BASIC 2008? Pin
Mohamed_Khalil8-May-09 6:30
Mohamed_Khalil8-May-09 6:30 
AnswerRe: How can I make report with VISUAL BASIC 2008? Pin
Henry Minute8-May-09 7:06
Henry Minute8-May-09 7:06 
AnswerRe: How can I make report with VISUAL BASIC 2008? Pin
Anubhava Dimri8-May-09 23:13
Anubhava Dimri8-May-09 23:13 
QuestionNumber of items added to a listbox Pin
suvigna8-May-09 5:25
suvigna8-May-09 5:25 
AnswerRe: Number of items added to a listbox [modified] Pin
dan!sh 8-May-09 5:49
professional dan!sh 8-May-09 5:49 
AnswerRe: Number of items added to a listbox Pin
EliottA8-May-09 5:51
EliottA8-May-09 5:51 
AnswerRe: Number of items added to a listbox Pin
Alan N8-May-09 5:55
Alan N8-May-09 5:55 
GeneralRe: Number of items added to a listbox Pin
suvigna8-May-09 6:03
suvigna8-May-09 6:03 
GeneralRe: Number of items added to a listbox Pin
suvigna8-May-09 6:04
suvigna8-May-09 6:04 
GeneralRe: Number of items added to a listbox Pin
Luc Pattyn8-May-09 6:08
sitebuilderLuc Pattyn8-May-09 6:08 
GeneralRe: Number of items added to a listbox Pin
suvigna8-May-09 6:22
suvigna8-May-09 6:22 
GeneralRe: Number of items added to a listbox Pin
Luc Pattyn8-May-09 6:50
sitebuilderLuc Pattyn8-May-09 6:50 
GeneralRe: Number of items added to a listbox Pin
suvigna8-May-09 7:10
suvigna8-May-09 7:10 
GeneralRe: Number of items added to a listbox Pin
Luc Pattyn8-May-09 7:22
sitebuilderLuc Pattyn8-May-09 7:22 
GeneralRe: Number of items added to a listbox Pin
suvigna8-May-09 7:28
suvigna8-May-09 7:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.