vb.net

flex and .net 2.0 web service, how to allow access from other domains?

I created a proyect in flex builder with application server type set to none when I debugg, I can acces the web service from my local machine thats on a site http://mysite.com/ws/ws.aspx?wsdl when I upload the flex app to mysite.com/myapp.html it works great but when I upload it to myapp.mysite.com/myapp.html it wont access the web se...

Reformatting Tools

Is there a good tool available (preferably opensource or free) that will take C# or VB.NET source code, prettify it (format it consistintly) and convert it into HTML source code (so I can post it on the web)? ...

Hosting IE 8 In WinForms and Opening a PDF

We have a form that hosts the WebBrowser control. That is the only control on the form. We pass the form the file path of a temporary PDF file and it does: WebBrowser1.Navigate(Me._PathToPdf) When the form is closing, it navigates away from the PDF file: WebBrowser1.Hide() WebBrowser1.Navigate("about:blank") Do Until WebBrowser1.Re...

How do I insert a bit of XML into an XDocument using Visual Basic?

I'm trying to create a sitemap in an ASP.NET MVC project. This code in my Node controller... Function Sitemap() As ContentResult Dim db As New EfrDotOrgEntities Dim Nodes = db.Node.ToList Dim RequestUrl As Uri = Url.RequestContext.HttpContext.Request.Url Dim AbsoluteRoot As String = String.Format("{0}://{1}", RequestUrl...

What is the easiest way to create a overview 'outline' of the most important sections of an app in VS 2005 (VB.net) ?

I want to code in our VB.net to be a little easier to follow both to improve readability and also make it a lot easier to know the best place to put a new bit of code/feature. Essentially, I'd like to have a 10,000 foot "outline" of the code" with hyperlinks from the outline to the code. It needs to be portable, so BookMarks won't do t...

how to disable images in webbrowser control

in vb.net 2003 , how to disable images loading in webbrowser control ...

File Upload with RegularExpressionValidator not working with Firefox only IE.

Hi I have a FileUpload with a RegularExpressionValidator with the following Validation Expression ^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.gif|.jpg|.JPG|.JPEG|.GIF|.jpeg|.png|.bmp|.3dm|.3dmf|.ai|.drw|.dxf|.esp|.mng|.png|.ps|.psp|.svg|.tiff)$ This way i make sure the User only Upload Images............ But for some reason it does ...

Best way to make sure the user dont upload images more than 1MB in size.

I am using ASP.net with VB.NET. Is there some Validator that i can use that will check the size of the uploaded image? Else what must i do in code to make sure that the user do not upload images more than 1MB? Thanks in advanced p.s C# code will also do, i can use a converter to VB.NET EDIT For some reason when i change the maxReques...

Problem getting checkboxes to work in ASP.NET

I am working with an old web application developed in VB.NET 1.1 framework. I am having an issue with checkboxes. I have the following code for my checkbox: <asp:TemplateColumn HeaderText="Reviewed"> <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> <ItemTemplate> <asp:checkbox ID="chkAppRev" Runat="server" OnCheckedCh...

alternate input in mobile compact framework - buttons and device keyboard

Ok, I have code that is working (posted after this) but before I expand it I wanted to throw it out here and see maybe better ways of doing what I am doing. the problem: the SIP panel sucks - sometimes all I need is numbers or letters entered into a mobile application - most of my users wind up not using the stylus but fingers so I need...

Getting AssemblyVersion Regular Expression

I am trying to get the version number out of the AssemblyInfo.vb file and replace it with a number that I choose. Dim text as string = string.empty Using sr As New StreamReader("C:\foo\AssemblyInfo.vb") text = sr.ReadToEnd() Dim fileVerReg As New Regex("^[^']*(AssemblyVersion[(""].)([^""]*)") Dim m As Match = fileVerReg.M...

Preformatted text in VB - What is the C# @ equivalent in vb?

This is probably really obvious and I'm being dense. In C# I can do this: string = @"this is some preformatted text"; How do I do this in VB? ...

Using Parameters with an Oracle ODBC Connection

I'm connecting succesfully to an Oracle 10g DB with an the Microsoft ODBC for Oracle driver. Regular queries without parameters work fine, but parameterized queries act as if the parameters aren't getting passed in. ex. --this works fine Select * from tbl1 where column1 = 'test' --this doesn't select * from tbl1 where column1 = ? --...

Using Select Statement from 1 database to insert into another database using VB .NET

Hi, I am currently writing a VB .NET application where I am trying to open 1 database, create a select statement and then post the results into another database file using Microsoft Access database 2003. The code seems to stop executing at the statement cmdJetDB.ExecuteNonQuery() I am using the following code: Dim conn1 As OleDbConne...

Converting OpenNetCF GetSignatureEx to Bitmap on Desktop

I have a SQLite database which is running on a handheld which is capturing signatures using OpenNetCF's Smart Device Framework 2.1 running under Windows Mobile 6.1. The signatures are captured from the Signature control using the GetSignatureEx method and stored in the database. What I want to do now is reconstitute the signatures on th...

What is the best way to code up a Month and Year drop down list for ASP.NET?

I have an internal application that I needs to have a drop down list for two date type elements: Month and Year. These values are not in a database or other repository of information. I know I could just setup a list with the values I need by adding them to a dictionary like object (I need to correlate the Month to the numerical repre...

Problem Importing Web Service

I have created a web service in a virtual directory using VS 2008. I have tested the service by going to the .asmx page and everything is working fine. So I selected the "Add web reference" option under the solution and typed in the .asmx URL. It found the web service successfully and added the reference to the project. However, whe...

Using System.IO.Delete to remove certain files from a directory?

I have 2 images inside a folder called Pics..... Image1.jpg and Image2.jpg. What code must i place inside my Submit button to just delete Image1.jpg located here "~/Pics/Image1.jpg" Any help would be great!!! ...

Call VB program from JAVA

Hi, I was wondering if someone could tell me the best way to call a Visual Basic program from JAVA. I have a few VB applications that I want to run from a JAVA application that I'm building. Thanks! ...

How to get value in a textbox that is readonly

hi guys, I have a textbox.In its onclick iam calling a javascript fn to call calendar.Texbox is readonly. Clicking on textbox calendar is coming and value is showing in textbox. But on clicking submit button where I have written code to save, there i am not getting value in textbox. What may be the reason for that? ...