I was following the example laid out here for implementing AJAX panels in MVC. I'm using VB.NET, but the conversion is pretty straightforward. However, I can't seem to get it to work, and I'm running out of ideas as to why. Here is my code:
HomeController:
Function Index() As ActionResult
Return View()
End Function
Function Archiv...
I have previously been told that I should always use Randomize() before I use Rnd() in a vb.net application, yet it always seems to work fine without it. What does adding Randomize() do for me in this case? It doesnt appear to affect my application in the least.
Thanks for the help!
...
If I have a text stored in db, file, resource does not matter:
<code><%= Integer.MaxValue %></code>
Is there a way to do this:
Dim el As XElement = XElement.Parse({variable containing text above})
and to have it evaluate the expression Integer.MaxValue?
...
Can someone explain the nuts and bolts of what's really going on under the covers?
...
I'm writing a macro to let me replace the spaces in a string in my code file with underscores. I've gotten as far as finding the beginning and end of the string as instances of VirtualPoint. Now I'm trying to select from the first VirtualPoint to the second. And I can't figure it out.
I know the VirtualPoints are correct, because I'm...
If i wanted to crop an image in VB.net, how would I go about doing it? I am trying to let the user drag out the box they want (system.drawing.rectangle), and it will automatically remove the edges surrounding the box.
My first problem is primarily the fact that I cannot make the system.drawing.rectangle visible. It is not displaying at ...
I have a situation where I want to run a Visual Studio macro that has the user type something in an InputBox, then inserts a snippet and includes that text somewhere in it. Unfortunately, I can't figure out how to insert the snippet from macro code. It seems like it'd be something like
DTE.ExecuteCommand("Edit.InvokeSnippetFromShortcu...
I got an out of memory exception in a photo editor thingy i was making in vb.net. The bitmap image is constantly changing, and I always Dispose() of it after it has been sent off to the other bitmap. Is it being stored in a temp folder and using up all my space on the computer, or what? It always bugs after about 8 bitmaps have been draw...
I was wondering if there was a function in user32 that could enable a hwnd control if it is disabled (grayed out) If I know the handle then can I do this? Also, if it is a menuitem, can it be done too?
Thanks
...
Hi, I'm coding a Windows Forms App that has a StatusStrip that displays status informations to the user, and hints when the mouse is over relevant things. However, when the program is on it's minimal window size, the text sometimes is bigger than the whole StatusStrip, and the label simply dissapears. There must be a workaround to this, ...
hi guys,
I have to add one month to todays date and have to get date after 1 month.Can anybody help?
...
I am new to programming and am having difficulty with understanding object lifetime / instantiation.
I have a windows from with a datagridview and a panel.
The datagridview has a checkbox column and a list of names which is populated from a database.
The panel has a few text boxes (e.g. name, age, favourite sports team) and a 'save c...
I'm trying to write 2 extension methods to handle Enum types. One to use the description attribute to give some better explanation to the enum options and a second method to list the enum options and their description to use in a selectlist or some kind of collection.
You can read my code up to now here:
<Extension()> _
Public ...
This is kinda....a two part question. The first one is much more important than the second one, both of these are in the same project, and in vb.net.
How can I constrain the bounds of a rectangle object, which is controlled by a mouse, so it cannot be drawn outside a PictureBox? It is kindof a standard lasso control, the user can click ...
EDIT: This question was written in spanish. The question is (paraphrased) "How to create a timer in Expression Blend using WPF in VB.NET 2008?".
...
How do you convert a System.Drawing.Bitmap image to any other type of image? I tried CType, which failed, since I do not know the type for .png or .jpg. I cannot find it anywhere on google either.
What is the most efficient method to do this, which keeps the quality of the image as high as possible?
...
I think I am overthinking this issue a little and I'm hoping someone can help me out.
I have an ASP.NET application with a SQL Server back end. I am storing all my dates in UTC format and doing the appropriate conversions to the local time zone of the browser viewing it. One of the pages asks for a start date and end date (no times). ...
Once a user has selected a file with the open file dialog, how can I handle this action? For example, if the user has selected a .txt file and has opened it, how can it get the data from the file? How can it return the path that the user found the file in? Then, how can it save the file?
I know that there is a OpenFileDialog.OpenFile() ...
Hi All,
I have 200+ text boxes in vb.net application. Let me make it clear all are simple text boxes. now customer demand to have formatted number value while input or viewing record. With Format() i can play for viewing but during add/edit mode in text box (While user typing value) nothing happened
I want this result 1234567.0090 to 1,...
I have an vCard application that needs to read vCard Data, and have found a RegularExpression which gets the FieldName, Encoding and FieldValue from the file, here it is below:
^(?<FIELDNAME>[\w-]{1,})(?:(?:;?)(?:ENCODING=(?<ENC>[^:;]*)|CHARSET=(?<CHARSET>[^:;]*))){0,2}:(?:(?<CONTENT>(?:[^\r\n]*=\r\n){1,}[^\r\n]*)|(?<CONTENT>[^\r\n]*))
...