Hi folks,
I seem to have a date formatting problem every day!
I am querying a table and am getting a date back in the format dd/mm/yyyy (as a string btw). Brilliant! thats what I want. But, now I want to convert that string to a date so i can do
dim dayNumber as integer = day.DayOfWeek
But when I convert it to a date it changes it ...
Hi all, I am making my first web application with ASP.NET and I am having a rough time. I have previously created the application I am working on as a Windows Form application and it works great, but I am having problems with the HTML side of things in the web application. My issues are pretty minor, but very annoying. I have worked w...
This is a general question, but I'll explain my specific need at the moment:
I want to find the framework class that enables one to choose an image at design-time. I can find the editor that is used at run-time - its the Drawing.Design.ImageEditor. At design time, however, a different editor pops up which allows one to choose an image ...
I have two message boxes one after another.
Dim msgResult as MessageBoxResult
msgResult = MessageBox.Show("Message", "Title", MessageBoxButton.YesNo, MessageBoxImage.Question)
if mesgResult = MessageBoxresult.Yes Then
'some code.....
MessageBox.Show("Another message", "Title", MessageBoxButton.OK, MessageBoxImage.Error)
End if
Wh...
Hello!
Basically, what I want to do is launch an *.exe file when I click on a button. I want this done in VB.NET. I have Microsoft Visual Basic 2008 Express Edition.
The button I have is called 'btnYES'.
How can I launch an *.exe file from the click of this button?
Please help!
...
I have a simple Dictionary(of String, Object) that I need to iterate through and change items depending on some conditions.
As I can't modify a collection that I'm iterating through, how do I achieve this?
For example, the following obviously causes an Invalid Operation Exception:
Dim mOptions As New Dictionary(of String, Object)
mOpt...
I have a VB Web Site project that has recently (and mysteriously) stopped importing the "System" namespace by default.
I'm having to either place an Imports System line at the top of each code behind, or preface everything with System, which is fairly annoying, not to mention redundant. I can't for the life of me figure out how to get ...
Hi,
I would like to know how I would go about altering the HTML that is displayed by my VB.net application using GeckoFX. What I would like to do restrict certain words/names/attributes from showing in the browser.
Any info/links would be greatly appreciated.
Thanks!
...
In a DataTable object, is there added overhead to looking up a column value by name thisRow("ColumnA") rather than by the column index thisRow(0)? In which scenarios might this be an issue.
I work on a team that has lots of experience writing VB6 code and I noticed that didn't do column lookups by name for DataTable objects or data gri...
Can you point me to a reference on accessing data in a Java applet using Visual Basic? I need to do some research on whether or not it is feasible for the project I am working on, but it has been difficult to find any information. Thanks.
...
I have a site that has a profile page and I would like to allow the users to upload an image for the profile picture. I forsee a problem if the user select an image that is larger than what I am allowing for the site. Is their a good refrence or example how to accomplish this?
The site is developed in Visual Studio 2008 with VB.NET 3....
Long story, long:
I am adding a web interface (ASPX.NET: VB) to a data acquisition system developed with LabVIEW which outputs raw data files. These raw data files are the binary representation of a LabVIEW cluster (essentially a structure). LabVIEW provides functions to instantiate a class or structure or call a method defined in a .N...
I have an app that allows the user to choose an image, at design time, either as a straight image, or from an image list.
All cool so far, except that this is not happening from the visual studio property browser, its happening from a property grid that is a part of a type editor.
My problem is, both the image picker (actually resource...
i have a page called a1.aspx, with the Masterpagefile = a1_master.master. Now the master page has its own divs and images for design purposes. I want a way where when i load a1.aspx, certain chosen 's and images should be hidden (visible=false). how can i do this?
how can i change the visibility of a div or an image in the master page f...
Why does the first if statement evaluate to true? I know if I use "is" instead of "=" then it won't evaluate to true. If I replace String.Empty with "Foo" it doesn't evaluate to true. Both String.Empty and "Foo" have the same type of String, so why does one evaluate to true and the other doesn't?
//this evaluates to true
If N...
Hi,
I am using Watin mostly to automate thing I do by hand. Sometimes, I need to change proxy. To do this, I have to set up IE to use a local proxy all the time (listens locally and forwards to a remote porxy), and then by hand change the settings of that program each time I need to use another proxy.
This is not an elegant solution! ...
Hi all, I am trying to polish up a program a program that I have converted from a Windows Form in to an ASP.NET Web Application. I have several questions:
1.) I have a drop down box where users can select their variables, but users can also enter their variables manually into various text fields. What I want is for the drop down box ...
I just started working on a small team of .NET programmers about a month ago and recently got in a discussion with our team lead regarding why we don't use databinding at all in our code. Every time we work with a data grid, we iterate through a data table and populate the grid row by row; the code usually looks something like this:
Di...
I downloaded the .NET 4 framework from Microsoft here: http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en
I installed and rebooted.
When I go to compile options --> target framework... .NET 4 isn't on the list.
Is .net 4 not compatible with VS2008? It would be nice if M...
how would i put the contents of a webpage into a string?
it would be the same thing as hitting ctrl+A and copying and pasting it.
is there a way to do this programmatically without 'sendkeys' ?
i do not want to look at the html source at all, i just want to copy the text on the site
...