i have a question in VB6 you can make a program to start from a module but in .net i can make it only if i choise it as console application. my question is how can i make it if it is posible. i make in module sub main
Module mdlMainBegin
Public Structure FInfo
Dim InitPage As String
Dim HistoryFilPath As String
I have made a Windows Service program called InvCheckService.exe. I am passing the working folder using the Services Property for this program. I am putting the parameter "D:Inv" into the "Start Parameters:" textbox.In my program I am getting 1 parameter. Its is D:MyServicesInvCheckService.exe which is where I ran the InstallUtil.exe from.
Here is the code for the OnStart Subroutine:
Protected Overrides Sub OnStart(ByVal args() As String) Dim parms() As String = Environment.GetCommandLineArgs() Dim msg As String = ""
I have the following code inside my MDI parent form:For Each crl As Control In me.Controls
crl.????? Next
The code mainly used for getting some info from all child forms.I can get all the general property like size, location by crl.size or crl.location. But if all the forms have an own variable like myTxt. How could I get this own variable by this For Each method?
I wish to incorporate general expressions in my Visual Basic work.Other than the basic inputting "Imports System.Text.RegularExpressions", I have no idea how to do put general expressions in my VB project.However, I can create the expressions (so, all is not lost).
I am making a maze game and I want the cursor to be a different cursor that I made but I'm not sure how to change the cursor without having it hovering over a label or button.
This is going out to the forum at large. Where can I find the most complete explanation of the use of the DataGridView control in VB.Net? Any publication, or on-line reference except MSDN, please. I can never make heads or tales of MSDN.
Likewise, a complete tutorial on the usage of XML within the .Net Framework would be appreciated. Same qualifications as above.
i successfully deployed one application but some small small issues coming in that...Here i want clarify some common doubts in redistributable components...I created one windows application in VS 2008 with C# as language and SQLServer 2005. I created msi setup application in vs 2008 itself. My application includes 2 third party tools. One is for skin and another is for capture images from different devices like camera, web cam etc...Database i deployed is sqlexpress 2005
Generally i added the following prerequisites:
1. Dot Net Framework 3.5
2. Windows Installer 3.1
3. Crystal Report basic runtime for vs 2008 (x86, x64)
4. SQL Server 2005 Express SP2 (x86)
For all these i have no doubts except 4th one.Other than these prerequisistes my first third party tool(for skin) include Visual C++ 2005 Runtime. For this i tried Visual C++ Runtime included in the VS 2008 prerequisites but not worked. So i downloaded Visual C++ 2005 for x86 and x64 and create the custom prerequisites using "Bootstrapper Manifest Generator" and its working successfully For the second third party ocx component (for live video from devices) they telling the following compenents other than ocx component.
a. MFC Libraries (gdiplus.dll, msvcrt.dll, mfc42.dll)
b. DirectX 9 runtime or better
c. Windows Media format runtime files (they gave wmfdist.exe)
I told the system OS requirement is Windows XP SP2 or Vista. Architecture 32 bit and 64 bit(with conditions)
1. I didnt include the 3 MFC Libraries (gdiplus.dll, msvcrt.dll, mfc42.dll) in my setup application Yes i not included the these dlls. But i didnt get any error up to now. I think XP SP2 included these files. Any problem raises in vista or somthing other machines if i leave these files or these files updated when i installed that Visual C++ 2005 runtime? Because when i search MFC libraries i got the result as visual c++ runtime. Please clear about this and tell the i want to include or not?
2. I didn't include DirectX 9 runtime I dont have any common doubt in this because mostly sp2 inludes directX only. But if i inluded these can you give the latest and best redistribution component download link? I dont know is this component differe 32 bit or 64bit?
3. I didnt include Windows Media format runtime files This also i dint included but not got any issues. But some customer told that grains like coming in the live screen. Is this because of unavailability of these component? For include this i didnt got the download link. But i download the sdk from the following link...
[URL]
I installed and i got the same wmfdist.exe as the third party gave. My doubt here is is this support for vista also .. Any incompatabiliy for 64 bit.? if then can anyone give the 64 bit redistribtuion component download link also.
4. SQL Express 2005 Express 64Bit As this application want to support 64 bit also...i want to include 64 bit express edition. But i think the 64 bit support is express advanced version only. Here my problem is if i download tht i cant create custom prerequisites for sql express because i am not well in this.
We are excited to support all your Innovate On Office support questions and inquiriesthe following guidelines before posting your inquiry to this forum.Please expect up to 24hrs for initial response from an engineer after posting an inquiry to this forumPlease expect to receive status about every three days of status on your question/inquiry to this forum
whipped up this code real quick which uses a ThreadPool on Form Load to iterate through my subnet and tell me if there's a device communicating at each IP address.
some questions: Why am I able to update BOTH my label at the top AND the listbox, but I'm only using an .Invoke on the Listbox?How can I know how many threads are currently being used while that is executing?
What does the SyncLock do?I'm aware some people don't like the use of Application.DoEvents(). Is it ok to be using it in this instance or is there a better practice?For those wanting to try it out, drag a Label and a Listbox to a new form. Label is called "currentIPTextbox", Listbox is default name.
I have a MustInherit Parent class with two Child classes which Inherit from the Parent.How can I use (or Cast) Me in a Parent function as the the child type of that instance?EDIT: My actual goal is to be able to serialize (BinaryFormatter.Serialize(Stream, Object)) either of my child classes. However, "repeating the code" in each child "seems" wrong.
EDIT2: This is my Serialize function. Where should I implement this function? Copying and pasting to each child doesn't seem right, but casting the parent to a child doesn't seem right either.
I'm making a program to protect custom game files from being copied as best I can, however there are a couple things I need to account for. Some of them I have, others, I have not been able to find information on. When the files are not in use, I have them fully encrypted and hidden from the lay user through a bunch of other tricks (+s attribute, for example). However, I would also like to prevent copying these files while they are being used by the game - obviously I cannot have them encrypted while the game is attempting to read from them.
This opens up a hole, which I have also tried to deal with, but I know my attempts in this regard are less than thorough: Stop several known well-known copy programs from operating during operation, that being Windows Explorer, Teracopy, and cmd
Now, the other solution I was thinking of was a filesystemwatcher object scanning the better part of the computer for any copies of these files located outside of the "OK" directory, but I'm a bit skeptical as to whether or not this would be very efficient. Any ways to make copying these files difficult without rendering them unusable to the program.
If you have a separately declared PUBLIC INTERFACE and then IMPLEMENT that INTERFACE.
1) My general question: Is an INTERFACE simply a means to ensure that a CLASS implements all the methods defined in an interface and to ensure that they can only be implemented once?
I have noticed that a method that IMPLEMENTS an INTERFACE method can still have overloads though. :-)
If so, when combined with INHERITANCE though I believe I can finally see the use for defining an INTERFACE!!
2) Do you have to use an interface when linking to a VB6 project ( is this via Component Object Model or COM ) and if so, do any attibutes need to be applied when doing so?
Here is a code snippet.
creating a PUBLIC INTERFACE outside of any CLASS. I guess this would not normally be done from an OOP point of view?
Public Class ExampleClass Implements MyActions Implements Whatever
I plan to use iTextSharp 4.04.0 for my program for creating pdf on the fly.My find out that iTextSharp 4.04.0 is release under license GNU Lesser General Public License (LGPL).I have searched online but can't really undestand what GNU Lesser General Public License (LGPL) is.My question is does the dll which released under GNU Lesser General Public License (LGPL) is free to use? Free to use by the company?
url...I'm working on a simple MP3 player and are stucked on some Treview.Click and Listview.Items.Add problems which I cant seem to get past.What I'm trying to do is first with a button launch a FolderDialog to get folder path, when this is done I add the directories and subdirectories to tvFolders1 (Treview)For the whole procedure for this see classes LoadFolderTree(), LoadDir() and tvFolders1_AfterExpand.This seems to work just fine and no problems as far as I can see The we add a feature where user click on the Treeview (tvFolders1) and we are supposed to do the following: On tvFolders1_AfterSelect (when the user actually select something)I am the trying to add Items and subitems to the lvFiles control (Listview)[code]Now adding items and subbitems goes just fine if I:
1. Do not clear the ListView lvFiles in the Class tvFolders1_AfterSelect But I need that, I want the listview to be cleared before adding new items/subitems or we end up with an enormous list
2. Only add more items to the ListView without doing anything more
If I clear the ListView lvFiles in the class tvFolders1_AfterSelect the application will simply freeze and crash after clicking on any item in TreeView tvFolders1So basically somewhere in my code there is something causing this and that's were I need help, I where hoping someone could figure out what I need to do..I have pasted the whole code for that form because I suspect the problems are not in the adding/clicking on items but somewhere else, I do not know though.There is also a "bug/another big problem" in the adding of items/subitems to the lvFiles ListView and that is that the first mp3 file only gets added with file/path and not ID3.
I'm trying to make more use of namespaces and giving my project a more rigorous design, as it has been getting pretty messy.I was wondering,before I get started, is there a standard convention for the names and organization of namespaces?For instance,for a 3-tier program, should there always be a "UI", "Business",and "DataAccess" namespace (and is this what they're typically called)?Or should I just organize the project as I see fit?
I am often asked to create a very simple database front-end for friends or family, and the structure of the database (and application) is usually very similar.Right now I am always creating a class that handles all database interactions with some shared functions. For example, there's a function to run a general query and return a table, a function to save/load various items (depending on the application of course). The point is: the code is nearly always the same except for some slight variations.
I want to create some reusable code in my forms.The idea is that a class is growing when more subroutines are added so, I need to store the finished subs somewhere to make place for others, this way I don't lose myself searching through the entire class
I have a feature in my program that allows the user to have multiple tabs, each having its own rich text box. Is there a way that I can only perform an event, such as "Text Changed", for the selected tab's rich text box, or will everything still work (the way I want) if I give them all the same name?
Developing a program that "creates" program, but the problem is that the created programs need acces to copy themself example to c:programfiles but you need admin acces to do that.
So my question is is there a way to set property on a file and check the run as admin? EDIT* ...by code
I was wondering if there was a way to catch all unhandled exceptions in a visual studio project. My project does not have any files named global or global.asax so I was wondering if there was some other way to catch any and all unhandled exceptions? So far I've tried to put exception handling around specific blocks of code, but it doesn't have any effect.
In previous versions of VB Express, pressing F1 would get help related to specific highlighted terms,to Visual Basic. But in VB Express 2010 I'm finding it inevitably goes to some vague Visual Studio 2010 page.
Is there a setting I can change to get it to behave the useful way that previous versions did?Denise Moore ---- 2 HP a1730n Pavillion Desktops, AMD 64 X 2 5000+/5600+, 3072/2048 800MHz DDR2, 4 GB ReadyBoost, 320 GB HDD, Nvidia 6150LE, D-Link DGE-530T NIC, D-Link Green DGS-1005B router, VersaExpress ADSL, Win 7 Home Premium
I have a (pretty large, 1000 lines or so) class with a lot of properties, both regular,overridden and overloadd properties. I currently add this in front of the property to hide it from the designer:<Browsable(False), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)>This is all great, but it adds quite some lines to my project. How can I specify, for my class or project, that it should add the above settings to all?Or even better: set the above settings for a block of code instead of a single property.
making a general functions class library that will be used in several applications and asp pages, sometimes running at the same time.I've looked at a lot of samples on the web and they all show you to create an instance of the classlibrary namespace or the classlibrary class.
IE. dim obj2 as new mycompany.mynamespace.myclass dim n2 as integer n2 = obj2.somefunction(...)
What I did was create my class library and put a class in it and declared a function as sharred, then created my dll.I don't have to create an instance of it and I can use it like the net framework by just coding
The net framework does this, I mean once I imports it I don't have to make an instance of it in every function.All the samples I've seen about class libraries do not use the shared keyword.
I created one web user control with property named "ReadonlyField" with boolean datatype. I am able to use in my web pages and now i wanted to add a description to that property so that i dont need to explain each time to my team member what is that property's intention.[code]...