I'm using silverlight 3 and i'd like to create a handler and event wired up to a mouse click in a text box that was created in code behind. Can someone point me in the right direction.
I need to make it so that some things fire off when that textbox is clicked into.
if you have an example in vb.net that would be even better.
thanks
shannon
I don't normally use VB, and even less vba for excel, but I'm writing a function inside a macro and seem to not understand even the basics of creating a function
For example
Public Function test() As Integer
return 1
End Function
This gives a compile error.
This is profoundly stupid, but how do I make a function return an integer in vba?
Try running this in a .VBS file
MsgBox(545.14-544.94)
You get a neat little answer of 0.199999999999932!
This rounding issue also occurs unfortunately in Sin(2 * pi) since VB can only ever see the (user defined) variable pi as accurate as 3.14159265358979.
Is rounding it manually (and loosing accuracy) the only way to improve the result? What is the most effective way of dealing with this kind of problem?
How do I change a local user account password remotely using VB.NET/C#?
I have looked into the DirectoryEntry class and know how to add users to a group but cannot figure out how to change a (local) password.
This seems like a fairly simple question, and I'm surprised not to have required it before.
What is the most efficient way of testing a string input is a numeric (or conversely Not A Number).
I guess I can do a Double.Parse or a regex (see below)
public static bool IsNumeric(this string value)
{
return Regex.IsMatch(value, "^\\d+$");
}
but I was wondering if there was a implemented way to do it, such as javascript's NaN() or IsNumeric() (was that VB, I can't remember).
Oracle 9i has not BOOLEAN data type. CheckBoxes in ASP.NET are BOOLEAN controls are they not?
So using a CHAR(1) column with Y or N values in the Oracle table, how do I bind to a CheckBox or CheckBoxList or RadioButton or RadioButtonList control on an ASP.NET 2.0 web form?
I'm using VB, 'specially since I'm a noobie.
Can someone explain the difference between a class and a module. When do you use one versus the other? I am using C#.
Update: I do mean the C# equivalent of the VB Module.
We have a Asp.Net Vb.Net application with around 35 webforms.There are some remote users who do not have the functional idea of the webforms.So i was thinking of adding a help file in my project.Is there any special component or javascript ? will it be a good option if i go with form by form or a single help file ?
I want to validate pasted dates to remove /'s and ensure the year is 4 digits and when users paste them in it overwrites my excel validation.
So, If a user pastes 05/19/10 into a cell, I would like it to convert to 05192010 or at least give an error if this is not possible.
I don't know enough VB to add sheet-wide code that does this and I'm not sure if it would work when users paste multiple cells at a time.
Hi All,
I am using FontDialog control in vb.net application. When I set its ShowColor property to true, it shows me StrikeOut, Underline and Color option under Effects group. I need only color from these three. Is there any way to hide Strikeout and underline effects, so that only Color option will be visible.
Thanks in advance for any kind of help.
I got the Wrox.Beginning.JavaScript.3rd.Edition and wanted to start learning it from scratch, then my boss came along and said that why bother, learn jQuery.
Can I understand jQuery and work with it although I am a newbie and have limited knowledge in ASP.net, vb.net, some C#, and basic HTML?!
How can I use touchesbegan in a table's cell without having to subclass a whole cell. Something like addTarget..... which is available for a UIButton?
(in vb.net this would be like AddHandler I think)
Is there a quick way to check whether a path I have is on a local disk or somewhere on the network? I can't just check to see if it's a drive letter vs. UNC, because that would incorrectly identify mapped drives as local. I assumed it would be a boolean in the DirectoryInfo object, but it appears that it's not.
I've found classic VB code to do this check (through an API), but nothing for .NET so far.
I have visual studio 2008 installed in my pc when i try to open a .Net 2005 Solution with multi-projects, there are project in vb and c#. The only web project on this solution display the following message:
.vbproj the project is not supported by this installation
I try to open the web project separately from the solution and I not have problem.
How I can open the web project from the solution.
Any ideas?
Is this a realistic solution to the problems associated with larger .mdb files:
split the large .mdb file into
smaller .mdb files
have one 'central' .mdb containing
links to the tables in the smaller
.mdb files
How easy would it be to make this change to an .mdb backed VB application?
Could the changes to the database be done so that there are no changes required to the front-end application?
I'm new to C#, and I want to use a track-bar to change a form's opacity.
This is my code:
decimal trans = trackBar1.Value / 5000
this.Opacity = trans
When I try to build it, I get this error:
Cannot implicitly convert type 'decimal' to 'double'
I tried making trans a double, but then the control doesn't work. This code worked fine for me in VB.NET.
What do I need to do differently?
Can any one tell me the LINQ 2 SQL version (in vb.net) of the below Left outer join query.I am trying to get all Employees with name "Shyju" and their address line 1 if it exist in the address table
SELECT E.EMPLOYEE_NAME,
E.AGE,A.ADRESS_LINE1
FROM EMPLOYEE_MASTER E
LEFT OUTER JOIN
ADDRESS_MASTER A
ON E.ID=A.EMPLOYEE_ID
WHERE E.EMPLOYEE_NAME='Shyju'
Thanks in advance
Basically I have a Search Text Box with a LinkButton Control on which the click event is fired. now what i want is when the user type keywords and press enter the Click event got fired.
So No Javascript Only ASP.NET With VB.NET v2.0
Sincerely
Rajeev
[email protected]
I have an ASP.NET page in which there is a textbox. The user enters a string in the textbox and I want that string to be searched in Google and redirect the search results to my web page. I'm using VB as the background programming language.
How can I do that? And also which toolbox control should I use in my page, for displaying the search results?
I'm writing an app that will manipulate Outlook data. I want to make a backup of that data first and am hoping I could just loop through the contact/calendar items, etc and write them out to a PST file.
How can I write the contents of 1 or several Outlook folders to a PST using .Net? [vb or c# no matter]
Want to send the text from my current vb application to the Active Window
and that text should be displayed in the text area of the active window
can anyone help me?
Hi,
i want to display thumbnails for videos listed on my site, i want to fetch a single frame from a video (from a particular time) and display them as thumbnails.
Is that possible using .Net ? (C# or VB)
Hello,
are there free, recommendable Tools for data modeling?
ERM/ORM Diagrams
Creating database models (SQL SERVER
2005)
Simple to use like Visio(no license
here)
Code generation is only a nice to
have (VB.Net)
Is it possible that someone here could explain how to use this code. Please keep in mind i am a complete amateur, so simplifications may be needed.
Private Const cPGM = "C:\VB Forum\startup\Example.exe"
Dim oShell As IWshShell_Class
Set oShell = New IWshShell_Class
oShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\MyVBApp", _
cPGM, "REG_SZ"
How exactly is this code used? Is it saved as an .exe file and ran or what? Thanks for your prompt reply and informational feedback.