vb.net

How to create a LINQ query based on this SQL?

Hello, i try to convert this kind of sql query into linq in visual basic, but i get stuck on how to make a percent.. I also don't know how to use linqpad for creating this linq Please help. SELECT CASE RIGHT(PICName, 3) WHEN '(P)' THEN 'Problem' WHEN '(R)' THEN 'Request' ELSE 'Other' END AS [Reque...

creating a trial version of Visual Basic application

hi everyone I created an application in vb.net using visual studio 2010. I want to create an installation file of the application that will not be free with a license so I want to create a trial of 30 jours.if there a way I thank you in advance ...

ToolTip on DataGridView

I've got a ToolTip showing when hovering over a row in my DataGridView - Works great except for the ToolTip flickering when over a row that displays it. Private Sub DataGridView1_MouseHover(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGridView1.MouseMove Dim hit As DataGridView.HitTestI...

VB.NET OpenFileDialog Latency on Win7

I have a winform, VBExpress 2008 with a single button and this code behind it to illustrate the problem: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click OpenFileDialog1.ShowDialog() MsgBox(OpenFileDialog1.FileName) End Sub When I select a file (in my case small PDF's) I am g...

ASP.NET Session Performance

I'm experiencing performance issues on my asp.net application. Sometimes it would take the client 30-40 seconds to execute a command, where as in sometimes it would take 3-4 seconds. I tried SQL Profiler and I don't see any problems. I was not able to replicate the issue on my side, under the same scenario when the client was trying. I...

Rhino Mocks: How to verify a method was called exactly once using vb.net and AAA syntax

I am trying to use the AAA syntax in Rhino Mocks with VB.Net to validate that a method was called only one time. I can't seem to get it right. With this code, if the repository is called twice, it returns nothing on the second call, and the test passes. I would have expected the test to fail when VerifyAllExpectations was called. <Te...

How to create a macro for string containig ,<Status, tinyint,>

I just read little bit about macro and was trying to create the one in .net I was able to do very small operations since I dont know much about vb.net and regular expressions. I want to create a properties and variable declaration for the below code. What will be the regular expression to parse this string. So that I can get all the com...

Random Questions using DetailsView (Help)

Greetings everyone, i would just like to ask how do i retrieve data rows in my table in my database randomly... i was able to create an online quiz wherein it displays the question,choices in consecutive order but what i want is, every time when user will start a quiz it will show questions in random order. I am using mssql 2005 as my d...

Does VB.NET 2010 support arrays of anonymous objects?

In C#, one can create an array of anonymous objects with new []. This was not supported in earlier versions of VB.NET, but a comment by Chris Dwyer in another StackOverflow post suggests to me that it might be supported in VB.NET 2010. I haven't been able to confirm this though. Does VB.NET 2010 support arrays of anonymous objects? ...

android: transfer sqlite database from pc to device via usb programatically

The situation is this. I have an application written in vb.net. it consists or two parts. One on a PC and the other on a handheld windows mobile 6 device . The desktop program transfers a SQLServer compact database to and from the handheld device using activesync via USB. Potentially we want to look into having android handheld devices a...

Entities and multiple databases

Hi, We've got the following scenario: Central Database (replicated across multiple servers) Client Database 1 Client Database 2 The Central db has Users and Roles amongst other things The Client dbs have similar tables to each other but with some fields tweaked - contact, address, etc... At present, each client db has its own user/r...

VB.Net Search namespace for a generic type (Reflection)

Hi, I'm attempting to dynamically register entities and configurations with a context (ef4 code-only) I would normally do: Private Shared Sub ConfigureDatabase(ByRef Builder As ContextBuilder(Of ContextExtension)) 'Load configurations for each of the tables (Entity sets) in our database... ConfigureEntity(Builder, New ContactConfi...

IIS 7.5 Web application inheriting from parent web.config

Well the title says it all im using a asp.net 4.0 project. My file structure looks like this RootSite  -Web.Config  -WebService (WebApplication)   -Web.Config Now the WebService seems to get some parts of the web.config from the RootSite, the problem here is <configuration><system.webServer> So i tryed to place this around that sect...

How do I bind the SelectedValue of a ComboBox to a Property?

Hi, I've got a ComboBox with an ItemsSource which I've bound to a List(Of String). What I'd like to do is have the XAML update a String property when the SelectedValue of the ComboBox changes. I've seen a whole bunch of examples for TextBoxes which use Text="{Binding Path=MyString}" sort of stuff, but I don't really think that'll be...

Can't find file

Hi! I'm working on a custom menu system in asp.net that populates a horizontal menu on the fly based on which menu item is selected from the website's main menu. This 2nd menu is populated from a custom XML file in the website's root directory. (See http://loganyoung.wordpress.com/2010/06/03/asp-net-horizontal-submenu-from-xml/ for det...

How To Receiving Email In VB.Net?

Hi Friends I Done The Project In VB.Net About Sending Mail.. But I Try About Receiving Mail.. I Didn't Make It..So AnyBody Help Me To Make That Receiving Email Project In VB.Net.. Friend If U Have That Project Please Send To My Email Address.. Email : [email protected] Thank U.. ...

What calls ListViewItem_ItemChecked event?

I have a ListView, checkboxes = true, View = List. On the start of the project, I go through, do some calculatations and determine if the database is empty and what I should do from there. Well one thing I do is iterate through an array (from a dll) of Report Names and add the list view items to the ListView because we want it to be as...

ASP.net dropdown value help

Hey all, i am in need of some help trying to figure out why this dropdown is not selecting the value after i pick one. Here is the ASP.net for the dropdown part: <div id="divItemsPerPage" runat="server" style="font-size:60%;font-weight:bolder;padding-right:15px;"> Items per Page: <asp:DropDownList ID="ddlPerPage" runat="se...

VB.NET namespace issue regarding explict (named) vs. implicit (global or root) namespaces

I have a solution that contains many projects all using the same root namespace. No code files explicitly name a namespace. So lets say the root namespace is ExampleRootNamespace. Now a problem comes into play when I want to add an explicitly named namespace to one of the code files I am working on. I want to be able to isolate this cod...

ExtJS combobox sometimes hides behind window greyed out

So the code below is called when a user selects Save on an ExtJS popup modal window. This window ONLY contains a combobox. Now, sometimes when a user saves this, and then re-opens it later on, the combobox will appear BEHIND the window all grayed out, unable to get to. Other times, it will be fine and work, and no difference in events ha...