|
My directory always get much temporary files after compiling. I always need to pick source files (like *.cpp, *.h etc) one by one when I want to copy them to another folder or backup them. It's so pain
Fortunately, I found a program today, it's very useful to me, maybe it's useful to you too. It can copy or clean specfied type of files and integrate with Explorer, very easy to use.
It's name is Clean Now!(http://www.liuxz.com/cleannow/index.htm) I have installed it in my computer and feel good Usually, I develop with VC6 and C++Builder 6. So I create my own "File Group" like following:
VC 6 Source Files: dsw;dsp;cpp;c;h;hpp;def;clw;lib;opt;rc;ncb;
CBC 6 Source Files: h;hpp;cpp;c;lib;dfm;res;bpr;bpg;
Now, it's very easy to copy my source files to another folder or backup them without garbage: (1) Right click at my source folder (2)Move mouse to "Copy"->"VC 6 Source Files" (3) Select a destinition folder. After a few seconds, all source file and only source files will be copied to destinition folder. I don't need to pick them manually anymore!
If I don't want to copy them out, I just select "Clean"->"VC 6 Source Files", and HOLD SHIFT while clicking. All files EXCEPT source files will be deleted. My source folder become clear
You can try it out if you have interest
code, debug, code, debug ...
I love it!
|
|
|
|
|
Post your ads somewhere else please...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
I'm trying to find the new-line characters in a rich text box. The following statement always returns -1 (didn't find any). I've tried searching for vbCrLf, and 10, but to no avail ("e" does find all e's). What can I do to identify the new lines?
i = filestage.Text.IndexOf(vbCr, i + 1)
thanks,
JennyP
|
|
|
|
|
here is one way,
i = RichTextBox1.Text.IndexOf(Chr(10), i)
|
|
|
|
|
This works fine for me:
<br />
Dim i As Integer<br />
Dim MyString As String<br />
MyString = RichTextBox1.Text<br />
i = MyString.IndexOf(vbLf, i + 1)<br />
MsgBox(i.ToString())<br />
|
|
|
|
|
How can I get the number of rows in the data grid programaticaly in VB.Net,where the number of rows dpend on the user entry(the user may add a sum of new rows).
Waleed Eissa
|
|
|
|
|
Windows Forms Faq says to use the BindingManager.Count property
Dim numRows as Integer = dataGridDetails.BindingContext (dataGridDetails.DataSource, _
dataGridDetails.DataMember).Count;
"if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler.
|
|
|
|
|
Hi,
I am writing an application in VB.NET and want to set an object reference to reference an already open email. Basically I want a user to activate an open email messsage (Outlook being the email client) and then have my application set the object reference (an Outlook MailItem object) to that window which represents that email.
However, I have no idea how to do that. The fact that some of the Window management API functions do not seem to work in VB.NET does not help much. For instance, I tried the simple code below in Excel VBA and it worked fine, but when used in VB.NET it gives an overflow error.
Public Declare Function GetWindowTextLength Lib "user32.dll" Alias "GetWindowTextLengthA" (ByVal hWnd As Long) As Long
Public Declare Function GetForegroundWindow Lib "user32.dll" () As Long
Public Declare Function GetWindowText Lib "user32.dll" Alias "GetWindowTextA" (ByVal hWnd As Long, ByVal lpString As String, ByVal nMaxCount As Long) As Long
Sub Test()
' Display the title bar text of the foreground window.
Dim hforewnd As Long ' receives handle of foreground window
Dim slength As Long ' length of foreground window's title bar text
Dim wintext As String ' buffer for foreground window's title bar text
Dim retval As Long ' return value
hforewnd = GetForegroundWindow() ' determine the foreground window
slength = GetWindowTextLength(hforewnd) + 1 ' length of its title bar text
wintext = Space(slength) ' make room in the buffer to receive the text
retval = GetWindowText(hforewnd, wintext, slength) ' get title bar text
wintext = Left(wintext, slength - 1) ' remove null character from end of string
End Sub
As I said, the above code works fine in VBA and VB 6 but not in .NET.
Any pointers on how to do this will be greatly appreciated.
Thanks
Vyyk
|
|
|
|
|
I have coded in FORTRAN for many years, where you write code, compile it, link in compiled code from libraries of routines, and run the resulting executable. But we are switching to VB.NET, because we need to write Web Applications. Dynamic link libraries seem like a good choice, but they seem rather complicated. I have also considered Components, and seen references to code libraries and static libraries. We would like to have routines that multiple programmers can use in developing applications. I have muddled through Microsoft Help and MSDN articles, but still don't know what to use. Can anyone help me here.
Glenn W Schreyer
Programmer Analyst II
UTHSC Houston
|
|
|
|
|
If all your looking to do is write a bunch of generic routines that can be used in any app, then your probably looking at the Class Library project. Classes will encompass an entire object, supplying all the methods to manipulate that object. Static (or Shared in VB) classes and methods don't require an instance of the class to work. For an example of this, check out the System.IO namespace. Look for the Directory and DirectoryInfo classes as well as the File and FileInfo classes. The non-Info versions are Static (or Shared in VB), they both versions do just about the exact same thing, they go about them with slight differences.
Design Guidelines for Class Library Developers[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the info. I will read up on Class Libraries. After programming in FORTRAN for so many years, it now seems simple minded compared to VB.NET. At least for me, I have to spend considerable time to learn each new piece of the picture.
Glenn W Schreyer
Programmer Analyst II
UTHSC Houston
|
|
|
|
|
hi all,
I lost all my strength looking for a thing about it in the web and found nothing...
I created a user control that has a collection property.
I want to use the CollectionEditor to show the items in design time.
I you know a good link, sample, thing..
thank!
|
|
|
|
|
check this thread here
http://www.codeproject.com/csharp/DzCollectionEditor.asp?df=100&forumid=25863&select=711981#xx711981xx
|
|
|
|
|
Good Morning.
Can i change the destination directory of the bootstrap files by editing the .LST file created after packaging a program? I mean the files that are being copied first when installing a vb program using the VB setup.exe
Hoping hear from u guys!!!
|
|
|
|
|
this may help:
Manually Editing a Setup.lst File
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconpathparametermacrosinsetuplstfiles.asp
|
|
|
|
|
|
I want to customise a line control such that when I run myy application I can draw lines on the form by clicking and releasing the mouse AND I want that the lines I draw be susceptible to user events such as clicks and get focus. Kinda Like the line control in vb6 authroing environment except that the line control in vb6 doesn't respond to any events.
I'm like stuck on how to make such a line control that can respond to user events like gettiung clicked and getting focus... very much like the line and connectors that are drawn in programs like rational ROse and Visio.
I'm using vb6
This is a complex project and I'm pretty much stuck on a line ![Big Grin | :-D](https://www.codeproject.com/script/Forums/Images/smiley_biggrin.gif)
|
|
|
|
|
I'm Unable to debug my application inspite of the fact that I've put breakpoints in it.It instead creates a file with extension pdb in the bin folder.Anybody has any clues bout it.
Thnx
g
|
|
|
|
|
I had a similar problem,
Hope u have the debugging rights. Just check project
properties --> configuration properties --> Debugging
---> Enable ASP.Net debugging.
Enable ASP.Net debugging should be true.
(I assume u r having problem debugging ASP.NET applications)
cool man
|
|
|
|
|
Hi
How can i create indexers in Vb.Net
Thanks
|
|
|
|
|
What do you mean? What are you trying to do?
Are you talking about an enumerator as in C#?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I think he was talking about this[^]
As far as I know, VB.Net does not support indexers, though you could always used parameterized properties as a poor man's choice.
"if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler.
|
|
|
|
|
How to create indexes in vb.net
Pls help I will glad to get a reply
Thank You
|
|
|
|
|
Index of what? You'll have to be alot more specific about what your trying to do.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can we use Common Dialog for folder selection? if yes then how.
-qur
|
|
|
|