|
i need to use in my application
|
|
|
|
|
Can we share a desktop which is not having an administrator privilige?
Regards
YP
|
|
|
|
|
You cannot share the same User ID to use simultaneously.. And please use the relevant forums to ask your Questions.. This helps you to get quick reply..
|
|
|
|
|
Hi,
I'm trying to write a binary tree in C#. Looked all over internet for some tutorials. Found one here, the theory made sense, I downloaded the code it did not work. I just copied the code into my own file it said it did not have a Main() method.
I'm stuck. Please help me write a simple binary tree that you can insert values to by using a command prompt window Console.ReadLine() thing in code.
I'm new to C# so please keep it as stupid and as simple as possible.
Thank you.
|
|
|
|
|
Just try here itself:
http://www.codeproject.com/KB/vb/SimpleBTree.aspx
|
|
|
|
|
|
how do i enter a record to database(table) by datagrid/.
|
|
|
|
|
|
I am using following string..
Searching text er's community and total budget is $16/page.
The regular expression I am using is "[^$]*"
but it only get "Searching text er's community and total budget is " not getting the whole string.
it means it stop at $ sign what changes I should made to get the whole string.
Thanks in advance
|
|
|
|
|
You told it to take everything up to the first $ and stop there, what did you expect?
You want a RegEx to take the whole string you already have? Why?
|
|
|
|
|
Actually this is a part of a big string in which I am searching for something but it stop at $ sign if you resolve this issue then it will helpful for me.
Thanks
|
|
|
|
|
Then more information is required. What is the string, and what part do you want? Are there many strings?
|
|
|
|
|
|
This is re posted question
Hi all,
I am trying to retrieve the Disk partitions using the following code lines
foreach (ManagementObject mgmObj in gmtObjo.GetRelated("Win32_DiskPartition"))
{
//get the logical partitions and add to collection
}
This code snippet works well for user having administrative privileges on the machine.However,user having less privileges it does not retrieve any record.
I have searched through net and got the solution where we have to give the permission to the WMI itself using WMITool.However,this solution seems like not feasible as I can not give the permission to client machine.
I am looking for solution using which I would able to fetch the records irrespective of what user privileges are.Either through script or setting the privileges through code(setting through code might again require admin rights...).
Anybody here had faced this problem before or have solution to this??
Help will be appreciated!!!
Thanks in advance
|
|
|
|
|
Hi,
I am working on a blocking client/server architecture.I have a client which sends XML files to the server. It sends many XML files continuously (5 to 10 files per second) to the server using blocking communication method through TCP/IP. What I have to do is to read the XML file and store it in a queue and if the XML file is valid or invalid, give the response back to the client that the file is valid or invalid from the same communication path from where it come. Can anyone help me in this regard that how to acheive that. I am comfortable with queue, just want to know how to send the response back to the client using the same communication path from where the XML file comes.
Thanks in advance.
|
|
|
|
|
If you can already send files over a TCP socket from one computer to another then what's the problem you're having sending a message back over the same channel?
|
|
|
|
|
There pleny of good code examples, look for TCP Queue IO or QIO.
|
|
|
|
|
//This is the server code im using
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
public class UdpServer
{
public static void Main()
{try
{
int recv;
byte[] data = new byte[1024];
IPEndPoint ipep = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 9050);
Socket newsock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
newsock.Bind(ipep);
Console.WriteLine("Waiting for a client...");
IPEndPoint sender = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 9050);
EndPoint tmpRemote = (EndPoint)(sender);
recv = newsock.ReceiveFrom(data, ref tmpRemote);
Console.WriteLine("Message received from {0}:", tmpRemote.ToString());
Console.WriteLine(Encoding.ASCII.GetString(data, 0, recv));
data = new byte[1024];
string ss = "Welcome to the Server";
data = Encoding.ASCII.GetBytes(ss);
newsock.SendTo(data, data.Length, SocketFlags.None, tmpRemote);
Console.WriteLine("\nSent Acknowledgement");
}
catch (Exception e)
{
Console.WriteLine("Error..... " + e.StackTrace);
}
}
}
//This is the client code which im calling inside a button click event
private void Send_Click(object sender, EventArgs e)
{
Callback();}
private void Callback()
{try
{
byte[] data = new byte[1024];
listBox3.Items.Add("Connecting....");
IPEndPoint ipep = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 9050);
Socket server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
listBox3.Items.Add("Connected");
data = Encoding.ASCII.GetBytes("hello");
listBox3.Items.Add("Transmitting...");
server.SendTo(data, data.Length, SocketFlags.None, ipep);
listBox3.Items.Add("Sent...");
IPEndPoint sender = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 9050);
EndPoint tmpRemote = (EndPoint)sender;
listBox3.Items.Add("Message received from {0}:");
listBox3.Items.Add(tmpRemote.ToString());
data = new byte[1024];
int recv = server.ReceiveFrom(data, ref tmpRemote);
listBox3.Items.Add(Encoding.ASCII.GetString(data,0,recv));
catch (Exception e)
{
Console.WriteLine("Error..... " + e.StackTrace);
}
Console.ReadLine();}
When i run this code:
My form design is as follows:
With a button click i list the drives in the system,then with another button click i list the folders in each drive,and then listing the exe files in the folder..I have set a default path say C:\projects\ports.The ports folders in turn contains many folders like 10000,10001 etc..I have copied the exe file obtained when compiling the Server Application to 10000...So with a button click event i will get the exe of the server application which should act as server and i have defined the client in the Form1.cs..Now when i have another button click the message(which i have defined inside the code)should be sent to the exe(i.e.server) opened...Please check my code and tell me whether i should make any changes.
Right now when i run this application the exe(server)window closes when i click "Send" button to send the message to the exe...Please help me with this
|
|
|
|
|
I'm trying to use the PathGradientBrush to create a gradient blend on an elliptical path. I have been able to partialy achieve that by setting the Interpolation property. However, I'm wanting to control how each color blends into the other as with the LinearGradientBrush's Blend property.
For example, say I want two colors to transition from solid blue to solid red instead of gradually fading into one another. Again, this can be achieved with the LinearGradientBrush.
How can this be done with the PathGradientBrush?
There cannot be a crisis today; my schedule is already full.
|
|
|
|
|
Gradient != Solid
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I'm guessing by your reply that you don't know that answer.
This is a feature that's implemented in many graphics programs, including PhotoShop. It allows the user to control how soft/hard the blend is between two colors.
Can someone who does know the answer please clue me in?
There cannot be a crisis today; my schedule is already full.
|
|
|
|
|
well dude, the answer is simple, you cant have solid colors with GradientBrush.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I'm afraid your probably right. It stinks that the LinearGradientBrush gives you so much more control over blending than the PGB.
If anyone has any further info, please let me know. (that includes you Xmen) Lol
There cannot be a crisis today; my schedule is already full.
|
|
|
|
|
Hi,
I have a doubt.If i am using Process.Start() the exe file gets opened.
//Method1
Actually if i am going to run the server from the console,I will use csc /t:exe Server.cs //compile
Server//run
Method2
Previously i defined Server separately and run that file using the console,i defined client in the Form1.cs (which i run using the Start Debugging option).It worked well
Now i have defined client in Form1.cs and try to send message to the server (i.e.exe file).This exe is just opened.Is this exe same as the one obtained by Method1(i.e.exe obtained by using "run" command)?
|
|
|
|
|
Use ProcessStartInfo, and set UseShellExecute to true
Then you can run the process as you where using the console.
Jm
www.menendezpoo.com
|
|
|
|