|
Hey! Thanks a lot ,
the problem is solved by using static class....
got the answer in this link
http://www.codeproject.com/KB/cs/stringenum.aspx
|
|
|
|
|
All,
Is there a way in which I can run my application as a SYSTEM process instead of a user process?
Thanks
|
|
|
|
|
CNewbie wrote: in which I can run my application
Is it a Windows service?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
It is not a Windows Service in and of itself.
|
|
|
|
|
Not really. Why would you want to??
|
|
|
|
|
hey Folks,
I`m looking for a code that would set a Connection between a mobile and a PC (it's a simulation of bluetooth sensor that will detect any mobile device in the range, but i will simulate the sensor using my laptop bluetooth) and send then a file OR an SMS to the mobile phone..
Thanks in advance
(for any Questions, or more details.. kindly contact me.. )
|
|
|
|
|
Hi,
Any one suggest me how to solve the following issue. In my page i am loading dyanamic controls, in default the text box should be invisible. Later from client side i am makeig it visible if needed, but the problems is when i set the visible=false while loading dynamically, the control is not loaded in the webpage.
Please suggest me how to laod the textbox in invisible mode?
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
The problem is two fold
1 - you're asking in the wrong forum, although I worked out your asking an ASP.NET question
2 - hide it with css, the visible=false property causes ASP.NET to not render it at all
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
You can try this. You load the textbox with its visibility set to true. And then make it invisible at client side when the page is loaded. And in this way , the textbox will not be visible to the user unless it is made visible by your clientside code.
Do let me know if you need further help.
Cheers...
|
|
|
|
|
Help! I using some classes that came from a program that worked...it was an example from a book. My problem is when linking my program with these classes. It dos not reconize the windows form Panel which is used for drawing. My error message is Error 1 'WingSoft.DesignWing.PlotPanel' is inaccessible due to its protection level This puzzles me becouse it is squacking about is a form component. Here is a piece of code:
public void Transform(Matrix3 m, DesignWing form1, ChartStyle cs)
{
// Normalize the point:
float x1 = (X - cs.XMin) / (cs.XMax-cs.XMin) - 0.5f;
float y1 = (Y - cs.YMin) / (cs.YMax - cs.YMin) - 0.5f;
float z1 = (Z - cs.ZMin) / (cs.ZMax - cs.ZMin) - 0.5f;
// Perform transformation on the point using matrix m:
float[] result = m.VectorMultiply(new float[4] { x1, y1, z1, W });
X = result[0];
Y = result[1];
// Coordinate transformation from World to Device system:
float xShift = 1.05f;
float xScale = 1;
float yShift = 1.05f;
float yScale = 0.9f;
if (cs.Title == "No Title")
{
yShift = 0.95f;
yScale = 1;
}
if (cs.IsColorBar)
{
xShift = 0.95f;
xScale = 0.9f;
}
X = (xShift + xScale * X) * form1.PlotPanel.Width / 2;
Y = (yShift - yScale * Y) * form1.PlotPanel.Height / 2;
} ^it does not like this:'(
}
}
I renamed the form earlier ...would i be causing my own problems since vs 2005
said it could not rename all the files?
|
|
|
|
|
You have another namespace which has a Panel class in it. You therefore need to specify which panel class you're using. The easy way to do this, if your code never creates the other panel class is a using statement that renames it locally, as in
using WingSoft.DesignWing.Panel as DodgyPanel;
Or something like that.
However, the fact that your error message is about a class called PlotPanel, makes me think the error has to do with how you're using an external library, and not a name clash.
rctriplane wrote: form1.PlotPanel.Width
Why are you accessing the control outside of the form class ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello. I have a form application in C# and i wanna create an html file at run time. In Net Framework there is the HtmlTextWriter class that can do this job, but this class is for ADO applications, that is not my case. Any ideas what can i do in my case?
Thanks in advance.
|
|
|
|
|
I'm not getting why you think you can't use the class that was created for the purpose.
You can just use a basic textstream if you want, too. Or a string builder.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
do u want to develop a CMS type application where user can design his own page.
Sarvesh Upadhyay
Senior Software Engineer
Birlasoft India Ltd.
Microsoft Certified Professional Developer in Dotnet 2.0 Enterprise Application
|
|
|
|
|
If I have the URL of a file e.g. http://mysite.com/file.php?f=1 where I cannot see the extension of the file is it possible to determine the mime-type of the file without downloading it first?
|
|
|
|
|
You can download first several bytes and use Magic Numbers to detect type
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
But then I would need a lookup table, don't I? Is there no way this could be done with the .net framework? There are applications which have exactly this kind of functionality for example if you click on a download link with most browsers they display the mime-type without downloading. How is it done there?
|
|
|
|
|
Hi,
normally a HTTP request performs a GET to receive the entire page.
however you can also do a HEAD which requests just the head information, which
often includes the mime-type, whereas the body is not transfered at all.
I once did HTTP with the Socket class; I trust you can do it with HttpRequest too.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
I am looking for a regular expression. I have the following text
[MyTag]
[/MyTag]
[MyTag]
[/MyTag] I need to match the text written inside the tags. My expected match is
I have the following expression with me which matches the content between tags.
\[MyTag]([\w\W]*)\[/MyTag] This expression works, but I am getting the matched text as
[/MyTag]
[MyTag]
It's only considering the outer tags. Can anyone help to correct this expression ?
|
|
|
|
|
The asterisk is being "greedy"; try *?
From the help:
"
*? Specifies the first match that consumes as few repeats as possible (equivalent to lazy *).
"
|
|
|
|
|
WOW ! it worked.. Thanks. I would have voted you 10 if I can.
|
|
|
|
|
Hello.
I have a text file that looks like this:
0 1 "Bull Fighter" 6 100 0 16 20 6 0 28 6 3 0 1 5 400 1600 10 2 130 10 6 0 0 0 0 0<br />
1 1 "Hound" 9 140 0 22 27 9 0 39 9 3 0 1 5 400 1600 10 2 130 10 6 0 0 0 0 0<br />
2 1 "Budge Dragon" 4 60 0 10 13 3 0 18 3 3 0 1 4 400 2000 10 2 120 10 6 0 0 0 0 0
It is called monster.txt
The first value is a id which I also use in my script.
Lets say I have the id 3, this would be "Spider" since the first number of "Spider" is 3
What is the best way to read the monster.txt file for the id and retrive the name? (Name = "Spider", id = 3) (As my example above)
|
|
|
|
|
Split() will work but you have space in name too, i will suggest you to convert your line like this, if possible :
0~1~"Bull Fighter"~6~100~0~16~20~6~0~28~6~3~0~1~5~400~1600~10~2~130~10~6~0~0~0~0~0
then you can use Split('~')
hope this will help
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-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Its not a problem getting the monster name. When I just have the line, it is no problem.
The problem is reading the file and accessing the line through a id.
Because it would be pretty silly to read the whole file just for 1 line.
|
|
|
|
|
Casper Hansen,
You cannot read only 1 line of a text file. You need to get the whole file, and then search for your ID.
Regards,
Gareth.
|
|
|
|