.Net 2008 IntelliSense Odd Behavior?

Jul 26, 2011

I am primarily a C# developer; however, I am currently working on a project for a client who preferred VB.net. I have managed to switch over fairly well, with one frustrating exception. When editing a C# file in Visual Studio pressing enter will select an item out of the IntelliSense window and keep the cursor at the end of the selected statement.

However, when editing a VB file, pressing enter selects the item out the IntelliSense popup AND moves the cursor to the next line. I realize that this is a small thing, but it drives me crazy, because it makes it really hard to switch between C# and VB projects.

I have searched for everything I can think of in Google and found nothing. Does anyone know of a way to change the IntelliSense selection behavior?

View 2 Replies


ADVERTISEMENT

VS 2008 Create A Certain Button Behavior?

Sep 9, 2009

I am trying to create a button behavior such that when you click the button it fires the click event as normal & runs the code under it. But if you click & hold the button for 1 second then it jumps to a different sub & runs some other code. I got my button working that way for the most part, using a timer & the mouse down & mouse up events. The only issue I have is that after the timer fires after 1 second & I execute my alternate code, the normal button click event still fires when I release the mouse button & runs that code. How can I cancel the normal click event so that only the alternate code runs when I click,

View 16 Replies

VS 2008 ToolStripComboBox Behavior Different Than ComboBox?

Jul 20, 2010

I have a bound ToolStripComboBox. When a user types a value and hits 'Enter', assuming the entered value is an item in the ComboBox, this Sub should fire:

View 8 Replies

VS 2008 Change Intellisense?

Apr 8, 2009

I don't know if it's possible, but i want to change some of the defaults intellisenses. For example when i write try and press enter, the IDE puts the catch ex as exception and the end try, but i want that the finally word it's added too.

View 11 Replies

VS 2008 Intellisense, Indexed Properties?

Sep 26, 2010

I've wondered this for a while, when I hover over an object's properties when the program is paused (from a breakpoint) I can see the values of each property but when it comes to a collection it wont list the objects in the collection unless I specify an index, how do I specify an index?Basically I have a form with a ToolStrip that has 12 items in it, I would like to see what the 12th item is but can't because it's an indexed property.

View 2 Replies

VS 2008 Intellisense Sensitive Comments For Enum?

Mar 28, 2010

I've found the ability to make meaningful Intellisense-enabled comments on my functions and sub routines absolutely priceless.

I'm wondering if I can do the same when an Enum is defined. I'd like for each Enum highlighted in the drop list to have some information associated with it. Can that be done?

View 3 Replies

VS 2008 TableAdapter.Update Method, Not Available In IntelliSense?

Jul 7, 2011

I have a TableAdapter I created in the DataSet designer. It contains joined tables and I set it up to automatically generate Insert/Update/Delete commands. I understand that I have to write my own UpdateCommand. I did so, in the DataSet Designer, for this particular TableAdapter.

The issue is that the Update Method is not showing up via IntelliSense, when I attempt to write code like this:

vb.net Dim x as Integer = Me.DPTableAdapter.Update(), IntelliSense does not show the Update Method with the parameters I set up.I created the same exact method with another TableAdapter, in the same manner, and it worked just fine.

I also call EndEdit on the BindingSource, I just did not put it in this post.

View 15 Replies

Strange Behavior Between SQL Server 2008 R2 And VS2010 (Win7 And WinXP)

May 16, 2012

I develop my VS2010 project in my laptop with SQL 2008 Standard. In my laptop everything is working good, using the following connect string as global public string when the main form loads:

[Code]...

View 12 Replies

Intellisense For Member Override In 2008 Express Edition

Sep 1, 2010

If I override a member (e.g AutoSize in the Button Class), then the intellisense no longer appears in the editor, forcing me to re-decorate the property. Is there an option somewhere that I need to check? ETA: Here's a code sample:

[Code]...

The intellisense explaining the AutoSize property doesn't appear.

View 1 Replies

VS 2008 Awckward Behavior From Multiple Form Instances Loaded Into A Dictionary?

Jul 27, 2009

Ok I have a project which has a MDI parent. Inside the parent I have multiple isntances of a form load(frmLine1t5). When my program loads it will load a different form(frmSelect) and if I manually load a different form(frmRetests) I can put frmSelect on top of frmRetests and bring one another to the front if it's clicked on(without using the bringtofront method)However as soon as I load a single instance of frmLine1t5 I immediately can no longer bring ANY form loaded into the MDI parent(before or after frmLine1t5 has loaded) to the front. I can only bring them to print IF I use .bringtofront method

View 1 Replies

VS 2008 Manipulating WndProc Messages Causes Weird Behavior When Changing Me.ShowInTaskbar

Oct 8, 2009

I am capturing a few system command messages (namely minimize/maximize/restore). Inside the WndProc override I am trying to change the form's Me.ShowInTaskbar value but it is causing weird behavior in that minimization and restoration does not occur properly.Can anyone think of a reason why changing this property would interfere with this? The reason I don't really want to post code is because duplicating the effect takes a bit of code/setup. My initial thought was that changing the property's value is somehow sending another windows message and canceling the one I am currently manipulating. I realize this is a little vague but it's a shot in the dark.

View 1 Replies

VS 2008 Subs/Functions Intellisense Listing Values To Parameters Upon Using It

May 30, 2010

I'm almost sure that I've seen this somewhere, but I can't find it anymore. Or maybe I'm imagining it, which would'nt be strange either.

When creating a sub or function and adding parameters used when calling it.

-Is it possible to list the parameters that I can enter when using it somewhere in my code?

E.g.

Public Sub MessageMain(ByVal Message As String, ByVal MessageType As String (List of possible values for MessageType)) Same for example as when you have boolean values in a sub/function. As soon as you use that somewhere in your code intellisense will present you with True/False to select.

I'd like the same for parameters in subs or functions I create and calling them from somewhere in my code. Saves me the trouble of remembering which options are available for those parameters.

View 8 Replies

Make Make Syntax Highlighting And Keyboard Behavior Identical For C# In Visual Studio 2008?

Aug 25, 2010

Types have their own color (cyan by default).Enter completes the auto-complete suggestion.

View 1 Replies

VS 2008 Make "Heisenbergian" Var Behavior?

Mar 14, 2010

I have some strange stuff happening within a class used only once for a single thread that lives within a STA. function pulls data from a socket via a blocking call, and then converts and writes the data to a string. The behavior of the string is where things go awry.The data is always written to the string without problem, but then when the string is then queried, any data within the string disappears immediately after.It most commonly happens on these lines:If DataLineRetrvd.Contains("ENDMSG") Then ...While DataLineRetrvd <> "" ...If DataLineRetrvd results in the above conditions being true, then immediately after the value of DataLineRetrvd is "".

View 5 Replies

VS 2010 Upgrade From 2008 To 2010 - Now LINQ - IntelliSense Is Not Working For LINQ Stuff

Apr 20, 2010

I just upgraded a project from VB 2008 to VB 2010. Before, the project did not use LINQ. I have started implementing it. So, I have updated the target framework from 2.0 to 3.5, and added a reference to System.Core, and imported the namespace System.LINQ to the entire project and also imported System.Data.LINQ into the form I'm working with (because it was not available in the list for Imported Namespaces in the references tab).

It's not throwing any errors now, but my IntelliSense is not working for LINQ stuff.

For example... I write this:

[CODE]....................

Then, if I type S. on the next line, the IntelliSense doesn't grab what it should for S (Only get Equals, GetHashCode, GetType, ReferenceEquals, and ToString, instead of the options I should get like Count, First, FirstOrDefault, etc...). If I Type S.First. then its the same thing, no IntelliSense that lists the available fields for S, just the standard options (Equals, GetHashCode, GetType, ReferenceEquals, and ToString). I should be seeing my column names in my table when I type S.FirstOrDefault.

So any ideas what is going on? When I type the code, for example, MessageBox.Show(S.FirstOrDefault.FirstName), it works perfectly. But it doesn't change the casing of the text (so it would read s.firstordefault.firstname) and no intellisense while doing it. But no errors. BTW - Everything works perfectly when creating a NEW VS 2010 application, it's just my projects upgraded from Visual Basic 2008 that have this issue.

View 2 Replies

Use A .Net 3.5 Behavior In WPF .Net 4?

Jun 14, 2011

How to use a .Net 3.5 Behavior in WPF .Net 4?

I get this error when I use .Net 3.5 in .Net 4:

Found conflicts between different versions of the same dependent assembly

I can solve problem with double click on that warning but it doesn't work in design view (It works for building well).

View 7 Replies

ASP.NET: Backspace Key Behavior?

Jun 29, 2011

I'm writing an in-house intranet application in ASP.NET and VB.NET. My 'customers' are beginner to medium-level users. All of our browsers are IE8 and above, standard.The application works great, except for one thing. The backspace key. When a user types an invalid number into a textbox, a RegularExpressionValidator and ValidatorCalloutExtender fire off and notify the user. Perfect. Except that, when the user closes the popup warning and notices the cursor is still flashing in the textbox, he/she feels it's time to hit the backspace key and delete that pesky field value.

Unfortunately, the browser interprets this action as a desire to go 'back' into the page history. My boss is screaming. His bosses are screaming. I have a headache.So, how can I turn off this behavior? I still need the backspace to eliminate characters in the textbox, but nothing else. Company policy here: Backspace is to delete characters from the screen. Nothing more, nothing less.

View 5 Replies

Different .NET Application Behavior?

Jul 8, 2011

Strange vb.NET application behavior/One application e.g. does some recursive operations against a ftp server as it synchronizes a local directory with a remote directory. When this part is finished, recursively I loop through the local directory to compare each individual file with a hash code table file retrieved from remote to be sure the source file and the destination file are identical. The processing speed to me during the coding was really satisfactory, but all over sudden the all over performance has been reduced by factor 3. So what happened was I closed an application named TeamSpeak. As you can guess it took me a while to figure out what was happening. This behavior is reproducible even with other applications like Outlook or Winamp?To make it short: e.g. TeamSpeak is up and running, my application runs 3 times faster than without TeamSpeak up and running ... same code - no changes !!!

View 1 Replies

Different Behavior Of The Combobox In .net?

Sep 10, 2010

I have a combobox in a Windows form. I set the properties of the combobox as follow:

AutoCompleteMode: Suggest
AutoCompleteSource: ListIems
DropDownStyle: Simple
DataSource: some binding source

Problem when user enter value to the textbox and open the dropdown and filter out the dropdown list. When user mouse click an item in the dropdown list, it will not select the item and paste it to the textbox. User uses the down arrow to navigate to the item and click on the "enter" key and it will not paste the selected item to the textbox. The only way to select an item is using the down arrow key to navigate to an item and then "Tab" away and it will paste the selected item to the textbox.I want to be able to use mouse click or "enter" key to select an item from teh dropdown list.I want to set the DropDownStyle as "Simple" so user can think it is "textbox" and start entering value to it.

View 1 Replies

Get Recordset Behavior In .NET With ADO?

Oct 15, 2009

how to negotiate a dataset via:

For Each dRow In quanDS.Tables(0).Rows
'do something to each row
Next

I now need to figure out now to loop through a subset of the records returned in the dataset - here's a VB6 example I need to convert:

strSQL = "select * from tblDQ order by xid, xcode, xDOS"
rsMaster.Open strSQL, conDB, adOpenDynamic, adLockOptimistic
rsMaster.MoveFirst

[code]....

View 2 Replies

.net - Maximized MDI Form Behavior?

May 18, 2010

My program shows some browser. From a browser user can open maximized MDI form with some report. When user is closing the report, first MDI form with browser is became maximized.

2 forms have same MDI parent. Can I change this behavior to leave my first browser form without maximizing after second report closed?

View 1 Replies

.net - Odd ComboBox Behavior On Resize?

Jan 28, 2010

I have an issue where a ComboBox control will change it's Text value when it is resized. Here is some sample code that I worked up:

Option Explicit On
Option Strict On
Public Class FMain
Private Sub FMain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
uxComboBox.DropDownStyle = ComboBoxStyle.DropDown

[Code]...

View 2 Replies

.net - Silverlight MaxItemsInObjectGraph Behavior?

Jan 27, 2011

I currently have a silverlight application which has silverlight class library. The silverlight class library has a WCF service reference which works as expected for small data. However we have come across a problem which is caused by the default value of maxItemsInObjectGraph. We have tested it with an increased value (called from vb app set in behaviour) and it works however we are unsure how to set the value of maxItemsInObjectGraph when it is in a silverlight class library (as it is only defined in the clientconfig file and no services are added to the client). I have seen posts about adding it to the web.config but this only seems to apply when the service is called directly by the app not by a class library?

View 1 Replies

.NET UserControl's MouseLeave Different Behavior?

Mar 22, 2009

I have a userControl (.NET 1.1 Winforms) that has a clickable picturebox as a button.Since I have lots of those usercontrols visible at the same time, I thought It could be nice if I just display the picture box when the mouse is over the usercontrol and hide it otherwise.To do so, I handle the MouseEnter and MouseLeave events of the UserControl, hiding and displaying the picturebox. That works fine.But when the clickable picturebox is visible I'm not longer able to click it (the hand cursor is gone and the click event is not firing).After some test, I realize that if comment all content on the MouseLeave handler that do something with my picturebox... this way the picturebox is clickable.I'm not using the correct event?

Here is the code...

Private Sub NodoEstablo_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.pictAdd.Visible = False
End Sub

[code]....

Update:If I resize the picturebox on MouseLeave (just to do something) it works.So far, changing Visible and Location in the MouseLeave prevent me for click the picturebox.

View 1 Replies

Datagridview Combo Box Behavior?

Jun 27, 2011

I have an unbound datagridview control whose first column is a combo box This contains a list of part numbers.I am having some problems with the datagridview automtically adding a new row when the combo box item is selected.If I select an entry from the data by typing in part number in full in the first row and pressing tab or enter then I get a new row created. No problems.However, if I then START typing a part number in the second row AND click on the part number in the list that is suggested then I DO NOT get a new row.However, if, on the first row I START typing a part number AND click on the part number in the list that is suggested I DO get a new row.

My code is as follows:

Private Sub dgOrders_EditingControlShowing(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles dgOrders.EditingControlShowing
Try

[code]....

View 11 Replies

Different Behavior Lauching Application From IDE And EXE?

Jul 28, 2010

an application from VB IDE (Debug mode) that application run correctly.If I run the same application from EXE (Debug Mode) that application fail.For accuray:I debugged this application (EXE) usin DbgView.exe and I see that the error is in the Application.Doevents.When the application.doevents occurs, the application stop for a long time than restart after long time or if i send some CTRL + TAB on keyboard.

View 2 Replies

Enter Key Behavior On Win7?

Mar 6, 2012

i have a application based on Visual Basic platform.. where Enter key action as Tab key ,, which ease the enter key to move from field to field, rather than the tab key.. its works perfectly in Winxp ... but i'm having problem in Windows7 ultimate..

View 1 Replies

Immediate Window Behavior Differences In C#?

Nov 16, 2011

I have noticed that the immediate window in VS 2010 behaves differently when debugging a C# project and a VB.NET project, although I haven't been able to find any specific documentation of this difference.

For C# projects, I can simply type in any expression, and it will be evaluated and displayed, i.e.

[Code]...

All other expressions exhibit the same behavior, including simple math such as '1 + 2'. Sometimes the error message is different though, as 1 + 2 results in the error 'Labels that are numbers must be followed by colons.'Is there a way to 'fix' this behavior and make the VB.NET immediate window behave more like the C# one? Having to type a ? in front of every statement can be a pain when using it frequently.

View 2 Replies

MyClass Equivalent Behavior In C#

Jul 26, 2011

The MyClass keyword behaves like an object variable referring to the current instance of a class as originally implemented. MyClass is similar to Me, but all method calls on it are treated as if the method were NotOverridable. I can see how that could kind of be useful, in some specific scenarios. What I can't think of is, how would you obtain the same behavior in C# - that is, to ensure that a call to a virtual method myMethod is actually invoked against myMethod in the current class, and not a derived myMethod (a.k.a in the IL, invoking call rather than callvirt)?

View 3 Replies

Serialport.Readexisting Different Behavior?

Mar 10, 2010

I'm using the following to read a serial port. When run it displays the data correctly but stepping through the program I find that it loops through the serialdatarecieved event for each character of the port input rather than reading all of it. So _msg only equals one letter at a time. I'm trying to set a variable equal to the entire input stream but only get one character of it.The end goal is to capture all of the data available on the port when the event triggers so that this data can then be processed. I tried using the bytestoread function, which gets the correct number of bytes to read, and then looped through to read a byte at a time but that didn't seem to work as I expected either. It just kept reading the first byte.

Imports System.IO.Ports
Public Class CommTest
Dim WithEvents SerialPort As New SerialPort

[code]....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved