|
zechariah wrote: how to input a sign for integration in my code?
Define: "sign"
|
|
|
|
|
How I write mormated text to the text box, so that i can make some word in BOLD , Italic or UnderLine.
and chage the yexy size of certain words?
If the answer is : "that i can not";
is there a control that enables me to do that?
thanks
** Ahmed Ismail **
|
|
|
|
|
Use a RichTextBox instead.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi all,
about using TextBox control: I want to know how I make each paragraph written in a separet line,
i tried the escape seq. '\n' but it does not work, the compiler print in the text.
thank you
** Ahmed Ismail **
|
|
|
|
|
Use "\r\n" or even better the Environment.NewLine constant.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Environment.NewLine will definitely work I have used it several times.
Good Luck
Syed Shahid Hussain
|
|
|
|
|
Using Environment.Newline is the best practise. Also make sure the Multiline[^] property of the control is set to true
|
|
|
|
|
Hi guys., I want to creat a win app that allows the user to browse a picture and add some info like name, description and etc and save it in the database. Then he be able to retrieve them, and either see them in a datagridview or as a slide show ... something like this.
can you please help me out or give me some links to related articles.
Thanx
Mr. K
|
|
|
|
|
|
¤ Muammar ¤ wrote: hi guyz, just posted an article and cant see the application snapshot, nither can download demo package that i had bad votes, please advise.
http://www.codeproject.com/useritems/Using_DataGrid.asp[^]
You'll need to contact webmaster@codeproject.com
|
|
|
|
|
thanx mic
|
|
|
|
|
I used a StreamReader and forgot to close it. Now when I try to do any file operation at that page(ASP.NET), I receive an Error message "file is using by another process". I have chaged the names of Variable,Text file and location but no success.
Any one can solve my problem.
Thanks
Syed Shahid Hussain
|
|
|
|
|
Hello
I'm missing some details in your post:
1- Is this ASP or C#?? This is the C# forum BTW
2- Is the a web application, or windows application?
3- Is your application on a localhost or a remote server?
4- Is your application in a debug or release mode?
Regards
|
|
|
|
|
Hi
1 Web Page: ASP.Net with C# (Client want to save record in a txt file)
2 Web Apllication
3 localhost
4 i dont khow.
Thanks for reply
God Bless You
Syed Shahid Hussain
|
|
|
|
|
Hello
Well, there are several ways of unlocking a shared file. It may take sometime to know who exactly is locking a certain file, but in your case you said you already changed the path in your code and variables, etc.. restarted you computer.. So to cut things short:
1- Restart in safe mode
2- Move the file to another location or delete it -I prefer backing it up first-
3- Restart in normal mode
4- Try you app
5- If it works, enjoy your life
BTW: If you need more help I suggest reposting your question in ASP .Net forum[^], maybe you get more help.
Also if it doesn't work, keep me posted.
Regards
|
|
|
|
|
Thanks Friend. But I had tired of it and I now I have made all new. I deleted the web page and txt file and develop a new page. I think it is the only solution of the situation. Now it is working correct. Thanks for your time.
God Bless You
Syed Shahid Hussain
|
|
|
|
|
You propably need to restart the iis before you can operate on the file again.
Kind Regards,
John Petersen
|
|
|
|
|
Thanks but I have checked with the restart of my computer. Error again same.
God Bless You.
Shahid
|
|
|
|
|
hi all,
firstly: am i able to change the default icon for my setup and deployment project?
(not a shortcut's icon but 'the main setup.exe's icon')
>if yes, then let me know how i can do that please?
secondly: when i build my project, i see 2 different things in Debug folder: one is ***.msi and the other is setup.exe.
what is ***.msi ? why is that created beside setup.exe ?
when i copy these two things separately on my desktop: setup.exe cant be installed without ***.msi. cos i receive an error which tells me that setup.exe couldnt find **.msi.
but ***.msi itself can be installed without setup.exe ???
please inform me about two questions above ...
thanks in advance, bye.
MFA
|
|
|
|
|
Hello
Mehmet Fatih Akbulut wrote: am i able to change the default icon for my setup and deployment project?
Not that I know of! You can change the icon of the output of an ordinary WindowsApplication project. Not tyhe setup. Nop!
However if you hav an external Icon editor that has the capability of changing the icons of exe files. be my guest!
Mehmet Fatih Akbulut wrote: what is ***.msi ?
This is the package file. That contains all the files and settings of your application.
Mehmet Fatih Akbulut wrote: why is that created beside setup.exe ?
Actually it's the other way around. This is the main file in your whole project.
Mehmet Fatih Akbulut wrote: setup.exe cant be installed without ***.msi
Sure! The Setup.exe only opens this package. It doesn't contain anything in itself.
Mehmet Fatih Akbulut wrote: but ***.msi itself can be installed without setup.exe ???
Because it contains all the necessary files and data to install your application on the user's machine, and if you double click on it, Windows Installer does the job for you.
Regards
|
|
|
|
|
Hi!
If you mean the icon you get under Add/Remove programs, then yes, you can set this icon in the properties of your setup project.
If you want to change the icon for setup.exe, you can simply open the file in VS using the resource editor. Then you can modify the resources (icons for examples) to your heart's desire.
Setup.exe is just a bootstrapper for the msi file. It checks whether the correct (and required) version of windows installer (3.0) is installed and if it isn't, it's trying to install it.
Afterwards, windows installer is told to install the msi file.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hello all.. I am trying to construct a way of extracting data from a network stream.
However I am running into a small problem. I am using regex to detect a pair of return & newlines "\r\n\r\n". However some of the messages received have "\r\n\r\n" in the middle of the stream. So some of the messages are cut off halfway.
<br />
byte[] ami_response_buffer = new byte[ami_buffer_size];<br />
MemoryStream ami_memory_stream = new MemoryStream();<br />
string ami_response = "";<br />
int ami_bytes_read = 0;<br />
<br />
do<br />
{<br />
ami_bytes_read = ami_client_stream.Read(ami_response_buffer, 0, ami_buffer_size);<br />
ami_memory_stream.Write(ami_response_buffer, 0, ami_bytes_read);<br />
ami_response = Encoding.ASCII.GetString(ami_memory_stream.GetBuffer());<br />
<br />
if (Regex.Match(ami_response, "\r\n\r\n", RegexOptions.IgnoreCase).Success)<br />
{<br />
ami_bytes_read = 0;<br />
}<br />
}<br />
while (ami_bytes_read > 0);<br />
<br />
return ami_response;<br />
What is the best way to detect the end of a data stream?
Thanks in advance...
Phil
"Rules are for the obedience of fools and the guidance of wise men"
|
|
|
|
|
Hello
keep reading until NetworkStream.DataAvailable becomes false.
Regards
|
|
|
|
|
I'm assuming that "\r\n\r\n" is the marker you are trying to use to indicate the end of the stream. You would want to do something like this:
string ami_response = "";
if (ami_client_stream.CanRead)
{
byte[] ami_response_buffer = new byte[ami_buffer_size];
MemoryStream ami_memory_stream = new MemoryStream();
int ami_bytes_read = 0;
myCompleteMessage = new StringBuilder();
do
{
ami_bytes_read = ami_client_stream.Read(ami_response_buffer, 0, ami_response_buffer.Length);
myCompleteMessage.AppendFormat("{0}", Encoding.ASCII.GetString(ami_response_buffer, 0, ami_bytes_read));
}
while (ami_client_stream.DataAvailable);
ami_response = myCompleteMessage.ToString();
}
return ami_response;
|
|
|
|
|
Hi,
My win form is always getting minimized after splash screen is shown and closed. Although my form's WindowState property is set to Normal. Is there any code piece I am missing to keep my original window STAND !!
Thanks.
/********************** My code ****************************/
public mainForm()
{
InitializeComponent();
th = new Thread(new ThreadStart(DoSplash));
th.Start();
}
private void DoSplash()
{
sp = new Splash();
sp.ShowDialog();
}
private void mainForm_Load(object sender, EventArgs e)
{
th.Abort();
}
|
|
|
|