|
Hi all,
I just want to share this with you. There's people who loves writing software in notepad, i'm one of them. Programming with notepad can get you a big headache but in my opinion is more flexible in terms of custom components (custom editor, custom compiler, custom resource creator) and is very handy at compile time, using batch files (.bat) is the most common option for compilation when notepad is used instead an IDE.
I just found an incredible Opensource text editor for us: Notepad++
http://notepad-plus.sourceforge.net/uk/about.php[^]
You can download an executable with installer and a zipped version for people who likes "clean" apps.
It's not a resource hungry app, it's a notepad with syntax highlighting (many languages) and format encoding, and no additional features such as code completion, and others. It's a real tool for real brainy programmers.
Enjoy
|
|
|
|
|
In a Windows Form project, one inherited form from FormBase has one toolbar and one imagelist, both are public.
The imagelist object is linked to toolbar object. My problem is that the images don´t appear on the buttons of toolbar object when I add new buttons to toolbar, new images to imagelist object ,link them through Imageindex property and compile the code.
I realized that the source code generated for buttons in the InitializeComponent session are in the upper position of the source code generated for toolbar object. It may have cause the problem because the buttons have been defined before the toolbar is initialized.
How could I solve this problem? I would like to inherit others forms from FormBase and customize the toolbars per each form.
Please find below the code sample for InitializeComponent method. Please see that the ToolBarButton1 is added to toolbar before its definition.
'
'ImageList
'
Me.ImageList.ImageStream = CType(resources.GetObject("ImageList.ImageStream"), System.Windows.Forms.ImageListStreamer)
'
'Toolbar
'
Me.Toolbar.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.ToolBarButton1})
Me.Toolbar.Name = "Toolbar"
Me.Toolbar.Size = New System.Drawing.Size(345, 28)
'
'ToolBarButton1
'
Me.ToolBarButton1.ImageIndex = 0
Att,
Emerson Valente
-- modified at 16:18 Tuesday 13th September, 2005
|
|
|
|
|
Got this in English? It's an English speaking board...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am working on a touchscreen jukebox program like some of the more modern ones you may have seen in bars or pool halls. It's quite generic right now but I have been playing around with the ListView control to display an accurate representation of the current playlist. I have gotten it so that the user can DragDrop items (music files) in (*not "into" from an outside source..yet) the playlist to alter the order of the songs, i.e. move track 1 to track 3, thus resulting in track 2 becoming track 1 and track 3 becoming track 2. You get the picture. Actually it's quite like the playlist ListView in Windows Media player right now. In any cause, when the user moves the media up and/or down the list I am drawing a line on the ListView Control between the items that the chosen media is to be moved and thus inserted. I am using Graphics and Graphics.DrawLine and it works fine. However, I have to ListView.Refresh() everytime the line changes otherwise a whole bunch of lines will just continue to be drawn on the playlist ListView. It is in Detail Mode Behavior btw. This is all dandy when I have just a few items in the playlist but when I get around 30 or so when I drag an item to be moved the ListView Refreshing causes the control to flicker. Nothing major but annoying and unprofessional. How do I get this to quit? The Media Player for Windows does not flicker. Also on a side note, when the playlist becomes too big for the ListView the scrollbars take effect however on mine I get a horizontal one as well and do not want it. Do I have to resize the ListView when it reaches a certain number of items to accomodate the width of the vertical scrollbar or is there a way to tell the ListView control not to display the horizontal scrollbar at all? Any help, suggestions, or comments would be greatly appreciated.
|
|
|
|
|
Gate Crasher wrote:
I am working on a touchscreen jukebox program like some of the more modern ones you may have seen in bars or pool halls.
Cool - I wrote one of those in C# a while ago. What do you use to play the files, DirectX or WMP ?
Gate Crasher wrote:
I have been playing around with the ListView control to display an accurate representation of the current playlist
I reckon you'd be better off with your own control, I found that I was.
However, the first step to eliminate flicker is to turn on double buffering.
SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true)
UpdateStyles()
in your form object. I'm not sure if VB lets you do |, or if + will do.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
I'm not sure if VB lets you do |, or if + will do.
It's ControlStyles.DoubleBuffer Or ControlStyles.UserPaint Or ControlStyles.AllPaintingInWmPaint
Pompiedompiedom...
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick
|
|
|
|
|
Did you try enclosing the code within the Refresh method within BeginUpdate/EndUpdate? Something like
void Refresh()
{
listView.BeginUpdate();
...
listView.EndUpdate();
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi, I'm interested in pursuing a career in the IT field as a programmer. My question is, What language should I start out with? I already know BASIC, and was thinking about self-learning C++, but I didnt know if I should just go into .net instead. So, what do you guys think? Is learning c++ important/necessary? Also, is it a good language to kick start my programming knowledge? If not, what is a good language to start learning with?
|
|
|
|
|
It depends on what sort of stuff you want to program.
C# is great for business applications.
C++ is used for games programming and lower level stuff, and still used for business applications.
C is used mostly in operating systems.
This isn't a precise list by any means, but it should get you thinking about what direction to go in. Perhaps if you provide more information you can get a more accurate answer for your situation.
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
i downloaded the popup control from this site....
added it to my toolbox and then to my app.
it worked so-so for about an hour and then, without any changes to the control....
it started giving me:
Parser Error Message: Access is denied: 'eeeksoft.web.popupwin'.
and my app will longer run.
anyone have any clue as to why this is happening???
|
|
|
|
|
You should ask on the forum at the bottom of the article page where you got this control. This is a general .NET Forum.
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
Hi,
I developed a Word add-in in Visual c# .net, and have been testing it in Microsoft Word running on the same machine that I developed it on. There were no real installation issues and it runs fine. I now want to install the add-in on another computer (that doesn't have Visual c# .net installed).
I tried to install as per instruction at msdn
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q316723
which says to build the <addin>Setup project in Visual C#, copy over the resulting folder to the target computer and run setup.exe in this folder. I did this and the setup seemed to work fine but when I subsequently tried opening the add-in in MS Word, I got the error message "not a valid Office Add-in". Anybody got any ideas, I'd be very grateful?
Also, I noticed another msdn article about using a shim. How does this differ from the approach above? Is it just a security issue?
Thanks in advance.
|
|
|
|
|
Sorry, I have never created an add-in using NET, only VS6. But since no one with more relevant experience has responded, one question:
Did you also install the NET framework on the target computer???
|
|
|
|
|
Hi,
Thanks for reply. Yes, I did install .Net framwork on the target.
|
|
|
|
|
I have wasted my time browsing so many stupid forums with VB vs. C# debates. What I've come to realize is that you're all arguing over the wrong thing! This is because VB = C# and C# = VB! I know you're all pissed that I've just said this, but it's true! Sure the syntax is different, but some of the time it's just a matter of whether or not to add a semicolon. Anyone who can read a VB program can read a C# program. I have used VB for over 7 years and have just made the transition to C# with very little effort. If you worship C# like a god and despise VB, then wake up and smell the coffee. C# is just as simplistic as VB. And if you're a VB programmer, don't think you can't handle C#. Just find a good web reference that explains the differences, and you can start using C# right away. For a good reference, see the VS documentation at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxgrfLanguageEquivalents.asp.
The real debate is the one that has been around since well before .NET came around - VB (or C#) vs. C++. C++ is a much richer, complex, and "grown-up" language. Neither VB or C# hold a candle to it (at least not in their current versions).
And one more thing I want to get off my chest. VB6 programmers - grow up! Stop using your COM wannabe toy that produces too much buggy crap, and start using .NET!
|
|
|
|
|
Uhhh......Yeah......So, how are the insert favorite sports team here doing these days?
It doesn't make any difference to me what language is used. I still get paid the same no matter what...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
It doesn't make any difference to me what language is used. I still get paid the same no matter what...
Same here. My client doesn't care if I code him a fix for a program to help his business. He just wants it done! VB/C#/C++, whatever my heart so desires...
So everyone please drop the VB/C# debate.
PJC
|
|
|
|
|
ComputerGuyCJ wrote:
I have wasted my time browsing so many stupid forums with VB vs. C# debates
So why start one ? :P I thought this had been dead for a while ?
ComputerGuyCJ wrote:
This is because VB = C# and C# = VB!
No, that is not true. Both languages have features that the other does not.
ComputerGuyCJ wrote:
Anyone who can read a VB program can read a C# program.
Then why do so many people write asking C# authors to convert to VB for them ? I agree - I help in the VB.NET forums a lot, even though I don't use it, because the core code is the same, it's the same library being called.
ComputerGuyCJ wrote:
I have used VB for over 7 years and have just made the transition to C# with very little effort.
Good for you. You'll find as you use it that it offers a lot of things that VB does not ( especially VB6, but even VB.NET ), although you'll probably find from time to time that it doesn't have stuff you had in VB ( if you used VB.NET )
ComputerGuyCJ wrote:
If you worship C# like a god and despise VB, then wake up and smell the coffee
Does anyone actually do this ? C++ is king of the hill, C# and VB.NET are both a step behind, although both easier to use. The real difference is that VB has a lot of crappy stuff in it ( that Microsoft wanted to remove in VB.NET until the users started to whine ) which makes for some really bad code to compile, but the core issue is bad programmers, and the language letting them get away with it. It's possible to write good code in VB.NET and C#.
ComputerGuyCJ wrote:
C# is just as simplistic as VB.
This is kind of true, I agree.
ComputerGuyCJ wrote:
C++ is a much richer, complex, and "grown-up" language. Neither VB or C# hold a candle to it (at least not in their current versions).
Give the man a prize !!!
ComputerGuyCJ wrote:
VB6 programmers - grow up! Stop using your COM wannabe toy that produces too much buggy crap, and start using .NET!
Now you're talking !!!
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
ComputerGuyCJ wrote:
Anyone who can read a VB program can read a C# program.
Then why do so many people write asking C# authors to convert to VB for them ? I agree - I help in the VB.NET forums a lot, even though I don't use it, because the core code is the same, it's the same library being called.
Because push the button is faster, easier, and less errorprone than manually keying in changes.
That said, assuming equal levels of ignorance, I think a C# programmer would have an easier time porting from VB than vice versa. Simply because VB is a more verbose language. I've done almost all of my programing in C or basic style languages, and when I've came across code in a langague with a different heritage it's verbosity made a major impact in how hard it was to figure out. Fortran was much more transparent to me than perl, and both were an order of magnitude more clear than assembly.
|
|
|
|
|
ComputerGuyCJ wrote:
And one more thing I want to get off my chest. VB6 programmers - grow up! Stop using your COM wannabe toy that produces too much buggy crap, and start using .NET!
I use whatever language is appropriate for the task at hand and some of us out here in reality land have to support old code and have no choice. Anyway, you're entitled to your opinion. Everyone is entitled to mine
...Steve
|
|
|
|
|
I would add VB = C# = ilasm.
That's true I could do the same thing in ilasm I could in C#...
|
|
|
|
|
I would only add that the one big problem with C++ (which I have used for many years and love like a brother ) is that it brings more to the table than you will probably need for 90% of the Windows application development that you will ever need to do. C# and (ugh) VB.Net are, in fact, better suited for the typical Windows application than is C++. Especially if you need code to run both in Windows forms and web forms.
-- modified at 15:19 Saturday 10th September, 2005
|
|
|
|
|
I use them all, C++, C#, and VB.NET. I would agree that C# and VB.NET are essentially the same, but then I've been saying that for months now. I like C++ but would rather skin dive for Roto-Rooter than create any kind of user interface in C++.
As far as COM goes, I still find it has it's usefulness. And as far as .NET in general goes, I use it for any large apps. But for small apps Visual Studio 6 is still superior at least until the NET framework is installed as part of the OS on a wide basis - it's pretty stupid to create an app that is less than a meg but require users to download a 20+ meg framework just to be able to run it.
The bottom line, is a good programmer does not have preconceptions about what is "good" and what is "bad". A good programmer knows how to pick the appropriate tool for the job at hand.
|
|
|
|
|
rwestgraham wrote:
The bottom line, is a good programmer does not have preconceptions about what is "good" and what is "bad". A good programmer knows how to pick the appropriate tool for the job at hand.
You stated this better than I
...Steve
|
|
|
|
|
Sorry did not know you said the same thing already.
|
|
|
|