vb.net

Add header and footer macro

Hi. I need to make a difficult makro. When the makro has been activated (will happen via a button), it has to add a header and a footer to the document. Also page1/frontpage needs a different header and footer than all the other potential pages. So far, I have accomplished making page1/frontpage to work - somewhat. I did this by recor...

Help needed to create LINQ Summary Line

Hi all I have got the following LINQ query, apologies for the poor variable naming. Dim bla3 = From c In crdc.SRAs _ Where c.acad_period = ReviewCredential.AcadPeriod _ And c.periodID = ReviewCredential.PeriodID _ And c.aos_code = ReviewCredential.AoSCode _ And c.aos_period = ReviewCredential...

How to get the value from request.querystring in vb.net

Hi, I am using VB.NET My problem is that, I have got below request.querystring http://localhost/ISS/Training/TrainingUpdate.aspx?cpuserid='50'&%20courseid='6'&%20status='accept' Now I want to pass all the above three querystring in a sql stored procedure parameter. for example, Try Dim conString As String =...

Asc(Chr(254)) returns 116 in .Net 1.1 when language is Hungarian.

I set the culture to Hungarian language, and Chr() seems to be broken. System.Threading.Thread.CurrentThread.CurrentCulture = "hu-US" System.Threading.Thread.CurrentThread.CurrentUICulture = "hu-US" Chr(254) This returns "ţ" when it should be "þ" However, Asc("ţ") returns 116. This: Asc(Chr(254)) returns 116. Why would Asc() and ...

LINQ VB how to select records with the max date (highest date)

I know how to do this in C#, but my dev team doesn't use C#... here is the answer in C#: http://stackoverflow.com/questions/470440/linq-how-to-select-only-the-records-with-the-highest-date How do I do this in VB? Essentially, if I knew how to write lambda expressions in VB, I would be set, but the materials I have found are not helpfu...

How to develop a standard (C# vs. VB.NET)

So, I don't want this to get into a flame war between C# and VB.NET developers. This is purely from a standpoint of a development department going forward. We've been a VB.NET company for years, but that was mainly due to who we've hired. That requirement has fallen off the wayside as of late, as we've pulled in 2 guys who specialize in ...

Very strange evaluation problem

I'm working on some VB.net code that I inherited and am seeing some very strange behavior when trying to lookup a value in a Interop.Scripting.Dictionary object. Here's the output from my watches. The expressions are in italics and the return values are bolded: oAwayBalanceTeam.Dates("40068") 1 {Integer} Object CStr(Int(oTempBooking.S...

Unable to access oci.dll due to application type.

Hello, I am using attempting to create a connection to an Oracle database via entity framework in Visual Studio 2008. I am running 64 bit Vista Ultimate. At first, I had difficulty even making a connection to the db through Visual Studio, but eventually got things working by installing 10204_vista_w2k8_x64_production_db AND ODTwithODAC...

Remove DotNET menu dropdown grey area for icons

How do I remove the area in a dropdown menu where the menu item icons are typically displayed? I just need to remove the grey area in this particular dropdown, other dropdowns of menu items in the same menu bar need to retain this area because they do have icons. Edit: This is WinForms. ...

Programatically moving the mouse

A bit odd maybe, but how can I move the cursor using code in vb.net? I can't seem to find the proper method.....thanks for the help! This is in vb.net ...

how can we retrieve data from database in ASP.NET using VB as language?

i need the complete code for retreiving the data from a database.. i m coding in visual web developer and using VB as coding language. I m using SQL SERVER as database handler. ...

Text preview in VB.net

I'm looking for a way to mirror text (like how SO provides a preview of the text being entered, as its being typed). I also need to be able to modify the texts output environment (whether it be a textbox/messagebox/ect.) for background/text color (selected from a dropdown menu). Suggestions on the best way to go about this? FYI I'm using...

VB.NET: Building an Event Manager - Listeners

I'm in the research stage of a project that will require the development of a custom event manager for computer game events. In the past, the routing code for polling the correct pieces of code for event consumption has been placed entirely within the Event Manager's ProcessEvents() function. Example: The UI needs to be provided the o...

gmail api: replying to emails already in inbox with vb.net

has anyone worked with gmail with vb.net? how do i access my inbox and find emails that were sent from a specific person and send a reply to them? i have a list of people with whom i keep in touch with from school and since i have not replied to them in a while, i would like to feed a list of email addresses into the program that would...

Need to convert C# to VB.NET

I have some C# source code that I got off the Internet and I want it in VB.NET. How would you convert it because I don't know C#. ...

Convert integer into a color, starting at red and cycling through

How do you convert an integer to a usable color (for PictureBox.CreateGraphics)? The color should start at red, cycle to orange, yellow, etc. and come all the way back around to red again. This is in vb.net. If I cannot do this, how do I use PictureBox.CreateGraphics with a hex code instead of a pen? Thanks for the help! ...

Calling Subroutines from lambda in vb.net

I find myself calling functions from lambdas frequently as the provided delegate does not match or does not have sufficient parameters. It is irritating that I cannot do lambda on subroutines. Each time I want to do this I have to wrap my subroutine in a function which returns nothing. Not pretty, but it works. Is there another way of ...

XML Literal with Linq statement

I am going to be performing an XSLT transformation, transforming XML to an HTML table. It's tabular data, so that's why I'm not using div's. ;) Anyway, I need to repeat one part of the XSLT for the size of one of my collections. Here's a snippet of the code... Dim styleSheet = <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet ver...

Reading a Stored Proc not working for me when passing values.

Why is this not working for me? What is wrong with my code below? I am trying to read a stored proc and applying values to labels. Getting error that say "Incorrect syntax near CareerInner"......... Private Sub LoadData() ' Define data objects Dim conn As SqlConnection Dim Comm As SqlCommand Dim reader As SqlDataRead...

Parameters and Datasources

I have a formview that I select data based on values I get from referencing a master page. I want to set my parameters to some value behind code instead of storing those values in a hidden field and setting my parameter source to a control(hidden field control) IS THIS POSSIBLE? If so - How? I'm using an SQL datasource ...