Why are C# and VB.NET so similar?
Also, if they are so similar then why do they exist separately ? ...
Also, if they are so similar then why do they exist separately ? ...
Hello i am using Asp.net ,vb. I want to deny users who have not logged in with a message" you have to login to access this page". Can someone help me write the code in vb.net? Thanks in advance ...
I am using SQL EXPRESS EDITION 2005 and Created mdf data file using vb.net 2008. now i want to use this datafile in lan. i modified connection string "Data Source=.\SQLEXPRESS;AttachDbFilename=\Server\Data\Data1.mdf;Integrated Security=True;User Instance=True;Connect Timeout=60" it is showing security info error i want to use single ...
Please tell me the class to be used to print a paragraph of text that is to be printed on a printer, In vb.net, more than 1 page of text must be dynamically printed by retrieving data from the database. ...
Hey, I have a model-view-controller based web application. When the application starts up, I first call a clearup stored procedure. This basically removes any rows from the database which are now irrelevant. For example if the company had deleted a category but I had missed out the line to delete all products within this category, this ...
Hi, I developed one application in VB.Net 2010. It worked fine on my laptop. Now when I run this on another PC, it just crashes and give windows error as below. Application: CallinkMig.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidOperationException...
I'm using this function to return a value from multiple databases across three SQL instances (On the same server). I'm looping though a DataGridView that lists all the databases on one of the three SQL instances. Is there a faster way of doing this? It's quite slow using this method. Function DatabaseStatus(ByVal SQLServer As String, B...
Hello, I have to maintain an ASP.net application in VB.Net. There is a page with a FormView bound to a ObjectDataSource. I have to add some business logic on the ItemUpdating event of this FormView. Unfortunately, some the data that I need to add this business logic is not exposed on the FormView user-interface itself, so I can not us...
I am using an input box. In tat am getting the number as input. When the user presses OK the program is workin. But when I press the cancel button am getting a error message " Conversion from String "" to 'Integer' type is not valid " If i press cancel I need the program to end. and also i want to know how to move to other form when i...
I'm trying to execute CREATE USER with a given username (via sql parameter) exec sp_executesql N'CREATE USER @LoginName FOR LOGIN @LoginName;', N'@LoginName varchar(5)', @LoginName='myuser' Heres the code thats generating the above: Dim myCommand As SqlCommand = New SqlCommand("CREATE USER ...
When I try to split a string into a string list where each element represents a line of the initial string, I get the "square" character, which I think is a linefeed or something, at the start of each line, except the first line. How can I avoid that? My code is as follows: Dim strList as List(Of String) If Clipboard.ContainsText Then ...
Hi, I have a function that is exported by a C library with the following signature: extern "C" BOOL Func() The function is declared in VB.NET code like this: <DllImport("mylib.dll", CallingConvention:=CallingConvention.Cdecl)> Private Shared Function Func() As Boolean End Function The problem is that I get an ExecutionEngineExcept...
I am using two textboxes, one for roll number and the other for the corresponding roll number. And I am using 4 command Buttons Move First Move Previous Move Next Move Last When I click the Move First button I should get the first two records from database. When I click the Move Prev button I should get the previous two records from...
hello, is there is any 3 rd party library to play an mp3 file other than media player control.... ...
Solution setup: DAL (class library) BLL (class library) Common (class library (some common functionality - enums, logging, exceptions,...)) Application1 (Windows Application) Application2 (Windows Application) WebApp (Web application) ... Let's say I have a Customer entity, which is: a table in SQL server a CustomerDataTable in DAL...
I thought this would've been a lot simpler but at this point I'm confused and haven't progressed at all. Basically, I need to be able to accept a password from a user in a WPF app, encrypt it then store this in a database and be able to decrypt later on. However I'm not sure how to implement this. This is completely trivial so whether...
Hi, I read wikipedia but I do not understand whether extended ASCII is still just ASCII and is available on any computer that would run my console application? Also if I understand it correctly, I can write an ASCII char only by using its unicode code in VB or C#. Thank you ...
Hi all I have a webservice with a webmethod that accepts an XML from a client via POST (don't know if this really matters), validates XML and the data inside, and then processes the XML and returns an answer to the client. At moment, I have a problem with large XMLs; it takes too long for the XML preprocessing to finish, and the clients...
I use the following code to create a Label in the status strip when a child window is open. Public Sub StatusStripPanelAdd(ByVal lCount As Integer, ByVal sImage As System.Drawing.Image, ByRef sText As String, ByVal sender As Object, ByVal e As System.EventArgs) With (StatusStrip2) .Items.Add(sText, sImage) End With ...
I use the following code to change the parameters in my StatuStripLabel Dim ItemImage As System.Drawing.Image = iImage Dim item = New ToolStripStatusLabel(sText, ItemImage) item.BorderSides = ToolStripStatusLabelBorderSides.All item.BorderStyle = Border3DStyle.RaisedOuter item.LinkBehavior = LinkBehavior.HoverUnderline ...