|
Hi,
You can find a nice article about C# and the registry here in Codeprojec,t I think Nish was the one who wrote it.
HTH
Braulio
|
|
|
|
|
|
I wanted to start getting into C# controls. At least that's what I think I want...
Ok, so I want to start making my own button, and/or Dialogs... for example, instead of using the typical .net buttons, I want to design my own, with their own look; and i want to make my own forms too, instead of the windows xp look on all my apps, i would like to design my own look, replacing the xp title bar with my own and everything...
What kind of a book would I need to learn this? controls?
/\ |_ E X E GG
|
|
|
|
|
Has any body ever read this??
Windows Forms Programming in C#
by Chris Sells (Author)
and/or
User Interfaces in C#: Windows Forms and Custom Controls
by Matthew MacDonald
/\ |_ E X E GG
|
|
|
|
|
eggie5 wrote:
What kind of a book would I need to learn this? controls?
There are many books out there that discuss making your own controls as a chapter they cover however there are also good references available online. I would suggest you start at CodeProject's C# Controls[^] section and take a look there. Chris Sells did a nice article on Building Windows Controls[^], however I would always stress it is a good idea to read through the .NET Framework Documentation[^]
-Nick Parker
DeveloperNotes.com
|
|
|
|
|
|
Is there an API that a process or a service can call to determine if a computer is signed on?
thanks
|
|
|
|
|
Maybe the Environment class can help you.
Environment.UserName - Name of the user account under which you process is running. The documentation says, it is the user who started the thread. But in reality it returns the user your process is loggend as.
Environment.UserDomainName - network domain name of the active user
|
|
|
|
|
Thank you, that was very helpful.
|
|
|
|
|
Hi
How can i build linked list in c#.
Please help me.
|
|
|
|
|
Hi, I'm a C# newby, but just instantiate an ArrayList object, that will function as a linked list.
E.G.
class ListNode
{
}
static void Main()
{
ArrayList list = new ArrayList();
while(..get data...)
{
list.Add(new ListNode(data))
}
.....
foreach(ListNode node in list)
{
....do work with node....
}
}
Festina, vita breve est!
|
|
|
|
|
No, it won't. An ArrayList uses an array, while a linked list uses nodes.
Thank you.
Jeff Varszegi
|
|
|
|
|
|
Hallo... Does anyone know how to open a .dbf file with c#?
Thank you...
|
|
|
|
|
Download and Install the Visual Fox Pro OleDb driver form the microsoft page:
http://www.microsoft.com/downloads/details.aspx?FamilyID=0f43eb58-7a94-4ae1-a59e-965869cb3bc9&DisplayLang=en
If you have for example a file named C:\test\data.dbf. You can retrieve the date with the following code:
string path = @"C:\test\";
string dbfName = "data";
OleDbConnection conn = new OleDbConection("Provider=vfpoledb;" + "Data Source=" + path + ";");
OleDbDataAdapter da = new OleDbDataAdapter("SELECT * FROM " + dbfName, conn);
DataTable result = new DataTable();
da.Fill(result);
Greetings
Robert
|
|
|
|
|
|
Kind of fuzzy between the distinction between WebService and Remoting...
Both are used for remote method invocation. Both requires proxy... What's the fundamental differences between the two technologies. I think I read somewhere that WebServices is actually built on top of Remoting. Is that true?
Does it lies in the fact that WebServices exposes it's services in WSDL? That client can generate a proxy class by "Add Web References" (ie. using wsdl.exe under the hood)? On the contrary, Remoting requires developer to deploy remoting object's assembly to each target machine (or at least the interface assembly)...
Thanks.
|
|
|
|
|
A webservice can be called by all kinds of applications since it's based on a standard called SOAP.
The .NET Remoting technology is only for .NET and therefore cannot be used by java applications etc.
Greetings....
|
|
|
|
|
It basically comes down to a decision tree when trying to choose between these 2 technologies.
a. If you own both ends of the application (client, server) and it's in a intranet-type environment...
Use Remoting.
b. If you need to interoperate with other technologies, now or in the future...
Use web services. There is a .NET-Java bridge for .NET Remoting, but I'd stay clear of it.
c. If you are designing a services-based architecture that you want to maintain over the next couple of years...
Use web services. It will put you closer to Indigo/Longhorn when pigs fly it is released.
Remember that you could have a SOAP-based web-service that uses email as the binding-type. So, the definition of webservices is a little grey to say the least.
.NET remoting can also work over HTTP and be hosted in IIS.
Also, the WS-x specs are still filtering into the dev. community, so double check your requirements against the specs to make sure you're not going to have to roll-your-own security, etc... if you do choose webservices.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG blog:: brokenkeyboards
|
|
|
|
|
This document details when to use remoting and when not. Of course, it also needs to be reviewed on a application-by-application basis:
http://www.ingorammer.com/RemotingFAQ/RemotingUseCases.html
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
A casual discussion in regards to the distinction betweeen DataSet and Recordset?
More specifically...
1. DataRelation and Navigation capability
2. Disconnected Vs Connected
Anyone wants to elaborate/add on this? I just want to see if I'm missing something in my understanding of the technologies.
|
|
|
|
|
I have a file open dialog that I use to pick files from two different directories. I am trying to remember the directory so that the user doesn't have to switch directories often.
This code below only remembers the last directory open. The initial directory function doesn't seem to work. I have tried RestoreDirectory function as both true and false. It also doesn't seem to work.
Any ideas as to what I am doing wrong?
The code snippet
<br />
Stream myStream;<br />
string pickedFile = "";<br />
<br />
openFileDialog.Title = "Locate Tranlator Directory";<br />
openFileDialog.Filter = "Fanuc Translators (*.exe)|*.exe|All files (*.*)|*.*" ;<br />
if(!Directory.Exists(transDir))<br />
{<br />
transDir = "";<br />
}<br />
openFileDialog.FilterIndex = 1 ;<br />
openFileDialog.RestoreDirectory = false ;<br />
openFileDialog.InitialDirectory = transDir;<br />
<br />
if(openFileDialog.ShowDialog() == DialogResult.OK)<br />
{<br />
if((myStream = openFileDialog.OpenFile())!= null)<br />
{<br />
pickedFile = openFileDialog.FileName.ToString();<br />
transDir = Path.GetDirectoryName(pickedFile);<br />
}<br />
}<br />
/code> <br />
<br />
<small>Jeff Patterson<br />
Programmers speak in Code.<br />
<a href="http://www.anti-dmca.org">http:
</small>
|
|
|
|
|
Does anyone know if this is available in C#. I know you can download the exe and call it from C# but this won't give you any "progress" info on how far a long you are on the encoding process ..
Anyone ? Is there a .NET lib for this yet ?
|
|
|
|
|
I have Class A with Properties Foo and Bar and
Class B which has an indexer to an Array of Class A objects.
I have a button for each element in B's array of A's.
I want to refer to these A objects through the Tag property of each button:
<br />
private B b = new B(2);<br />
<br />
button1.Tag = b[0];<br />
button2.Tag = b[1];<br />
I think my problem lies in the fact that many times the elements in the array will be null, which leaves the tags as null. I would like the tag, however, to refer to the space in the array in the Class B object, so I can do something like :
<br />
(A)button1.Tag = new A(FOO, BAR);<br />
thereby creating a new Class A object within b's array. Along with this I would like to be able to set the properties like:
<br />
((A)button2.Tag).Foo = NEWFOO;<br />
I come from C++ so I always think in pointers. Do I need pointers to do this, or just a different approach?
Tym!
|
|
|
|
|
1) When my app is running a large process it freezes up the app so that you can't move it or minimize it, etc. until the process is done. How do you avoid this. I tried threads and that didn't seem to do it, is there a function to the give control back to the app like repaint or something
2) I have a paragraph of text that I need to escape chr(10) and chr(13) characters from. How would you do this using the string.replace function?
Thanks in advance, sorry for the lame questions, still learning.
-Brent
|
|
|
|