I have a windows form application that when it starts needs to see if the user has Excel installed on the computer and if not display a message informing user that part of functionality will be disabled.
Is their an easy way to perform this check?
Working in Visual Studio 2008 with VB.Net
...
Is there an event that fires in vb.net just before a contextMenuStrip appears when the user right clicks on a control? I need to be able to control the content of the contextMenuStrip just prior to the menu strip appearing. Basically I want to be able to change the content of the contextMenuStrip just before it appears. Is this possib...
I defined a JavaScript function inside a user control.
If I have multiple instances of the user control on my .aspx page, how do I prevent multiple function definitions in the resulting HTML code?
...
I cannot figure out how to set an array to one of two sets of numbers (there will be more later), every way that I have tried throws some kind of error. I have tried to Dim the array inside the case statements, but then I cannot use the array in the For Each, which makes this worthless.... any ideas would be appreciated.
Code:
Dim Hour...
Anyone have code to set margins(top,left,right,bottom) using excel interop and vb.net. I think it must be part of the worksheet object but maybe the workbook object. Having a tough time finding an example. Thanks in advance.
...
We have a Vb.Net application that runs as the windows shell for certain users. We'd like the application to automatically restart when it crashes.
The application is set as the shell here:
HKEY_USERS*User*\Software\Microsoft\Windows NT\WinLogon\Shell
I've tried adding an "AutoRestartShell" key with a value of "1", like what exists i...
Hi, i'm new to the realm to working with Files in .NET
I'm creating a WPF application in VB.NET with the 3.5 Framework. (If you provide an example in C#, that's perfectly fine.)
In my project I have a Template for an MS Access database. My desired behavior is that when the users clicks File-->New, they can create a new copy of this t...
I am attempting to construct my own date picker using code from several sources.
Why won't the calendar hide when visible?
myDate.ascx
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="myDate.ascx.vb"
Inherits="Website.myDate" %>
<asp:TextBox ID="dateText" runat="server" > </asp:TextBox>
<asp:Button ID="dateBtn" runat...
Can someone give me some code to set the cell of an excel spreadsheet to a number format that use a max of 2 decimal places. Or would it work better it I change the data I am putting into the cell to a proper format? Here is a sample of data that is going in. Right now its going in as a string...
col("ADJ").ToString() where col is a Data...
i want to compare two times in vb.net i.e
i have 1:42:21 PM and i want it to compare with TimeOfDay in vb.net how can i do that....
...
I am exposing some ISO C++ data types to .Net (mono on Linux to be precise).
For the purpose of brevity, I shall refer to C# in my question, although my question relates to all of the .Net languages (with C# and VB.Net being my target languages).
So far, I have worked out how to expose the ISO C++ data types in C# class(es) for use in...
I have a simple pattern I am trying to match, any characters captured between parenthesis at the end of an HTML paragraph. I am running into trouble any time there is additional parentheticals in that paragraph:
i.e.
If the input string is "..... (321)</p>" i want to get the value (321)
However, if the paragraph has this text: "......
when i am building the installation file i need to be including some jpegs and i need them to be saved to a specific location
how do i include jpegs in the installation?
how do i have them be extracted to specific directories?
...
i have a string that looks like this -
"1AL||9CA||34CO||196WY||..."
i want to use a for loop or while loop, in which if i have an integer, it should parse this string and delete the value matching that integer.
example for above string
string = "1AL||9CA||34CO||196WY||..."
integer = 34
for
...
loop
new string = "1AL||9CA||196WY||......
Hi,
I have a main form which contains multiple worker threads. These threads raise events which update Telerik controls on the main form. The event handlers contain code which check if InvokeRequired and BeginInvoke where required. At random interval I am receiving the following exception, and have no idea on how where to find this? I w...
Given the following information
Public Enum Request As Byte
None = 0
Identity = 1
License = 2
End Enum
Protected mType As Communication.Request
mType = Communication.Request.Identity
Debug.Print (BitConverter.GetBytes(mType).Length.tostring)
2
Why does bitconverter report that mType is a length of 2. I would have thoug...
I am trying to pull the data by date in vb.net. It is not throwing the error nor giving any result. Whereas It shows the results in table adapter configuration wizard when I try through query builder. I am using date time picker in the form. But I have formatted the date in the database as date.I am puzzled.
Private Sub ToolStripButton1...
Programming language is vb.net
...
Hi. i'm amol kadam,I want to know how to split string in two part.My string is in Time format (12:12).& I want to seperate this in hour & minute format.the datatype for all variables are string. for hour variable used strTimeHr & for minute strTimeMin .I tried below code but their was a exception "Index and length must refer to a locatio...
I need to retrieve multiple objects from an external system. The external system supports multiple simultaneous requests (i.e. threads), but it is possible to flood the external system - therefore I want to be able to retrieve multiple objects asynchronously, but I want to be able to throttle the number of simultaneous async requests. i....