|
well, I've learnt basics of .NET from MSDN[^] and with help of my friends. Here (CP) you have potencially milion and half friends willing to help u and some tutorials... search articles.
Bt at first, try to figure out by yourself - too many questions are answered by simple googling or searching MSDN docs. Save us some time plz
I can't recommend you other developer sites, cuz I don't usually visit them (codeguru, gotdotnet, csharpcorner etc.) Bt that says nothing about their quality - it is all about me
ah and I don't have to tell u that studying examples and experimenting with them is damn good way how to learn, do I?
hope I gave u some clues... and you can buy some books (again, I didn't do that ).
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
If you want to do C++.NET --
See this book. It's a good introduction for C++ programmers into what's up for C++.NET.
Though I'd recommend not going C++.NET and go for C# .NET.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
well it may be good book, bt didn't you want to answer original post and not mine?
Peter Weyzen wrote:
Though I'd recommend not going C++.NET and go for C# .NET.
depends on what he wants to do, mainly for biz & database apps (what is probable) I agree.Bt as a former C++er he could want to use some legacy c++ code
btw I AM C# programmer
best regards,
David 'DNH' Nohejl
p.s. your sig reminds me that I *should* proudly link to something in my own sig Problem is there is nothing [bossmode]except company I work for[/bossmode] interesting to link to
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
|
I develop application on my PDA2K it support arabic but for some reason when importing arabic data from my PC into SQLCE I use in my app the fields appear empty for arabic data only
any onw know what is the problem ?
thanks
|
|
|
|
|
Double.NaN!=Double.NaN , but, Double.PositiveInfinity==Double.PositiveInfinity - Why? -...and the documentation MSDN states that:
[...] It is not possible to determine whether a value is not a number by comparing it to another value equal to NaN. [...]
[...]
It is not possible to determine whether a value evaluates to positive infinity by comparing it to another value equal to PositiveInfinity. [...]
|
|
|
|
|
This looks like a bug in the implementation:
Console.WriteLine(double.NaN == double.NaN);
Console.WriteLine(double.NaN.Equals(double.NaN));
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
Hi All,
Is it possible to create the layout of a typical crystal report template programatically without using the visual Crystal Report Designer in visual studio.NET?.
I want to change the display (By adding or removing objects like textbox etc) of the report at run time based on some conditions.
If possible, please provide me some links.
Thanks in advance,
Sujith Manuel.
|
|
|
|
|
How to check whether any filter drivers are installed in the system using WMI or Registry?
Any other way to do it?
|
|
|
|
|
CAN NOT DEPLOY/DEBUG a CF application in any language ON THE IPAQ EMULATOR after installing the FULL REMOTE DEBUGGING COMPONENTS.
the ipac emulator 2002 was working fine until then. I reloaded the entire system including the framework, vs .net and it still does not work.
does anybody have any idea where in the registry is the debugging information kept...
versions used:
Microsoft development environment version 7.1.3088
Microsoft .NET Framework 1.1 version 1.1.4322
Any help will be greatly appreciated….
thanks
sun.lcr
|
|
|
|
|
Hi,
I'm trying to use No Touch Deployment for a WinForm Application.
My WinForm is interacting with a WebService that is placed on the same web server as the WinForm project.
I use a url to open the WinForm on the clients and everything works perfect.
The only problem is, that if the user isn't interactive in the WinForm for more than a few minutes there is a timeout exception thrown by the WinForm when trying to interact with the WebService.
The exact exception message is: "The operation has timed-out."
The exception is thrown from WebClientProtocol.GetWebResponse.
Can anybody help?
Itai.
|
|
|
|
|
I didn't get any reply, but I got help from someone that asked the exact same question about a year ago in anoher forum. He also didn't receive any reply, but got help from microsoft.
So if anyone gets stuck on this in the future here is the fix:
I got this fix from the MSDN support people:
// This must be added by hand each time the web reference Reference.cs is recreated.
// This prevents a no-touch-deployed app from timing out on web service calls after a period
// of inactivity.
// To get to this module:
// - go into Solution Explorer
// - click the "show all files" icon in the Solution Explorer's toolbar
// - expand the web reference
// - expand Reference.map
// - view code for reference.cs
// - add this code to the module
using System.Net;
protected override WebRequest GetWebRequest(Uri uri)
{
HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest(uri);
webRequest.KeepAlive = false;
return webRequest;
}
Good luck!
Itai.
|
|
|
|
|
Hi all,
Does any one heard of a bug in loading tiff image files of 16bit per pixel?
I'm loading an image file into an Image or a Bitmap objects.
but when I'm choosing a tiff file of 16bits to be loaded I get an error.
Is there any easy way to overcome this problem insteed of writting tiff file parser of my own?
Thank you in advance,
Anna.
|
|
|
|
|
Hi all,
I have a question about window border size.
I'm using Form object for painting an image in it.
Suppose the image is of size 200*200.
I want to set the size of my for so that it would be
the size of the image plus the size of the borderof the window created for this Form.
Is there any Windows interface or .Net functions that can help me find this constants of the form border size regardless of the Windows System (2000 or xp).
Thank you in advance,
Anna.
|
|
|
|
|
You can use the Form's ClientSize property to achieve this.
Form.ClientSize = Image.Size;
From the MSDN docs:
Form.ClientSize Property - Gets or sets the size of the client area of the form. The size of the client area of the form is the size of the form excluding the borders and the title bar. The client area of a form is the area within a form where controls can be placed. You can use this property to get the proper dimensions when performing graphics operations or when sizing and positioning controls on the form. To get the size of the entire form, use the Size property or use the individual properties Height and Width
"I think I speak on behalf of everyone here when I say huh?" - Buffy
|
|
|
|
|
Do updating Form.ClientSize updates Form.Size too?
|
|
|
|
|
Yup, and vice-versa
It makes sense to only work using the ClientSize and forget about the form's actual size, since that way it'll automatically work on different configurations (think of the difference in titlebar size on XP to other versions of windows)
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
I have another question on that metter:
I need to change the size of the window.
currently I'm working with sizable window border style
and it doesn't allow me to change the width less then 104 pixles. this number 104 might change in different Windows system (2000 or xp).
Does anyone know where this number came from?
Thank you in advance,
Anna.
|
|
|
|
|
Take a look at the System.Windows.Forms.SystemInformation class. The value is specified in the MinimumWindowSize property (on xp its 123 x 34)
"I think I speak on behalf of everyone here when I say huh?" - Buffy
|
|
|
|
|
Hi,
I have a Library DLL that is used by a .NET Web application (running in Windows 2003 server). The DLL / Library will try to send some data to two web application (ASP running on windows 2000 server) running on two different servers.
If the any of the Windows 2000 server is down the .Net Web application fails to complete the request. It is understood that it should fail for the server which is down, but it also fails for the other server as well. And this does not fail always it fails only some times.
The DLL is written in C#. The function that sends the webrequest creates a HttpWebRequest object using the WebRequest.Create method
and times out for the method call for HttpWebRequest.getResponse().
I am not setting the no-cache to the headers and also not setting proxy properties.
Please the function that is being used for this
HttpWebRequest HttpWReq;
HttpWebResponse HttpWResp = null;
StreamReader receiveStream = null;
Stream readStream = null;
int result =0;
try
{
Encoding encode = System.Text.Encoding.GetEncoding("utf-8");
HttpWReq =
(HttpWebRequest)WebRequest.Create("http://" + ip._ipAddress + ":" + ip._port + "/iPackagerweb/Upload.asp");
HttpWReq.KeepAlive = false;
HttpWReq.Timeout = _iPackTimeout;
String postData;// = "ID#~" + screenID;
if(screenID.Equals("shutdown"))
{
postData = "ID#~" + "update_" + screenID;
postData += "&~Update#~1" + "&~Data#~" + data;
}
else
{
postData = "ID#~" + screenID;
postData += "&~Update#~0" + "&~Data#~" + data;
}
HttpWReq.Method = "POST";
HttpWReq.ContentType="application/x-www-form-urlencoded";
HttpWReq.ContentType="multipart/form-data";
HttpWReq.ContentLength = postData.Length;
//ASCIIEncoding asciiEncoding = new ASCIIEncoding();
Stream data2Send = HttpWReq.GetRequestStream();
byte[] postByteData = encode.GetBytes(postData);
data2Send.Write(postByteData, 0, postData.Length);
data2Send.Close();
HttpWResp = (HttpWebResponse)HttpWReq.GetResponse();
readStream = HttpWResp.GetResponseStream();
receiveStream = new StreamReader(readStream, encode, false);
if(receiveStream != null)
{
Char [] strResp = new Char[255];
String resultMessage = "";
int count = receiveStream.Read(strResp, 0, 255);
while(count > 0)
{
resultMessage += new String(strResp, 0, count);
count = receiveStream.Read(strResp, 0, 255);
}
if(resultMessage != null || resultMessage.Length == 0)
{
;
}
else
{
HttpWResp.Close();
HttpWResp = null;
receiveStream.Close();
receiveStream = null;
readStream.Close();
readStream = null;
result = 3;
errMessage[0] = resultMessage;
return result;
}
receiveStream.Close();
receiveStream = null;
}
else
{
HttpWResp.Close();
HttpWResp = null;
result = 3;
return result;
}
HttpWResp.Close();
HttpWResp = null;
return result;
}
catch(WebException we)
{
//Logging exception here and found out to be timeout exception
}
catch(Exception e)
{
//Logging the exception here as well, does not come here
}
if(HttpWResp != null)
{
HttpWResp.Close();
HttpWResp =null;
}
if(receiveStream != null)
{
receiveStream.Close();
receiveStream = null;
}
if(readStream != null)
{
readStream.Close();
readStream = null;
}
return result;
Any help on this would be of great help. I have time till Dec 16 (Thrusday after noon Sydney time)
Thanks in advance
|
|
|
|
|
Hi
I've created simple windows form application with two windows forms.
On each form IE WebControl is embeded.
I'am loading into IE control page with .Net applet with TextBox and CheckBox (IE is hosting .Net UserControl)
When the application starts I'm loading Form1. All is working fine. I can set focus to TextEdit and change state of CheckBox.
When I'm pressing a button on that form, Form2 loads.
When I'm trying to set focus to EditBox I have SecurityException.
When I click continue (not terminate), then select other window (Form2 must lost focus), then set focus to Form2, all works great, no security warning.
I'm working with default permission sets in .Net.
Why this is working in that way ?
Here is the sample application: http://www.abc.com.pl/download/test_ie.zip
I'm using: WinXP SP2, .Net 1.1 Sp1
Thx 4 Hlp
|
|
|
|
|
How can I track this thru programming?
|
|
|
|
|
Loads of them.
If you mean, how can I detect which service pack is installed, you should use the GetVersionEx[^] API with the OSVERSIONINFOEX[^] structure. Then examine the wServicePackMajor and wServicePackMinor values.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hey,
I am writing a console application, and doing a lot of console.writeline() (s),
I would like to save everything on the console to a text file at a certain time, but have not come across anything that does this. can anyone please help me in this area. Don't care what language it is in, my app is in C#.net.
Thanks
har04mich
|
|
|
|
|
If you want to redirect output to a file only that normally would have gone to the console, see Console.SetOut .
If you want to output to both console and file, you'll need to write a wrapper class that does both and use that.
If you want to capture the current contents of the console's screen buffer, you need to look at ReadConsoleOutputCharacter[^].
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|