vb.net

LINQ and VB.NET and the expression tree that is compiled is breaking SubSonic 3

I've been trying to solve a little problem with VB.NET and the expression trees it likes to generate. I have a simple test... Public Sub ActiveRecord_Find_By_NonKey_Returns_123() Dim orders = Order.Find(Function(item As Order) item.EmployeeID = 1) Assert.Equal(Of Integer)(123, orders.Count) End Sub One would expect that to wor...

Shadowing events in .NET

Hi, In VB.NET there is a keyword 'shadows'. Let's say I have a base class called 'Jedi' and a derived class called 'Yoda' which inherits from 'Jedi'. If I declare a method in 'Jedi' called 'ForcePush' and shadow that out in 'Yoda' then when calling the method on an instance of the 'Yoda' class, it will ignore the base class implementat...

As a .NET beginner, what should I learn and where can I find open source projects?

I'm beginner programmer in the amazing world named ".Net". I've a lot of questions well, what I should learn C# or Vb.net What's the best blogs which talk about .Net technology and Open source projects Where can I find good tutorials, free books and ideas of projects how can I progress in ".Net" please, share your knowledge , your OPM...

how to send resposne using Json object

Hello everyone, i am working on a project in which a server page is called through XMLHttp and now i want to retrieve response the called page in json object. and i never used json so i don't have any idea about it so please tell me how i can make json object in my server side vb.net page. ...

DevXpress Xtratab wont give value to textbox control until i load the tab

Hello. So i have this very weird problem. I have a form A with 3 tabs, which calls another form B passing in the value of a memoedit(textbox) control.This memoedit control is placed on the third tab. When i try to call form B, without having accessed the third tab, NO value is passed. However, when i try to call form B, after having ope...

mysql datareader

Hello Sir, I am using MySql 5.0. I using Mupliple datareader in same connection i get error message. Is possible to use multiple Datareader in same connection? I using Mysql Connection is MySqlConn.ConnectionString = "SERVER=" & gServerName & ";DATABASE=" & DBname & ";user=" & gUserName & ";password=" & gPassword & ";MultipleActi...

Saving drawn images in a PictureBox

I created a form with a PictureBox. I created a drawing in the PictureBox. But I can't save the file to a specified folder without dialogue controls. Only through code. Please help me if any one knows a solution for this problem. Thank you.... ...

database search function

i want to search a record from sql database searching by first name so im using a function in the data layer but it is not working please correct me where i went wrong here is my function: Public Function searchCustomer(ByVal custFname As String) As DataTable Dim tabletdata As New DataTable Dim conn As New SqlC...

http POST with asp.net

I've an annoying ASP.NET problem: I have a Perl script (see below), which gets the form_info variable. Now unfortunately, it's http POST, and not http GET, so Request.Querystring doesn't work... Now I have to replace the Perl Script with an asp.net page/app, but my problem is that I cannot process the string form_info when I don't have...

VB.NET Write yields #ERROR 448#

I have a bit of ported code. It was automatically converted from VB6 to VB.NET. Now when if finally compiles, it produces output files with some values replaced with literal #ERROR 448#. I will eventually find out what's the problem, but I just wonder, if anyone knows what does this error mean. VB's Write function is used. ...

Tab index for RadioButton list

How to put a tab index for each item in the radio button list? ...

VB.NET Write number formating

Have a bit of code ported from VB6 to VB.NET. It uses Write and WriteLine all the way to produce output files. Now, I need to compare outputs from original and ported code, but there's one tiny problem with number formatting. For instance whereas VB6 code Writes just .5, the VB.NET code produces 0.5, instead of .0005 (in original) it w...

how to create a json object in vb.net 2005

I want to create a json object in vb.net to send the response back javascript function to do something please tell me if anyone have any idea about it. ...

How to save BitmapImage / WriteableBitmap using SaveFileDialog in Silverlight 3.0?

How can a WriteableBitmap from Silverlight be Saved onto the File System, I am unsure what to do with the FileStream to make this work, it can be in Bitmap, PNG, Jpeg format etc, as long as a commercial library is not required. Is it possible to do this? Here is my call to SaveDialog, below: Dim SaveDialog As New SaveFileDialog ...

Show or hide a title bar on demand

Hi, I want to add an option to my windows form application (written in vb.net) that will give the user the option to hide the menu bar and the title bar. I can do the menu but i'm not sure what the best way is to hide the title. I could just change the FormBorderStyle to none, but is that the best way of doing it? Cheers Luke ...

Ensure connection to a POSPrinter connected via COM

Hi, I need to make sure that the connection to a POS printer is successful before writing data to the database and then printing a receipt. The POSprinter is normally of type BTP 2002NP but may differ. The common thing is that they are all connected via COM-port and NOT usb, so no drivers installed at all on the client. Can I send some...

Number validation in required field validator

Is it possible to put Number validation in required field validator in asp.net text box? ...

Why isn't there a trace level in log4Net ?

Hi I was just wondering why there isn't a trace level in log4Net. This level seems to be missing and I sometimes feel the need to use it, for example to output what events are being executed in an application. This feature is a part of log4J. I know I can create a custom level like is talked about here but I don't want to put time and...

Converting vb.net code to python for educational purposes. Output of a numeric value not occuring.

My day job is mainly coding in vb.net, so I am very familiar with it. While doing my first few dozen project euler problems, I used vb.net just to get the hang of the problem styles. Now I'd like to use project euler to help me learn a new language and have been running a couple in python. However. I've hit a snag. The following code...

State is not retaining in checkbox

There is a check box in my webform. whenever i tick it ..and click on back button it will not retain its state ..when i comeback using the next button to the same page. Note: view state is enabled in the control There is no code in the page load event Code below: Protected Sub chkBx_SR_wu_SelectedIndexChanged(ByVal sender As Object...