VS 2010 Include A .COM Tool Into IDE (like Common Dialog)?
Sep 30, 2010I did this before but can't seem to remember how. How do I include a .COM tool into my IDE (like Common Dialog)?
View 2 RepliesI did this before but can't seem to remember how. How do I include a .COM tool into my IDE (like Common Dialog)?
View 2 RepliesI am working on a MSDN project from 2007 it calls for a Common Dialog Control but I can not find it. Has this been deprecated and/or is there something to replace it? If not how can I access this in VS 2010 for a VB project?
View 16 RepliesI want to be able to incorporate some constant definitions and enum types in multiple classes of mine.Something akin to including a header file in C++. How do I do this best in VB.NET? I'm having a hard time because the only way I can see to do it is to inherit a class with the definitions in it but there is no multiple inheritance in vb.net so I am having some issues with that.
View 6 RepliesI am looking for a way to modify the default values in windows vista and or 7.
Examples:
* The default directory for the save/save-as dialog box.
* The size of the window.
* The "favorites" list on the left of the box.
I have been looking for a while and the only thing I can find is to edit the group policy but this will only affect programs that are using the xp dialog box.I am sure this is actualy pretty easy but I cannot find anything for the life of me
Im trying to write a few scripts for use in AD in VBscript I thought it would be nice and straight forward to be able to open csv files and the like by using a Browse For File Window so the help desk can simply find browse for the file but i am not having much luck.
[Code]...
I created a windows installer installation for my vb.net application. I want to include a tool with my installation that will run before the install begins and monitor the installation and send the log and errors to me (by email for example)
View 1 RepliesWhenever the code invokes the open dialogue box statement of the VB6.0 code, the application gets terminated.It is expected to open the dialogue box to provide the file path. I'm also having MS Office 2007 enterprise edition. If I do not have MS office 2007 enterprise edition installed, then it is working fine without any problem. So any suggestion/remarks to work on MS office 2007 enterprise edition?
View 1 RepliesI'm sure most people on here have opened an OpenFileDialog or SaveFileDialog and set the SelectedPath property to point to some directory...
Has anyone done this on a Windows 7 machine and been able to point the thing to a Library? If so, what do you set it to?
i have a vb script that is imbeded in an html page (hta). when i use the common dialog flags = cdlOFNAllowMultiselect the file list is present in the filename object and are separated by a space. however when i use dialog flags = cdlOFNAllowMultiselect Or cdlOFNExplorer the files that i selected on the dialog box, are not present in the filename object. the only thing that's there, is the path to the files. here's the code:
Const cdlOFNAllowMultiselect = 512Const cdlOFNExplorer = 524288Set ObjFSO = CreateObject("UserAccounts.CommonDialog")ObjFSO.Filter = "All Files|*.*"ObjFSO.FilterIndex = 1
ObjFSO.InitialDir = "c:" ObjFSO.Flags = cdlOFNAllowMultiselect or cdlOFNExplorerinitFSO = ObjFSO.ShowOpen selected_files = ObjFso.FileName msgbox selected_files
how can i get the files names?
I've got 4 projects all running very similar multi-threading HTTPListener stuff.I wanted to make these functions common - in some module - but I'm having a hard time getting the AddressOf the "callback" passed in.This was the code in one of the 4 projects
Private Sub StartRequests(ByVal prefixes() As String)
If Not System.Net.HttpListener.IsSupported Then
DisplayInfo( _
[code].....
I want to make a Tool Bar in my task bar such as windows media player tool bar.
I'm using VS2005.net Windows xp Professional Edition.
How to include Dependencies in my project made in Visual Basic 2010.
View 6 Replieshow i can include files like : .exe .rar .zip .7z in my project and how to make when i push some button for example to download the selected file.
I will give example: I have put alot files in the project and now the test will be with "Test.exe"In my Form1 i got 1 textbox and 1 button and 1 checkbox (or radiobutton)In the textbox is putted the name of the file "Test.exe" and after him has 1 radiobutton for checking that i selected this one to download to the computer and when i press the button to download the file in a popup displayed form (to display new form with the compression progcess - how much percentes is downloaded).
Not sure if this is the right place for this discussion. I am in the process of building some tools in Visual Studio 2010 Premium in Visual Basic Windows form application. There's not much out there for this. I figured this would be a great discussion and journey for many people.
Is this the right place to post this?Dr.Bones- " If my application is too hard for a 5th grader to run, I've made too complicated"
how to put the tool tip text in status bar label this in form load event
View 14 RepliesI have developed an application which includes CR to display reports. I just found out to run these report, CR runtime engine needs to be installed. I would like to know if possible to include the installation of CR Runtime Engine in the set up of my application? I have noticed the pre-requisite option in VS 2010. But how to add CR Runtime Engine installation to my set up?
View 2 RepliesI would like to be able to have my users open an Excel file and include their add-ins they have installed and usually show up when Excel normally starts. Using this code, Excel opens with no add-ins visible:
vb.net Dim excel As Microsoft.Office.Interop.Excel.Application
Dim wb As Microsoft.Office.Interop.Excel.Workbook
Try excel = New Microsoft.Office.Interop.Excel.Application
wb = excel.Workbooks.Open(filelocation & "checks.xls")
excel.Visible = True
[Code]...
Is there a property to allow add-ins when opening an Excel file?
I use this code. USED CODE
[Code]...
I have completed my COMBOBOX now I would like to include a LISTVIEW when the user click OK. instruction on how to include a LISTVIEW. Do I use the same form that I used to create the COMBOBOX or do I create a new project? instruction to create a LISTVIEW after a user click OK. I have spend days going over the links on LISTVIEW but none give me instruction on how to use VB Express 2010 to create a LISTVIEW. After that than what do I do to include a column on the listview. I need someone to walk me thru creating a column header and the filed name.
[Code]....
I am new to VB and Visual Studio. Using VB 2010 express edition. I am making a VB project and from from inside that i want to be able to run a batch file that i already have.
My problem is i am not able to import this in my project. I tried adding it in the project from solution explorer but when i run the program its not able to find it. I am able to execute it when i copy that batch file somewhere on disk and then giving absolute path but not by including it inside my project.
I recently added a class I created with a tool to my Visual Studio 2010 project but I can't call it in my codebehind file. I was told I need to check the namespace. How do I check and control a classes's namespace?
View 1 RepliesI am having a hard time dealing with this project. I wish to make a program that will be able to restrict programs to run. For example:Since we all know that the gpedit.msc has this ability. Which will add a new subkey under HKCUSoftwareMicrosoftWindowsCurrentversionPoliciesexplorer with a new subkey DisallowRun, and a DWORD value at the Explorer key will be added DisallowRun.If I click the Button1, the text in the Textbox1 will add a String Value to the key above.
View 4 Repliesi need to draw the table outline/border,columns, rows over on a image. Like in Rectangular box in ms paint.
View 3 Replies(Not really sure if I phrased the question correctly...) I want to create a lambda expression that would take an Object, attempt to convert it to a passed-in Type, and print to the console whether it was successful or not. At a glance, the lambda expression may seem a pretty silly way to accomplish this task, but I'd really like to know what I'm doing wrong, so I can better grow my skill set.
VS gives me a designer error about the second "T" in the expression below, telling me it isn't defined) This is where I left off:
[Code]...
I'm doing an error log in my code and I'm trying to output the errors to a text file with a specific date/time in the title so they can differentiate. I've tried things like
logname = "C:Documents and SettingsSeDingDesktopErrorserrorsLog " & DateTime.Now.ToString() & ".log"
But I get this msg "The given path's format is not supported." all the time.
i am creating a temperature conversion tool with vb 2010. i am trying to use radio buttons to choose the type of temperature that i am converting to and from.
Option Strict On
Public Class project
Private Sub txbInital_TextChanged(sender As System.Object, e As System.EventArgs) Handles txbInital.TextChanged
[Code].....
I reported a bug with VS 2010 here: [URL]
They said they could not reproduce the error and wanted me to download the "Visual Studio 2010 Diagnostic Tool ". They just say download the tool and provide them with a trace file which i'm assuming the mean an ETW file. They give me no information on how to accomplish creating a file. I'm using you have to accomplish this with xperf but even if i'm right it has many options that i have no idea what they mean.
I have no idea how to run this thing and i shouldn't have to scour MSDN documentation for the tool trying to figure out what they want.. I did provide them with additional information on how to get the crash to open "have VS 2008 open" but unless i get instructions on what they want then unfortunately i'm not going to be able to help them.
Wondering if it is possible. It works on the idea that all files share common code. The program would ideally analyse the source file and compare it to the reference files. It would then find common parts of the code and write it to a rebuild file. At the end the rebuild file and the reference files would then be able to rebuild the source file without it being present.
For Example.
source file code = xxyyzyzyxw
ref file 1 = xyxxzyzxwyy
ref file 2 = zxxwyzzywxx
The program would then analyse these files and make a rebuild file like the following
source(0,1) = ref1(2,3)
source(2,3) = ref1(10,11)
source(4,7) = ref2(5,6) + ref2(5,6)
source(8,9) = ref2(2,3)
Thus you would be able to build the source file using these instructions and the reference files.
I am making a gradient colored text tool for a game I play where they use a 3 digit number as an RGB color code before text. Making gradients by hand is tedious, as to do a gradient you type one letter at a time with an RGB code that changes by 1 in front of each letter.
example: "^090H^190e^290l^390l^490o" Would be a color gradient for Hello
I have a user input text into a text box and choose up to 6 colors. The colors then are assigned RGB values, only instead of 0-255 they are 0-9. (So they look like this 000=black 999=white 090=green, etc.)
I have figured out how to do this, but now I need to place the RGB values in front of the users text while only changing one of the RGB numbers at a time.
So if the color values are 090 and 900:
"090 190 290 390 490 590 690 790 890 990 980 970 960 950 940 930 920 910 900" is what I would like generated with the users text spaced evenly between.
I have no idea as to how I would go about putting three digit color codes between the users text or how to change the color codes one number at a time. I could try to do this on my own but it would be sloppy and probably a lot more code than needed (I have a feeling I should be using a loop or something like 'for each')... It's been awhile since I opened VB!
This is a very basic question, I have a parent form and a child form and both window state are set to maximize, would it be possible to remove the toolbar at the top? I have tried most thing like setting the form border style to none on the child form but still I get two tool bars. I would like to remove the tool bar in the black square
View 5 Replies