|
Paul Ingles wrote:
but if you want to get into C# development (specifically windows rich clients) then Charles Petzold's weight tome is also pretty good.
It's called Programming Windows with C#, I think, and he's also now translated it into Visual Basic .NET, if you prefer that.
Kevin
|
|
|
|
|
IMHO a lot of so-called .NET books these days are fluff useless marketing. You get nothing but a biased view. And there are so many new topics to be covered that the book is either 10000 pages or it is just 800 and 1000 pages (in this case, this is not enough to cover thoroughly a SINGLE topic).
I would recommend the MSDN doc itself, now that MS has figured out they had to publish tutorials to help us developers embrace the new framework. The tutorials I am talking about is not what is known as the quickstart in the docs. I am really talking about the tutorials.
And also quite of note are the samples on the VS.NET cd. Amazing, and even almost not even mentioned in the docs...
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
Hi
I have a web control for which I am using a Designer that is derived from
System.Web.UI.Design.ReadWriteControlDesigner.
Now at Runtime I can hide certain controls using the Visible property -
however I cannot determine how to hide controls
programmatically during Design time ie so that they do not show up in the
Visual Studio Design window in HTML view.
I've overridden Render() in my Control class and GetDesignTimeHtml() in my
Designer class but its all to no avail.
Please can you assist me.
Shaun
Stupidity dies.
The end of future offspring.
Evolution wins.
- A Darwin Awards Haiku
|
|
|
|
|
I created a simple app (Localization1) with form (Form1). I want to add russian localization to this application after the compilation. I set Localizable property to True in Form1. In my main function I typed Thread.CurrentThread.CurrentUICulture = new CultureInfo("ru-RU"). After it I copied Form1.resx to Form1.ru.resx, launched "winres.exe Form1.ru.resx" and translated all I need. After it I called "resgen.exe Form1.ru.resx" that created Form1.ru.resources. Then I called "al /t:lib /embed:Form1.ru.resources /culture:ru /out:Localization1.resources.dll /template:bin\debug\Localization1.exe". This command generated Localization1.resources.dll. I copied it to my bin\debug\ru folder and launched Localization1.exe, but it ramains in english locale. What's wrong?
Thanks. Nikita Shamgunov.
|
|
|
|
|
Try to use the code below
Thread.CurrentThread.CurrentUICulture = new CultureInfo("ru").
43 68 65 65 72 73 2c
4d 69 63 68 61 65 6c
|
|
|
|
|
Hi.
How can I determine the amount of free space and total amount of space at a drive using the .NET classes?
Regards
EnkelIk
|
|
|
|
|
declaration:
using System.Runtime.InteropServices;
[DllImport("kernel32", CharSet=CharSet.Auto)]
static public extern bool GetDiskFreeSpaceEx(
string lpDirectoryName,
out Int64 lpFreeBytesAvailable,
out Int64 lpTotalNumberOfBytes,
out Int64 lpTotalNumberOfFreeBytes
);
usage :
Int64 freebytes = 0, totalbytes = 0, totalfreebytes = 0;
GetDiskFreeSpaceEx(@"c:\\tmp", out freebytes, out totalbytes, out totalfreebytes);
Warning : 64-bit output.
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
StephaneRodriguez wrote:
Int64
Just curious; any particular reason you are using Int64 instead of long? So far I haven't had to deal with a situation where I needed a 64 bit number so please enlighten me of any problems
James
Sig code stolen from David Wulff
|
|
|
|
|
No problem until now. I want to make sure those who use interop functions such like GetFreeDiskSpaceEx know that the result is not 32 bits. You probably know that GetFreeDiskSpace() raised a lot of problems for us 32-(bit people, as this API method was there before huge drives came in the market.
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
I attempted to use this function in J# but the compiler issues this message:
'Cannot resolve name 'System.Runtime.InteropServices'
How can I solve this problem?
Thanks
Arash
Arash Afifi
Software Engineer
Fax: +1(309)276-7070
E-mail: afifi@sympatico.ca
|
|
|
|
|
try
import System.Runtime.*;
From an MSDN doc I have just seen, this looks like the right syntax.
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
I am trying to configure my firewall to allow access to my .NET remoting application. I set my firewall to route tcp traffic on a particular port to my internal PC. This works fine for instance if I run a web server on my machine (port 80) but I cannot get my .NET remoting server exposed. My port scanner says the correct port is open. I am simply opening up port n to TCP traffic. ANy suggestions?
Joel
|
|
|
|
|
|
Your link didn't seem to point to a relevant thread. My server is a simple server with no call backs to the client. I thought that if you configure the server to listen on one port that would be all it needed. If it needs more ports, how do I know which ones.
Thanks - Joel
|
|
|
|
|
Just to see what happening (if anything similar to this) try opening up a command window on the server and run netstat to show you a listing of all the TCP connections.
Hit your service and then see if there are any connection attempts outwards on another port.
|
|
|
|
|
I found the problem and it has nothing to do with open ports. When using CAO in remoting, the server sends the IP of the server back to the client which it then uses to get back to the server. When using a firewall, the IP sent to the client will often be the internal IP which is not the IP that the client can use to get back to the server. So you have to override this in the config file for the server with something like:
<channel ref="tcp" port="5555" machinename="firewall.something.com">
Joel
|
|
|
|
|
I need to add an Outlook toolbar to a .NET form? Does .NET come with such a feature? If not is there a free way to do this or must a component be purchased? If a componentmust be purchased does anyone recommend one for C++ .NET forms?
Many Thanks,
Derek
|
|
|
|
|
Take a look at this project
http://www.codeproject.com/cs/miscctrl/outlookbar.asp
|
|
|
|
|
Has anyone else had problems trying to attach on to a web service while your IE proxy setting sare set up for auto-discovery and to use a configuration script?
It seem sthat I have to set my proxy settings for an explicit proxy server address in order to use any webservice.
|
|
|
|
|
|
Yeah, leppie was wondering about that type of stuff so I posted it in the C# forum...probably should have said it here too...
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
|
|
|
|
|
I just had a thought as I was drifting off to sleep and can't seem to come to a conclusion why it would work out, but I also can't seen to decide just how it COULD work. Let me explain.
When developing a windows forms application that gathers some information by accessing a web service, you have to first start by creating a web reference in the solution. That much I understand.. Here is where my mind goes crazy...
What happens if I deploy the web service on a machine that is named differently than my development box? Does the application somehow find the new location of the webservice? I doubt that...
I have a feeling that, just like using the fancy database wizards to create connections to a SQL database, I have stubled upon a major 'flaw/feature' of the VS.NET IDE. It seems like ALL of these things require that you develop on the same machines, or at very least machines with the same names, that will be used in production.
Am I nuts or just missing some big picture here?
|
|
|
|
|
Ray Cassick wrote:
Am I nuts or just missing some big picture here?
Ray Cassick wrote:
I just had a thought as I was drifting off to sleep
It is the Drifting Off To Sleep Thoughts Demon at worka gain
If you think about it this kind of problem has existed since before web services, before the internet etc. With a client/server database setup you would always have problems if the server location changes.
And just as with the connection wizard for SQL you can go into the generated code and change the location or rather assign it to an app setting.
So I would not call it a "major flaw", just one of the "wizard tradeoffs" really.
Won't it be nice though one day when we can use a proper URL for our in-dev web service and then just flick a switch once it is ready for prime time? No uploading, configuring, changing app settings and all that other crap which drives me up the wall.
|
|
|
|
|
Paul Watson wrote:
It is the Drifting Off To Sleep Thoughts Demon at worka gain
Yeah, hate it when that happens... The one night I decide to get to bed early too...
Paul Watson wrote:
Won't it be nice though one day when we can use a proper URL for our in-dev web service and then just flick a switch once it is ready for prime time?
Well they should at least allow us to use a DSN for the database stuff. Why they don't allow the wizzards to reference a DSN is way beyond me... would solve that problem right there.
Hmm that's not a bad idea.. DSN for a webservice... I wonder if I could set up a local DNS entry that points to the web service directly...
|
|
|
|
|
Ok, I have a link here that fixes what seem to be ALL my issues regarding development configuration vs. deployed configuration...
Clickety[^]
It outlines propper use of the application.config and user.config files...
Great stuff, but should be MUCH simpler to find IMHO.
Hope it helps someone in the future.
|
|
|
|