|
What is your queation?
Which part of this are you having problems with?
|
|
|
|
|
suppose your treeview name is treeview1.
use treeview1.nodes.add(your desired form name);
for child node :
treeview1.nodes[index].nodes.add(your control name);
from the treeview1 property true the value of checkbox property.
handle the afterselect event and check whither the
e.Node.Checked return true or false. Then take necessary action as you want
|
|
|
|
|
lm working on central bakery system and l want to fix the look of my forms is it possible to use CSS on windows application forms lm using C# on visual studio 2008
|
|
|
|
|
CSS cannot be used for windows forms (TTBOMK).
There is a company[^] selling something they claim is similar, but I've never investigated.
The best you can do is define a single form with the style you want, and derive from it, but that won't give you the button, text etc styles you probably want.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
can u please send me a code sample of what u are talking abt it seems like a good idea
|
|
|
|
|
Step one: Create a form that looks like what you want. Call it "GeneralForm"
Step two: Create a new form. Where it says "public partial class Form1 : Form" change "Form" to "GeneralForm"
Step three: Learn what you are being paid for?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
|
Though i am unable to understand fully what you want, but from what i get (that you want to write this string to some other system) you are in need of remoting.
Ahsan Ullah
Senior Software Engineer
MCTS 2.0
|
|
|
|
|
What if they just edit the hostsfile again to "unblock"?
|
|
|
|
|
|
I suppose you could block those sites at the router, or with your DNS if you have a proper DNS service (OpenDNS for example)
|
|
|
|
|
|
It would depend on the router you're using
|
|
|
|
|
If you have network administrators in your organisation, why don't you let them worry about blocking sites. There already existing solutions(firewalls) that handle that kind of thing. Whatever solution you come up with is likely to have lots of holes.
|
|
|
|
|
|
And you're trying to do this without any networking knowledge??
|
|
|
|
|
|
I would go see your teacher, otherwise you are scuh-rewed.
|
|
|
|
|
You know its a good day when the climax to a long list of message posts ends with such a humorous response. It makes you remember why you bother reading these kind of posts in the first place.
To be slightly more constructive... choose another project!
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Requirement is like this,
Events will be present for a week.(Same like Orkut Events)
On a single day there can be more than one event at different times.
Based on user login the user should see the events,if he log's in after the scheduled event time then only "Descripition" (Database field ) of the event should be seen else Events-Name,UserName,Image will be displayed.
My problem is I need to show only 7 records all together irrespective of Number of events present for that week i.e for 7 days in a week 7 records only. In each record more than one event can be present (or) if present should be displayed .
For achiving this task I can take any of the data presentation control,but i dont seem to get any idea of solving this requirement. It would be gr8 if any one helps me out Its Urgent.Thanx In advance.
santosh
|
|
|
|
|
hi everyone,
I am facing big problem in Ftp upload function.
When I run following code for english named file uploading It's ok. No problem. But when i try for chinese named file. I got this error message.
"The remote server returned an error: (550) File unavailable (e.g., file not found, no access)."
Let me know if you have solution for me. Thanks in advance.
~~ This is my source code ~~
FtpWebRequest request = (FtpWebRequest)WebRequest.Create("XXX" + Path.GetFileName(this.txtUploadFile.Text));
request.Method = WebRequestMethods.Ftp.UploadFile;
request.Credentials = new NetworkCredential ("XXX","XXX");
request.UseBinary = true;
request.UsePassive = false;
request.KeepAlive = false;
StreamReader sourceStream = new StreamReader(this.txtUploadFile.Text);
byte[] fileContents = Encoding.UTF8.GetBytes(sourceStream.ReadToEnd());
sourceStream.Close();
request.ContentLength = fileContents.Length;
Stream requestStream = request.GetRequestStream();
requestStream.Write(fileContents, 0, fileContents.Length);
requestStream.Close();
FtpWebResponse response = (FtpWebResponse)request.GetResponse();
Richard
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:27am.
|
|
|
|
|
Server has Simplify Chinese code GB2312 already.
Richard Htin
|
|
|
|
|
I have to load a single byte array of 64 elements.( from a USB device - which I have already done using HID examples in net)
Actually this 64 bytes is 4 groups of 16 bytes each.
I need to load this as a array of 64 bytes and process it as 4 structures of 16 bytes each.( In Microcontroller C programs I use Unions)
Which is the apt method in C#? and How?
Thanks
With Regards
Roy Thomas
"..this file is known as source file probably because it is a source of frustration and anxiety!" - Chuck Sphar - In book 'C# 2005 for Dummies'.
|
|
|
|
|
You can create a struct in C# and specify how much space each variable takes up. I forget the syntax, but I know you can.
Just found this with google:
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Explicit)]
struct ByteArray {
[FieldOffset(0)]
public byte Byte1;
[FieldOffset(1)]
public byte Byte2;
[FieldOffset(2)]
public byte Byte3;
[FieldOffset(3)]
public byte Byte4;
[FieldOffset(4)]
public byte Byte5;
[FieldOffset(5)]
public byte Byte6;
[FieldOffset(6)]
public byte Byte7;
[FieldOffset(7)]
public byte Byte8;
[FieldOffset(0)]
public int Int1;
[FieldOffset(4)]
public int Int2;
}
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|