Hello,
I am using wicked code sqlsitemapprovider or it's VB version. Most of the things are going OK! But when I wanted to hide some of the nodes from appearing on menu while staying shown on sitemappath I cannot figure it out. I tried to change the sqlsitemapprovider code but was unsuccessfull. I have found David Sussman's (from sp.net...
I have a Windows xp sp3, that I inherited and the computer has a company that I don't have nor own and when I open visual basic I have to go and change the company name every time...
is there a way to change the default company so I don't have to do it
...
What is the "correct" (recommended) method for connecting to a running instance of MS Word and bringing this application to the front? I am doing something like the following from a VBA app:
...
objWord = GetObject ("Word.Application")
if (objWord is nothing) then
objWord = CreateObject("Word.Application")
end if
objWord.Activate()
ob...
Hi,
the idea is simple
The is a calculate function for example
Function Calculate (Byval v1 as integer, Byval v2 as integer, byval op as ????????) as double
return v1 op v2
End Function
Anybody tried this?
I don't want to use functions for every operation (multiply,divide, etc.).
I wanna pass a operator same as I pass the values....
Hey all i have this piece of code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim strFileSize As String = ""
Dim di As New IO.DirectoryInfo("C:\")
Try
di.GetFiles("*.*", SearchOption.AllDirectories)
Catch
End Try
Dim aryFi As IO.FileInfo()...
Hi
Using VB or C#, I am getting a string of variable length from the database. This information is sensitive information that only certain users will be able to see.
I have two cases that will use the same logic (I think).
scenario 1: replace all characters with x
scenario 2: replace all characters with x except the last 4 characters...
SELECT * FROM [makes$] WHERE "Corporate Name"='Champion Enterprises, Inc.'
I'm running this query on an XLS excel file using ADO in VBA. There are about 10-20 records containing this corporate name but it returns EOF.
I'm fairly new to database but I'm certain everything is correct aside from my SQL statement.
If I SELECT * FROM [ma...
I'm trying to write a windows phone 7 app which reads from an xml using xdocument but i'm having a few problems.
If I do this:
Dim xml As XDocument = XDocument.Load(e.Result)
System.Diagnostics.Debug.WriteLine(xml.ToString)
Or this:
System.Diagnostics.Debug.WriteLine(xml.Elements.Value.ToString)
then the xml data is output to the ...
Dim RS2 As iHistorian_SDK.TagRecordset
...
For intI = 1 To RS2.Item.Count
....
HistEngHigh = RS2.Item(intI).HiEngineeringUnits
Now this gives the error Interface 'VBA.Collection' cannot be indexed because it has no default property. Now it used to work when I ran the code in VBA 6.5 via iFIX but now that...
I would like to show different values in a dropdownlist, while editing a gridview, depending on which user is logged in. For example...
The officer would see "Approved by Officer" status.
The director would see "Approved by Director" status
I am trying to add these programatically to a dropdownlist which I have in the edit template of...
Hello;
For a given class, with a default property of list, you can access an instance object in the list by doing myClass.defProperty("key"). You can also achieve the same results by typing myClass.defProperty!Key.
I have been told that using the parenthesis and quotes is faster for the way the runtime accesses the Property, but I'd li...
I have several sets of similar objects (labels, progress bars) on a form in Visual Basic 2010 on Windows. In my code, I have collections that contain data, which needs to be pushed into the value/text property of each.
I would like to get a solution similar to PHP in that I can assign values somewhat like:
For ID as Integer from 0 ...
How can I restore history-files of a SQL Server 2005?
...
This is the code that I'm currently working with, and I'm getting this problem. I'm novice at Excel and I can't figure out what's wrong.
Private Sub cmdRecord_Click()
Sheets("BxWsn Simulation").Range("Result").Select //This is the line with the problem, as excel told me.
Selection.Copy
Sheets("Reslt Record").Select
Sheets("R...
Can anyone tell me how to debug the VB 6.0 application in which a .Net user control(C#) is added as a control. I want to debug the user control code from VB 6.0 application. How to acheive this?
...
I'm writing a program to detect which ".exe" file is generated by "Visual Basic6". I found that at the "entry point" of each vb file, there is an address at offset 1 from "entry point" which points to a location that contains the string: "vb5!", is that a certain signature? Can I be sure that in every vb files this string is exist?
Then,...
I have a requirement to create an application to upload data into database from csv file which run in a specific date. The only programming language that the company allowed is to use Visual Basic 6.0 or VBA. I already create an application using a standard exe file in Visual basic 6.0. Is there any way around how to create this this wit...
I’ve got a macro that does a search/replace in a selection but at the end of the task it shows the 'Do you want to search the remainder of the document' dialogue and I never want it to search the remainder so I’d like to have it click ‘n’ and then continue with the rest of the doc.
In is there a way to do this?
...
How can I send a POST HTTP request to a server (in Visual Basic 2010) and then receive the reply into a string.
...
Hello,
I have a program that contains a 2d grid of panel objects and I just realized that the computer I need to run this program on does not use .Net4 and I cannot upgrade its framework either. Because of this, I have to rewrite the program in vb6, which was not so bad until I had to make the grid of panels... Here is the code I am usin...