|
Hello,
Since I couldn't find the right component to do what I
want, I'm planning to write a recursive search and replace
in files component. This will accept a table of links,
search them in html files and replace with a new link.
I am planning to use the System.IO namespace and load
files into memory (using stream objects?). Is this the
right way to go about this or am I missing something big
here??
Any help appreciated,
Thanks.
|
|
|
|
|
Hello,
Does anyone know how to implement any of the unique GUI features found in Microsoft's Project 2000? The basic framework of this app looks a lot like something I want to build myself.
Some of the features are:
(1) a vertical toolbar at the left of the MDI parent window, showing icons (and texts below the icons). The icons seem to be buttons (doing a mouseover will show the button border), but the button border is absent otherwise; only the icon shows. The ordinary Windows App button does not support this display mode out of the box.
(2) the main client area of the application can have one or more MDI child windows for projects. But each window will contain whatever type of chart is selected in that vertical toolbar described above, and whenever a particular chart is selected, it occupies the entire client area of the MDI child window.
#1 can be implemented the hard way with a panel and ordinary buttons, tolerating not having the button borders go away when no mouseover. Or, just use PictureBoxes and load in icons with and without a "button border" depending on mouseover state.
#2 is similar to trying to build a wizard with the TabControl and trying to get rid of the tabs themselves, something no longer available in .NET. Otherwise this approach could work by just having all the different flavors of charts available in a big TabControl and just bringing up the desired one.
But all this seems rather roundabout. Are there freeware/shareware solutions out there that can specifically implement the Microsoft's Project 2000-style interface? As interfaces go, I think this one is rather good for certain kinds of applications, and so I'd ruthlessly want to mimic it.
Thanks
Mike
|
|
|
|
|
Is there a book or an online reference that discusses, preferably step-by-step, what the industry standard (as defined by MS) for designing, laying-out, developing, and implementing Windows Forms Applications?
I appreciate any information!
|
|
|
|
|
Jeffrey,
To my knowledge, there isn't an industry standard for designing Windows Forms Applications. I believe the standard is .NET itself, and the implementation is up to the developer. I've read several of the Microsoft Press books for Windows Apps, along w/ books by Apress, Oreilly, etc. and they all have varying approaches.
I think one of the best books out there is User Interfaces in C#: Windows Forms and Custom Controls by Matthew McDonald (APress).
Another great place to start is w/ the Microsoft QuickStart Tutorials: http://samples.gotdotnet.com/quickstart/winforms/
http://www.windowsforms.net is also a great resource.
Lastly, probably the best resource for Microsoft recommended development, is going through their MCAD/MCSD course for Windows Forms. They have a great book for self-paced study:
http://www.amazon.com/exec/obidos/tg/detail/-/0735619263/qid=1070458423/br=1-18/ref=br_lf_b_18//103-6026681-2227824?v=glance&s=books&n=764452
Good luck!
Sean McCormack
|
|
|
|
|
|
Are you talking about like... What fonts, colours, icons and stuff to use?
/\ |_ E X E GG
|
|
|
|
|
is it possible? i know for the 2003 version you just use the compact frame work (or something along those lines)... is there perhaps a plugin that would allow you to do the same with vs.net 2002?
|
|
|
|
|
Sure, .NET 2002 simply doesn't include the SDK automatically. .NET 2003 does. Just download the SDK from Microsoft.
|
|
|
|
|
Is there a way of accessing a wellknown, singleton, remote object from the application that created the service?
I'm designing a system where a PC (host) has a hardware resource whose interface is to be shared on the LAN. In other words, client applications will be able to configure and access the hardware resource through the server application on the host PC. I also need to be able to access the hardware resource from the host PC. Since I want to maintain uniform access to this hardware resource, I want the server to access the same remote object as the clients. I have't been able to do that from the application that registers the service (wellknown, singleton). If there's no way to do that, is there another way to do this using remoting. If not, I could always revert back to using tcp communications but remoting sounds so sophisticated that I don't want to give up on it, yet.
Preemptively, thank you for you help.
Greg
|
|
|
|
|
I wanna use the TcpChannel class, but the VS.NET IDE tell me that the System.Runtime.Remoting.Channels.Tcp namespace isn't exist.
Why?
MY IDE: .NET 2002, Framework 1.0
|
|
|
|
|
hi,
how a directoryentry-constructor hast to look like, if
the distinguished name (ldap-string) contains reserved characters.
i.g:
Dim deEntry as New DirectoryEntry("LDAP://CN=Thilo1\, Test,OU=users,DC=microsoft,dc=com")
i got an exception if the bindung string contains a reserved character (",").
what's the correct syntax?
thanks for your help an regards,
thilo.
|
|
|
|
|
After creating a merge module using VS.Net 2003 and adding it to a setup, again created with VS.NET 2003, i got this error when running the setup."InstallUtilLib.dll: Unknown error in CorBindToRuntimeHost" on a Windows 2000 adv server machine with both frameworks 1.0 and 1.1 installed.
My project uses the installer classes to perform various CAs during install
(i.e. install a service)
Anybody have an idea whats wrong?
I've linked to a demo solution[^] which demonstrates the exact problem.
Is this a bug in Visual Studio 2003?
|
|
|
|
|
Hello all,
I am programming a application in Managed C++ that simules a client of a web commerce site.
Some of pages of this site are SSL secures, and I don´t know what I have to do until to call HttpWebRequest. Have I to configured something on the computer or simply I have to programming something else?
I saw example of "How to do Synchronous and Asynchronous web downloads"
By Nishant S, but it doesn´t work with https, also.
I am very lost . any idea? any example code?
Thanks,
Cris
Sorry and Excuse my poor English writting!!!
|
|
|
|
|
From what I've read in books on .NET 1.0, ByRef passes the argument twice: creating the local copy in the called function and then passing it back to the caller.
Then I saw some unsubstantiated comments about this behaviour being adjusted in 1.1, is this true, can anyone confirm?
|
|
|
|
|
I'm guessing that ByRef is the VB.NET equivalent to the C# ref keyword. If this is true, then:
Okay. First - Nothing gets copied. What happens is that a pointer to the object is passed in to the method. The method can then manipulate the object (through the reference/pointer). This means that when the method returns the caller's object that was passed into the method is now changed.
Sorry, but my example is in C#
static void Main()
{
Int32 i = 10;
Console.WriteLine(i);
Method(ref i);
Console.WriteLine(i);
}
static void Method(ref j)
{
j += 10;
}
The output would be:
10
20
If the parameter was passed normally (with out the ref ) the result would be:
10
10
I hope this help.
If you want a good book that covers this then I recommend "Applied Microsoft .NET Framework Programming" by Jeffrey Richter.
Regards,
Colin.
--Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)
|
|
|
|
|
Okay. First - Nothing gets copied. What happens is that a pointer to the object is passed in to the method.
Yes, I understand how it works, (how it's supposed to work!) but the actual process, as explained in "VB.NET professional" by wrox publishing, involves a double copy for whatever reason MS decided to do it this way (in 1.0 at least)
Now, this is transparent to the VB user, except takes twice as long as passing ByVal. I do not know what happens in other languages.
So, my question is, whether the VB.NET behaviour with 1.1 is more like you (and I) would expect, or is it still really just creating ridiculous inefficiency?
|
|
|
|
|
I find this hard to believe, this contradicts everything I have read.
are you talking about value or reference types?
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
For all types, my source is Professional VB.NET, 2nd Edition[^] by wrox, page 99 I believe... They say it's accurate on framework 1.0, like I mentioned.
This contradicts everything I believe, too. In fact, this behaviour contradicts the words "by reference" themselves, and if true, is very disempowering for VB(or .NET)
|
|
|
|
|
|
We have two HP printers that support paper types, as opposed to paper trays. We use this in our Access client to specify that a document is for a specific paper type, e.g. Preprinted. If the printer has that it in a tray it uses it, otherwise it prompts for someone to provide the type.
Looking at .NET printing only the concept of paper trays seems to be exposed, but when you have six different paper types and three trays this becomes a problem! Is there a way to do this in .NET or a 3rd party printing library that supports paper trays?
Howard
|
|
|
|
|
Presumably this is done via the API EnumForms and uses the dmFormName element of the printer device mode (DEVMODE) structure to select this?
You could wrap these API calls in VB.Net to achieve what you want...
'--8<------------------------
Printer Monitoring in .NET? see - Merrion Computing Ltd for details
|
|
|
|
|
At MSDN there's plenty to read about .NET Framework naming conventions. But I cannot find how to name your forms in WinApps? Do I use a prefix 'frm' or 'Frm' or should I not use prefixes? If we place controls on a form, we do use prefixes like 'lbl' and 'txt' for labels and textboxes.
grtz,
Octavie
----------------------------------------------
Why create waste if we throw it away, anyway?
----------------------------------------------
|
|
|
|
|
A form is a class, right? So you use the class naming guidelines.
In this case, here is the relevant paragraph IMO:
Where appropriate, use a compound word to name a derived class. The second part of the derived class's name should be the name of the base class. For example, ApplicationException is an appropriate name for a class derived from a class named Exception, because ApplicationException is a kind of Exception. Use reasonable judgment in applying this rule. For example, Button is an appropriate name for a class derived from Control. Although a button is a kind of control, making Control a part of the class name would lengthen the name unnecessarily.
e.g. You have a Form showing customer records, I would name it CustomersForm . (Plural because it is showing a list of customers. If it was the details form then either CustomerForm or CustomerDetailsForm ).
regards,
Paul Watson
Bluegrass
South Africa
Brian Welsch wrote:
"blah blah blah, maybe a potato?" while translating my Afrikaans.
Crikey! ain't life grand?
|
|
|
|
|
Hi
I have a question, if you have some solution, please answer.
I develop a system using .NetFramework.
This have a function connect multi datasource.
So I develop the following way, a connection per object.
This obeject have connenction information and ...
If I would like to connect database, I would use it,
But .Net Framework don't support parallel transaction.
I think about the other solution.
thank you in advance for your help
best regards,
yu-yu
|
|
|
|
|
I understand that if I set "Cursor.Current= Cursors.WaitCursor ;" then somewhere I call "Application.DoEvents()", my hourglass cursor will disappear.
Why the he$$ does .NET insist on doing this? I want the hourglass there so the user knows the app is busy *AND* I want the form to be repainted (to show the progress bar) so I both set the cursor and call "DoEvents()".
|
|
|
|
|