Desiging ActiveX Where A Quick Tutorial
Jun 19, 2009
As a measure of emergency I need to prepare a very simple ActiveX object to be used in Excel sheet and VBA.I'm not a hardcore programmer myself but I'm able to put together a code in VBA to get things done. I have no experience compiling ActiveX dll's in VB though.Could anyone point me to a simple tutorial on the web where I could learn steps how to do it in VB? (project type, setting up methods for the control, parameters for compiling the dll so it's recognized as an ActiveX.. etc)The ActiveX object will be very simple - it's a stopwatch:
1. displaying elapsing time, I have it done already in VB as a windows ap.
2. As an object it will be taking only 3 types of methods: start, stop, reset
3. it has to be a proper ActiveX, so I can use "insert ActiveX" in Excel to add it to the sheet and the code.
I guess I have to start with creating a 'class library' project, haven't I ?
View 5 Replies
ADVERTISEMENT
Feb 12, 2010
I am rather familiar with the ins and outs of VB.NET and Database Selects, Updates and Inserts. Not so good with Transactions. (Oracle, MSSQL)
for example, take a Billing System for a hardware store.I create a 'New Order' and select the Cash Customer I start adding items to this order. 1 Rake 1 Shovel Where do I store this information (temporarily) until the user hits 'SAVE'. Maybe the customer decides they don't want the items. Too expensive. I just EXIT. nothign to do.
Or - I open an existing order and make a bunch of changes. Where do I put these changes until the user hits SAVE. I am sure transactions might have something to do with this - or temporary somethings??? I just don't know and need some guidance.
View 7 Replies
Dec 7, 2010
I am developing a VB application using the Visual Studio 2008 IDE. I was making changes to my code using the Quick Replace function when the dialog window stopped displaying. Selection of Quick Find or Quick Replace from the Edit menu, as well as use of shortcut keys (CTL+F and CTL+H) all have the same affect: the IDE loses focus but no dialog windows display. Is this a known issue with an available fix?
View 1 Replies
Oct 7, 2009
I have experience in C++ programming, but never created gui with it so learning vb.net for some quick gui development. and i want to learn vb.net. I can't install visual basic express on computer cause i'm on shared computer and such huge install is not possible on that computer. So i picked up sharpdevelop. After searching most of the tutorial, i found out that most of tutorial written for visual studio IDE for vb and vb.net. I'm trying to learn vb.net in depth from command line to gui programs. Any good recommendation of tutorials, book ? I searched google but very few results so far. I'm looking for good learning tutorials that can help learn with sharpdevelop.any suggestion for tutorial and books that mentions sharpdevelop in their tutorial/guide ?
View 2 Replies
Apr 8, 2009
I am trying to load an actixex component in a VB project which was made in Visual C++.n VBA it works fine.In VB6, when I try to load the component on the toolbox I get an "Error 35005"In VB2008 the component can be added to the toolbox, but when I try to place it on the form, the following error occurs: "Failed to import ActiveX control. Please ensure it is properly registered."
View 1 Replies
Oct 20, 2010
How to Resolve following Error in .netNon-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page.
View 1 Replies
Mar 14, 2011
I'm wondering if someone can point me towards a good article/tutorial explaining how to use the MVVM pattern in an WPF Application that uses WCF web services. My WPF client calls a service reference to get data objects that contain data from the database but from everything I've seen and read so far about MVVM I am still not clear on how to use MVVM to work with the data objects I am retrieving from the WCF services.
View 1 Replies
Feb 29, 2012
I am trying to do my sorts such as bubble sort and quick sort i got the bubble sort to work but cant seem to get the quick sort to work.
CODE:
View 2 Replies
May 13, 2010
I have a RichTextBox where I expect 100 characters per line. Each line can start with the letter A, B, or C. I may have thousands of lines and most of them will start with the letter C.When the cursor is moved from one line to another and is placed on a "C" line, I need to be able to quickly locate the nearest "B" line above it. It may be hundreds of lines away. A loop to search for the "B" line using GetFirstCharIndexFromLine(x) is too slow.
The user may want to paste many lines into the textbox. If necessary, a mild wait after pasting is acceptable.Do you have any suggestions for a technique to accomplish what I need to do? Even just a high level suggestion like "use a linked list"
View 4 Replies
Aug 2, 2010
Could anybody guide me how to perform a quick serch in vb.net database?I used to do it in vb6, using FindFirst method.Is anything else like that in vb.net?Do i always have to use SQL to check if record under current data exists in the database or not?
View 3 Replies
Nov 12, 2009
I used to write programs in Quick Basic on my XP computer. I now have a Vista (64bit) computer and everybody knows (except me) that those programs won't run on my Vista computer.I want to be able to write single user programs on my Vista computer like I did with my XP computer. Since I'm somewhat familiar with the Quick Basic language, I want to stay in the "Basic" language family. What do I need to have on my Vista computer that would allow me to write and run simple single user programs?
View 4 Replies
Jul 19, 2010
I have a list with a boolean value as one of the properties. I need to check if every one of these is true. Now normally LINQ would give a nice clean answer here, but as I am using .NET 2.0 I can't use that.If there a nicer way to do this or am I going to have to do a for each loop and break out on finding a false?
Edit:Seems I could have been a bit clearer. I have an object in a list (eg List (Of MyObject)). There is a boolean property on this object called Processed.I need to check that all objects in the list are processed.So in LINQ I'd do:if (from o in list where o.processed = false select o).count = 0 then....
View 3 Replies
Aug 4, 2010
Decided to make my own installer. code for making a quick launch icon.This is the code im using for creating a desktop icon.
vb.net
Dim WshShell As WshShellClass = New WshShellClass
Dim MyShortcut As IWshRuntimeLibrary.IWshShortcut
' The shortcut will be created on the desktop
[code]....
View 4 Replies
May 26, 2011
I am wondering how can I show a balloon tip for my system tray NotifyIcon application QUICKLY. What I mean by quickly is not linger around for like 5 seconds.. I have tried entering 1. For example my code is currently:
NotifyIcon1.ShowBalloonTip(1)
I thought about trying decimals but if I remember correctly from C++ it does nto work or make a difference.. how to display a balloon tip that pops up for only 1 second then dissapears very fast?
View 7 Replies
Nov 4, 2010
The last app I put together was back when .net had just come out around 2002.Ive dusted off my cd's as I need another app writen.The problen is im now running Vista 64bit OS and my Visual Studio.net 2002 cd's are not likeing it at all.Does any1 have a quick fix apart from getting a new version of Visual Studio?Im reloading an old laptop back to XP atm to get a start on the app but would really like it on my main comp.And I dont want to run it in a sandbox either.
View 2 Replies
Jul 5, 2009
I have to parse through a text file that is growing and currently is about 30MB, but it takes a long time for the stream reader to load it before It can loop through the lines. Is there a faster method other than the streamreader?
View 2 Replies
May 16, 2012
Is It possible to make quick selection tool in vb.net like in photoshop?if not can you tell me how to make a free selector or rectangular selector please?
View 6 Replies
Dec 24, 2009
Ran across a snippet a while back but can't seem to find it again. Was very short and simple and detected all versions using version major and minor.
View 4 Replies
Aug 6, 2010
If I have a class with a couple of event handlers inside of it which are attached to an object that is defined within the class, am I right in thinking that I don't need to implement IDisposable to remove said handlers, even if I explicitly added the handlers myself? Also, can anyone point me in the direction of an article that explains the scope of when it is needed to remove handlers to avoid memory leaks. (I've tried searching many times but I must be screwing up my search terms.)I have a collection; every time an object is added to that collection, I add a handler to a change event of the object.When I'm done with the collection, do I need to go through each item and remove the handler before setting the reference to null?
View 3 Replies
Aug 29, 2011
Okay, I've been at this ALL DAY no one's advice has helped so I'm zipping up the simplest version of my problem and attaching it a silver dollar for anyone who wants a quick and (seemingly) easy problem. What it is:
frm1 loads with a button to start frm2(and populate a datagridview).I'm trying to save its data in the module in the example but it might not be necessary.Then another button closes/hides form2 and you can push a button on form 1 to TRY TO get the frm2.datagridview1.item(0,0).value.I can't do any more tonight.
View 6 Replies
Jan 7, 2012
I have a filled dataset from a query.
I must modify 2 columns in this dataset, based on a custom function value (a normal vb function), which parameter is an another column from the dataset.[code]...
View 3 Replies
Sep 17, 2010
What's the best/quick way to print a pdf file? The user in the gui only needs to select the pdf and set the printer settings...
View 3 Replies
Jan 6, 2010
Really small and quick question:When i have a listview, with detail view mode. Say i have like 5 columns.
When i select one item in one column, it only selects that item in that specific column i clicked, like a cell
View 2 Replies
Nov 14, 2011
I have a table that has 9 columns, this table has about 5000 rows, but sometimes the user need to update the data in the table. The new data is in another table, with different columns names and only with 8 columns, the ninth column it's the date of the update (i know that this columns shouldn't be here...).
So for now i'm filing one datatable (the data come form a webservice that returns a dataset with this table), and after that i clean the original table and then for each row in the new datatable i call the insert command.Is there other way, better way, to do this?
View 10 Replies
Jun 29, 2010
I'm working through the MVC Music Store in Visual Basic ([URL]), trying to convert things as I go. I'm heving trouble with some of the lambda expressions in the Views, however. Specifically, on page 53 when the Album editor template is used, I am not seeing my editor template when I use the following code:
[Code]...
View 1 Replies
Jun 2, 2009
storing values into a database from a ComboBox?
ComboBox 1
=========
Contains Pre-Determined List of Leagues
[code]....
Is propogated with the contents from the database depending on what was chosen in ComboBox 1 and 2.For Example:If a person picked the "Premier League" and "Manchester United", ComboBox 3 would display the members of the Manchester United team. The user could then select a single member of that team and save him as their choice.
View 2 Replies
Mar 21, 2010
I'm using VB.NET and MSSQL 2005 to create an application. I was told I should rather use SQLite as I want my application to be a standalone one with embedded database. Can someone please provide me with a step to step tutorial on how to create a standalone application with an embedded database?
View 2 Replies
Jan 11, 2010
VB.NET tutorial for beginners especially for database,
View 4 Replies
Apr 8, 2010
Can someone direct me to a waveout example? All I keep finding in searchers is C# language.Just trying to play a .wav file.
View 13 Replies
Jun 7, 2011
I have a class named TestClass
[code]...
Form the main form, I call the class. Here is my code:
[code]...
When I call tg.Count from main form, the main form will become not responding. How to prevent my form from not responding. The user can access other menu rather than waiting for the result.
View 2 Replies