Jinwah wrote: There are several options not one called Class Library.
O ^%^% Thats pretty lame.
Jinwah wrote: I know this is a lame question but I'm just not used to the VS IDE. So how do I start my new class library just add a new Text file and code there?
Basically start an empty project, then add a class, by rightclicking in the solution explorer. Now, rightclick the project in solution explorer, goto properties. Select output type as class library, once you click apply, you will see the extension becomes ".dll" and you can now reference that assembly, once compiled
Hope this helps
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
I have the standard addition as well and ran into the same problems you have. However the ide is fairly customizable and I was able to add new wizards to create both a class library and the application config files (which are not present in the standard edition). In other words, when I select "add new item" from solution explorer a template is their for the creation of a class library. It's pretty simple. Checkout the following article. Just modify the template for your needs.
' This adds a Text item to the first tab of the Toolbox.
' Define the variables and create an object reference to the IDE's
' ToolBox object.
Dim win As Window = DTE.Windows.Item(Constants.vsWindowKindToolbox)
Dim objToolbox As ToolBox = win.Object
Dim colTbxTabs As ToolBoxTabs
' Create an object reference to the ToolBoxTabs object.
colTbxTabs = objToolbox.ToolBoxTabs
' Add a new Text item to the first tab in the Toolbox.
colTbxTabs.Item(1).ToolBoxItems.Add("New Text Item", "Some text to add to the document.", vsToolBoxItemFormat.vsToolBoxItemFormatText)
Aaaaaaaaaah! VB.NET in the C# forum! What has the world come to?!?!?! I never thought I'd live to see the day! Run for the hills! Goodbye cruel world....(Just kidding though, I realize that for anyone developing macros that we must use VB.NET )
Norm Almond: I seen some GUI's in my life but WTF is this mess Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children Leppie:My sister is 25
-Norm on the MailMagic GUI
this line of code
IFormatter formatter = new BinaryFormatter();Stream stream = new FileStream("MyFile.bin", FileMode.Create, FileAccess.Write, FileShare.None);formatter.Serialize(stream, obj);stream.Close();
alwas write data at the end of file or not ?
i mean there are alot of Objects .
where it write in the file?
this line of code
object obj = formatter.Deserialize(stream);
alwas read data from the begining of file or not ?
i mean there are alot of Objects.
where it read from the file?
I don't if it works or not. Because I've never used this feature
Correct me if I am wrong
There is a property called Capture in Control Class. It can be
set to true if you wish to capture all mouse events, even outside
the control's borders.
The following text is copied from MSDN:
When a control has captured the mouse, it receives mouse input whether or not the cursor is within its borders. The mouse is typically only captured during drag operations.
Only the foreground window can capture the mouse. When a background window attempts to do so, the window receives messages only for mouse events that occur when the mouse cursor is within the visible portion of the window. Also, even if the foreground window has captured the mouse, the user can still click another window, bringing it to the foreground.
When the mouse is captured, shortcut keys do not work.
Hope this would help
my userControl derived control responds to the mouse wheel when the app starts, but as soon as the focus passes over to something else, the mouse wheel doesnt work, even after manually scrolling the bar, and clicking in the area of the control, to make sure it has focus, or is there something special needed to actually give it focus?
Do you mean with or without the cursor positioned over the control?
If you mean with the cursor not over the control, thats just the way scrolling with a wheel works.
Take this browser window for instance; resize it so it only takes up half the screen, then place the cursor over the non-browser portion of the screen. If you move the mouse wheel the window will no longer scroll.
Sig code stolen from David Wulff
Last Visit: 31-Dec-99 19:00 Last Update: 6-Feb-23 2:06