vb.net

Using javascript on an aspx page that uses a master page, which contains the page in a form?

I have a master page which contains everything that inherits it within a form. A page inheriting from it needs to run some javascript to act on a text field on a page. However, I can't seem to reference that text field through the javascript, since the form begins on the master page. The following line will come up bogus: document....

Importing a MDF file into SQL Server 2008?

I have inherited a VB.net web app that I'm making some changes on. I'm perfectly capable with the programming side (VB and MSSQL) but I'm getting lost with the tools. I was given a zip file of the code and everything. I opened the sln file in Visual Studio 2005 and it worked fairly easily with little modification. Running the app works ...

Unable to set the DropDownHeight of ComboBox

I cannot get the DropDownHeight of the ComboBox set properly to display all the items. I am using a control that inherits from the ComboBox. I have overridden the OnDrawItem and OnMeasureItem methods in order to create multiple columns and text-wrapping within a column if it is required. This all works fine. The problem occurs when I...

where is user.config?

in vb.net i am trying to save application settings but for USER but i cannot find the user.config file when does this file get created? i searched my entire hardrive. i also searched the entire project. ...

My.Settings.mytext has a value but i cannot find where it is set?

onload i do a msgbox (my.settings.mytext) it returns a value, but i cannot find where in the project i have set this value!! it was definitely set by me, but i cannot find it anywhere. please help it is attached to textbox1.text, but that has no value either ...

Pushing a list of colors into colordialog.customcolors

I have a list of colors i.e.: "1323523, 12342, 2354, 356234, 234234" Each of these numbers stand for a color. I would like it so that when there is colordialog.showdialog, this list of colors shows up in the colordialog custom boxes. this is how i am doing it currently, but for some reason the customcolors are not being added. i know ...

Insert pcl escape sequences into PCL built from multiple PDF files

What tools/methods are available to build pcl stream from PDFs. We have a bunch of generated PDF files that get tied up into one big pdf. I need to generate a print job to print this with the ability to insert pcl escape sequences (to control paper feed and output bin stacking) per page. As of now we use the VB.Net printing classes, con...

Error handling of stored procedure having known errors being called from vb.net

I have sql server2000 encypted stored procedure. I can not modify them. Typicaly all the procedures manipulate row by row different tables using cursors etc. When the stored procedure is executed at the Query Analyser screen, I see error being thrown in between but the procedures continues till all the records have been processed. This...

How do I get the portal's current login URL in DotNetNuke?

In the context of a DNN module, what's a good generic way to find out what the URL to the login functionality is? ...

how do you check if email address is working?

is there any way to check if an email is active without sending it an email? (meaning that it does not get returned) if i have 20,000 emails in my email list, and i do decide to send all of them an email, how can automatically cross out the email address that got returned? ...

What happens if we add lines to IL code and add breakpoints to our program?

If I add let's say 1 line at the beggining of a method, if I set a breakpoint through Visual Studio on the first line, will it point to the first line or the second? If it will flag the wrong line, is there anything we could do when editing .exe files to ensure a regular debugging session later? Isn't there something like setting line x...

In vb2005.net is there a function that works like the php function "htmlentities"

In VB 2005 .Net is there a function that works like the php function "htmlentities"? ...

Best way of designing the flow of code when reading/writing from database

So I'm trying out a concept tool of mine where I need to be able to read and write data from a database real easy. I've set up the form as I like and spread around different text boxes and dropdownboxes to read the data from the database. And I've got it all to work and all, but there's a small bug I don't fully understand why's there. S...

Concurrency violation: the UpdateCommand affected 0 of the expected 1 records

Hi, I've got a simple mdb database set up in Visual Basic Express Edition (winforms) and I'm trying to update data from a datagridview to a database. I've databinded the textboxes to the columns I want in the datagridview and this works great. After some struggling, I've finally managed to have the values updated in every row of the da...

Convert below C# dynamic data context registration code to VB?

model.RegisterContext(typeof(NorthwindDataContext), new ContextConfiguration() { ScaffoldAllTables = true, MetadataProviderFactory = (type => new DefaultTypeDescriptionProvider(type, new AssociatedMetadataTypeTypeDescriptionProvider(type))) }); In particular the MetadataProviderFactory Line... I can't qu...

Getting extra HEX bytes when concatenating data files.

I'm concatenating data files, but the problem is that I'm seeing some extra bytes where the files are joined. The new file has extra bytes. I had thought this was maybe a problem with encoding. Here are the methods that I've tried to use to concatenate the files. The first example I'm getting extra 0xA0 0x00 bytes. Dim inputfiles(...

VB.NET split string with quotation marks in it

Trying to split a line wherever "," appears (with the quotation marks), The problem is VB.NET uses " to start/end strings, so I tried using .Split(""",""") but that then splits it by " not "," ...

vb.net use string as a previously created object instance

Not sure exactly what I need to do to make this work, so my description may be lacking at first. Essentially I am writing a program launcher that recreates itself each time on load. It pulls the data regarding the tabs and buttons from an SQLite database and builds itself dynamically at run time. I get my problem when I pass the tab name...

How to pass a variable from one app domain to another

Hello. I'd like to know, if I have a variable,for example, a string, how to pass its value to my new app domain: static string _str; static void Main(string[] args) { _str = "abc"; AppDomain domain = AppDomain.CreateDomain("Domain666"); domain.DoCallBack(MyNewAppDomainMethod); AppDomain.Unload(domain); Console.Write...

Passing values back and forth appdomains

Hello. I have the following code: public class AppDomainArgs : MarshalByRefObject { public string myString; } static AppDomainArgs ada = new AppDomainArgs() { myString = "abc" }; static void Main(string[] args) { AppDomain domain = AppDomain.CreateDomain("Domain666"); domain.DoCallBack(MyNewAppD...