|
Jesse Liberty - Programming C# is pretty good at covering the ins and outs of the C# language pretty concisely. It's now in its 4th edition.
Kevin
|
|
|
|
|
I agree on this as well. It's published by O'Reilly. I also liked "Programming ASP.NET" by Jesse Liberty & Dan Hurwitz (O'Reilly as well). "ASP.NET 1.1 Insider Solutions" isn't so bad either - a bunch of tips and tricks. It's by Alex Homer, Dan Kent, Dave Sussman, and Dan Wahlin (published by SAMS).
Dirk Watkins
|
|
|
|
|
drkwtkns wrote:
I also liked "Programming ASP.NET" by Jesse Liberty & Dan Hurwitz (O'Reilly as well).
Yes, I have that too.
Kevin
|
|
|
|
|
Hello everybody,
I'm working on a share point site. I want create a web part containing a link which will point to my existing ASP.NET application. Currently i'm specifying the url of aspx page manually. Similarly to return back to share point site from asp.net page i'm specifying url of the share point site maually in aspx page.
Application is working fine on my local machine. But if i've to deploy it on other server; how will i deploy the sharepoint site along with my existing asp.net application?
If anyone knows the solution plz reply me.
Thanks.
|
|
|
|
|
Me and partners are developing an aplication using Mono. This is a job we must do for our university.
Please, if anybody could help us, I want to know if there is a library that has some methods to directly execute Unix shell's commands.
Thank you!
Sebastian Salvo.-
|
|
|
|
|
Does your shell (bash, ksh..) take command line arguments that run shell commands? For example, Windows' command shell (cmd.exe) has a /C parameter that does it.. If your's does, you can spawn the shell using the Process.Start method, passing the command as a command line argument. You can redirect standard output and error, so you can capture the output as well.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
RE: ListView / ImageList SmallIcons failing to load properly
The 16x16 icons do not display as well as they do in explorer.
It seems to me that the 32x32 icon stored is being mapped to the 16x16 size rather than the ImageList loading the 16x16 icon stored in the same .ICO.
I have a program that simply loads the listView either from embedded resources or directly from the directory that I used to build the embedded resource.
I view that directory (using explorer) side by side with the ListView showing List or Small Icons.
The directory contains about 30 of the icons from supplied from visual studio ... so we are not using any special icons.
When I edit the icons, at least a 32x32 and a 16x16 image is displayed and edited (the 16bit being mostly 4bit color depth. So both Small and Large sizes are supplied in each .ICO file.
Yet the Small Icon display results in the ListView are not the same as by explorer. Again, it appears that they are the 32x32 simply compressed to 16x16 ... not the better looking 16x16 images stored in each .ICO file.
How can I insure that the 16x16 (4bit depth) images are being loaded correctly into the ImageList supplied to SmallImageList?
The follow code snippets are simply the Reset and Add parts of the code. Each icon is being passed to the z_LisAdd method, either right from the file
(new Icon(<filename>) or from the resource enumerator value property.
=======================================================================
ListView zxLis;
ImageList zxPics1;
ImageList zxPics2;
private void z_LisReset()
{
zxLis.Clear();
if (zxPics1 != null) zxPics1.Dispose();
if (zxPics2 != null) zxPics2.Dispose();
zxPics1 = new ImageList();
zxPics2 = new ImageList();
zxPics1.ImageSize = new Size(16,16);
zxPics1.ColorDepth = ColorDepth.Depth4Bit;
zxPics2.ImageSize = new Size(32,32);
zxPics2.ColorDepth = ColorDepth.Depth16Bit;
zxLis.LargeImageList = zxPics2;
zxLis.SmallImageList = zxPics1;
}
private void z_LisAdd(string theText, Icon theIcon)
{
IntPtr iIcon = theIcon.Handle;
zxPics1.Images.Add(theIcon);
zxPics2.Images.Add(theIcon);
zxLis.Items.Add(theText, zxPics1.Images.Count - 1);
}
=======================================================================
|
|
|
|
|
Ok, I'll answer my own silly question (see below ... and pardon my silly confusion).
The answer is: grab the size you want at the stream input level.
I was thinking (wishfull thinking) that there would be an "implicit" proper conversion to the ImageList.
private void z_LoadFromResources()
{
System.Drawing.Icon xIcon16 = null;
System.Drawing.Icon xIcon32 = null;
zxReader = new System.Resources.ResourceReader(zxAsm.GetManifestResourceStream("ResourceViewer.Any.resources"));
zxEnum = zxReader.GetEnumerator();
z_LisReset();
FileInfo[] xFiles = new DirectoryInfo(Vals.IconsFromPath).GetFiles("*.ico");
while (zxEnum.MoveNext())
{
string sKey = zxEnum.Key.ToString();
xIcon16 = new Icon((System.Drawing.Icon)zxEnum.Value, 16, 16);
xIcon32 = new Icon((System.Drawing.Icon)zxEnum.Value, 32, 32);
z_LisAdd(sKey, xIcon16, xIcon32);
}
zxLis.Refresh();
}
private void z_LoadFromFolder()
{
System.Drawing.Icon xIcon16 = null;
System.Drawing.Icon xIcon32 = null;
z_LisReset();
FileInfo[] xFiles = new DirectoryInfo(Vals.IconsFromPath).GetFiles("*.ico");
foreach (FileInfo xFile in xFiles)
{
xIcon16 = new Icon(xFile.OpenRead(), 16, 16);
xIcon32 = new Icon(xFile.OpenRead(), 32, 32);
string sKey = xFile.Name;
z_LisAdd(sKey, xIcon16, xIcon32);
}
zxLis.Refresh();
}
private void z_LisAdd(string theText, Icon theIcon16, Icon theIcon32)
{
zxPics2.Images.Add(theIcon32);
zxPics1.Images.Add(theIcon16);
zxLis.Items.Add(theText, zxPics1.Images.Count - 1);
}
public static void MakeResources()
{
FileInfo[] xFiles = new DirectoryInfo(Vals.IconsFromPath).GetFiles("*.ico");
ResourceWriter xOut = new ResourceWriter(Vals.MakeToPath);
foreach (FileInfo xFile in xFiles)
{
xOut.AddResource(xFile.Name, new Icon(xFile.FullName));
}
xOut.Close();
}
|
|
|
|
|
I've developed a simple application including a server, a client and two remote objects. This application is built on tcp.
I need a monitoring application for this .NET remoting server. This application will display the status of different server remoting objects.
How to implement this server monitoring tool or application???
|
|
|
|
|
I need a little explanation on .net compilers. Here's what I know (or at least, what I think I know):
- C# code runs only in the .net runtime environment
- Managed C++ code runs only in the .net runtime environment
- Standard C++ code can still be run outside of the environment (maybe?)
- As far as I can tell, Visual Basic only runs in the runtime environment
Regardless of how much of that is right, here's the problem... I need to write some software for an audience that is less than tech-savvy. The odds are very good that they do not have the .net framework installed and can't figure out how. Some likely also run Windows 98.
I am using Visual Studio 2005. The program will be very easy to write in Visual C# or Visual Basic, but very hard in Visual C++. Is the only way for me to write an actual, compiled executable that doesn't need the .net framework to go dig out my old copy of Visual Basic 6?
Please help.
Thanks
|
|
|
|
|
actually, VB.NET runs only on the framework, but VB6 is outside...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Basically you are right. But you could build a setup containing your app and the .Net framework. This way your audience wouldn't have the problem of having to install it seperately.
|
|
|
|
|
Alright... just reinstalled VB6.
Thanks for the help!
|
|
|
|
|
|
Yes, but there aren't many options anymore for those of us who want to avoid an intermediate compiler.
I've been poking around in Visual Studio... I realized I don't know how to include the .net framework in a setup file. If anyone can point me in the right direction, I'd appreciate it.
|
|
|
|
|
hi,
Can any one help me how I can parse an SOAP response.IS their any API in .net that can parse SOAP response.
Please give me some links where I can find this.
Thanking in advace,
Satish.
|
|
|
|
|
If you added a web reference to your project then the call would just be like calling a function, if you are manually calling a web service or something else communicating back with SOAP, I think you might have to manually do that. It is in an XML/HTML format, so it should not be that hard to parse out with your preferred XML parser. What are you trying to do with it?
Steve Maier, MCSD MCAD
|
|
|
|
|
Hi,
I need to know how to capture the killing of a C# windows application from task manager.Does any event of the application can be trapped to know this.
Please let me know your suggestions
Thanks
|
|
|
|
|
Hello,
I am a beginner with .net remoting,
I've developed a simple application including a server, a client and a remote object. This application is built on tcp.
Is it possible to add another client in ASP.NET, using the same service from the server? How to do?
Thank u.
|
|
|
|
|
After researching for some time, including in Ingo's book Advanced Remoting, I have not been able to find code that successfully does the equivalent of this method:
RemotingConfiguration.Configure("someserver.exe.config")
Of course, the configuration info is contained in the config file, and this works! There are lots of examples out there, so that's fine if you want to use config files.
But I don't want to use config files, for the following reason: My produt may be deployed where IT people are NOT available to go in and edit xml files such as the config file.
Therefore, I want to do the equivalent from code, where the paramters that are in the config file are loaded from the registry or a database table.
Here is some code that "should" work , can anyone tell me what I'm doing wrong?
The problem is that although the code here runs fine (and so seems to work), when a client object tries to access a MarshalByRefObject in the server's remotable class, an error says that the object could not be created...
Keep in mind, though, that the very same process works fine when configured from the config file. Therefore, I know that everything is "ok" with the implementation etc. The problem remains, then that I need help configuring the server from code !!
Here's the code that doesn't expose the remotable object properly:
Dim AHashTable As IDictionary
AHashTable = New Hashtable
AHashTable("name") = "MyRemotableObject.soap"
'(MyRemotableObject is an implementation of the IMyRemotableObject interface)
AHashTable("port") = MyTCPPort
'(MyTCPPort is loaded from some database field)
AHashTable("machinename") = "TheServerComputer"
Dim AFormatProvider As New BinaryServerFormatterSinkProvider
AFormatProvider.TypeFilterLevel = Runtime.Serialization.Formatters.TypeFilterLevel.Full
Dim AChannel As New TcpChannel(AHashTable, Nothing, AFormatProvider)
ChannelServices.RegisterChannel(AChannel)
Dim AnObjectURI As String = "MyRemotableObject.soap"
Dim T As System.Type = GetType(MyRemotingObjectNamespace.IMyRemotableObject)
RemotingConfiguration.RegisterWellKnownServiceType(T, AnObjectURI, WellKnownObjectMode.Singleton)
Bob
|
|
|
|
|
I have been searching for a few hours how to assign the right to "log on as a service" to a user I created.
Does anyone know if there is an API or some registry keys to modify?
Thank you in advance.
|
|
|
|
|
I actually found a way to do this using a SDK tool called NTRight.exe
Use command line:
ntrights.exe -u [UserName] +r SeServiceLogonRight
|
|
|
|
|
Hi All,
I am trying to call a web service on the same machine (as the client code)
through a dotnet client and I get the following error.
"The underlying connection was closed: The proxy name could not be resolved,
verify correct proxy configuration"
Proxy is not enabled.
SSL is not enabled.
.NET Framework 1.1 is installed
I tried browsing the web service with IE and could do so.
Can you please help me out with this? Is there a known solution?
Thanks,
Nitin
|
|
|
|
|
where can i have the namespace Microsoft.PointOfService
the link for this namespace explanation from msdn is
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ccl/html/T_Microsoft_PointOfSer
vice_PosKeyboard.asp
plz help me urgently
regards
Arun Appukuttan
|
|
|
|
|
1. Don't post a question to every group on the site
2. Look at the bread crumbs - the page is within the help for Microsoft embedded and mobile, so it's obvious that Microsoft have an embedded version of Windows that contains this stuff for working with scanners, etc.
Christian Graus - Microsoft MVP - C++
|
|
|
|