I have a type lets call it "MyType". I have a List(Of MyType). Here is what i'm doing:
MyList.Sum(Function(x) x.MyFieldToTotal)
"MyFieldToTotal" is a decimal. For the life of me i can't figure out why x above is an object rather than a type of "MyType". Shouldn't Type Inferencing be working in this case? Even in intellisense i get "...
Basically, i don't want to use <input type="submit"> mainly because it's a button, i'd rather user ActionLink, so i am using Ajax.ActionLink, and i'm not sure what to place in the routeValues argument for it to pickup the new (edited) data (user enters comments etc) and send it to my action. would any of you know? thanks.
this is what i...
How do I create a custom header for a combo box using WPF and VB.NET? I would like to have items in the dropdown list to show an image next to text, but when the item is selected, have only the text show in the closed combobox. Also, I would like to be able to do this in the code, without using data templates.
Is this possible?
...
similiar question to the one asked before by someone, about age and date.
I have 2 fields in sql server 2008
DOB = "01/05/1952"
licence_age = 16
how do i get the year he go his licence from this information?
...
i hae a for loop which goes like this -
for i = 0 as integer to 100
result &= "Name" & sqldr("name")
result &= "Lastname" & sqldr("lastname")
result &= "dob" & sqldr("dob")
next
the sqldr is the sql datareader (not important here)
i want my end result to be
Name1 = Sam
Lastname1 = Davis
dob1 = 01/01/1966
Name2 =
...
Na...
Is there another way to easily make a POST request in .NET other than the WebRequest class? I have a very, VERY small piece of data I need to post:
password=theword
...but WebRequest randomly, and I mean randomly, drops the data when posting to my server. I've tested it by using a chunk of code from my server that dumps the reque...
i'm just sending a normal POST request using Ajax.BeginForm... i output the form elements using the .TextBoxFor and .HiddenFor etc... all as i should... and when it's posted via ajax to my action method, the object in the action method (named "Comment") is not populated with the values!
Am i missing something? here is the relevant part ...
I need to design a simple label designer that could print labels for shelf items, just like in a grocery store. The requirements are that the label shall contain a name, a barcode (e.g. Code39 symbology), price and room for some extra text.
Where do I begin?
Guys/gals, give me some ideas how to accomplish it. Is there anything of the ...
Hi,
I'm working on a project for my companies intranet which requires that multiple attached documents to the main DTO of the project need to be autoprinted in the background. The problem is it's a web project and I want the printing to be done under the surface. Now because it's on an intranet only certain people can use it and I can s...
I'm making a VB.NET application that needs to generate a number of different reports. The customer is already using Crystal Report and is happy with that so the plan is to integrate with that.
What I basically want to do is:
Manually create template(s) in
crystal report
User selects type of report in
application
User filters the data...
I currently have this code use for printing a table in mysql database , but there's a problem, the print button is also shown when I print the table. Do you know of any alternative or even a vb.net code that will print what is currently on the web browser in vb.net(the one being dragged from the toolbox used to view web pages or php file...
Hi! Which is the best way to call remote dll? Where can i find examples for this?
Thanks!
...
Where is .class files are used ?
In C#.net or ASP.net or in VB.net or only in Windows applications or only in web applications or in only console applications
...
hello,
i'm creating an Asynchronous socket programming in vb.net. i've utilised the code from Asynchronous client and server code frtom the following links:
http://msdn.microsoft.com/en-us/library/fx6588te.aspx for server program
The client program is present in the same link in /bew39x2a.aspx(sorry i'm a new user so could post only on...
is it possible to transfer files using vb.net? Cutting the files from a certain directory and copy it to another
...
Does anyone here have used a SE nuke and knows how can program like this been made ?
It works similar to imacros on its own web browser
Any way this can be done using VB or c# ?
...
Given this example:
Public Class Car
End Class
Public Class Vovlo
Inherits Car
End Class
Public Class BMW
Inherits Car
End Class
When I receive a Car object, how can I determine if the Car object is a Volvo, a BMW or a Car?
I know I can use TypeOf, but when there are several classes that inherits from the Car class, this b...
Hi
I have an array x in size of objects (between 1 and 100) and I want to increase the size to 101 ... I've resized the array and that adds the objects but unfortunatly (not suprising) the added items have not been initialised, do I've reverted to using a do while loop and adding the elements indiviually, but looking at the code around ...
I have 2 forms, 1 is for control and the other is for display. Its 2 because the 1 for display will consume the whole screen and there's no space for buttons.
Im trying to control form4 using form2 or some other form, navigating a certain webpage in the process.
I have this code for the control:
but it does not work, what would I do?
...
what is the maximum size of a vb.net form. So that it will consume the whole screen.
...