|
Hi,
Is it possible for an application to Dock to the top of the screen and be ontop of other windows. However I want other applications to not be under the form, but start/end where my application finishes.
Basically want the form to have the same importance as the windows taskbar...
Thanks
|
|
|
|
|
Set the Forms .TopMost property = true.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
the TopMost property makes the form ontop of all other windows. However I want other windows to become smaller, as if the application is a toolbar of the desktop...
So if any application (ie Internet Explorer) was maximised the window would fit inside the bounds of the start menu and my application.
Thanks for your help.
|
|
|
|
|
Sorry , didn't get what actually u want to do?
Do u want that the form should not be displayed in the taskbar?
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Thanks. Thought it would be hard to explain.
It does not matter if is/isnot displayed in the taskbar.
I just want the form to be ontop of all other windows (which can be done with TopMost) but also that it is docked to the top of the screen. Therefore any other windows which are maximised do not maximise to full size of the screen but to the end of my application.
Hope that can be understood.
Thanks for your help
Peter
|
|
|
|
|
Hi, I'm wondering how i can get the number of millseconds that have ticked over since midnight. Anyone have any ideas?
Thanks
|
|
|
|
|
No worries, I've already found the TimeSpan class.
TimeSpan sinceMidnight = (DateTime.Now - DateTime.Today);
Double sinceMidnightInMs = sinceMidnight.TotalMilliseconds;
|
|
|
|
|
Hi all,
Dear Fellows, Unfortunately I have deleted crystal_managed2003.msm file by mistake. CD is not available right to me. I am very thankful to you if someone of you send me the required file at following address: fahiem@gmail.com.
I will be really really thankful to you. I am in immediate need of that file. Please help me in this regard. Thanks
|
|
|
|
|
I have defined my variables and need help sorting them into the text box. The text box is multiline and i have been trying \n but it doesn't seem to work.
txtDeliveryAddress.Text = fullName + "\n" + fullCityStateZIP + "\n" + street;
is what i have it should look like
John Doe
345 S. Street
Somewhere, OH 51267
anyhelp with this would be appreciated, if not i'll keep looking
|
|
|
|
|
If your textbox is indeed multiline then that should work. I would try to run something like this;
string strTextType = txtMulti.TextMode.ToString();
If strTextType is not MultiLine then that is your problem. Other than that I can't think of much else.
Regards
|
|
|
|
|
you should set
textBox1.Multiline=true
then it would be ok.
|
|
|
|
|
You have to use "\r\n" in a TextBox and "\r\n" or "\n" in a RichTextBox .
Or use Environment.NewLine .
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi!
txtBox.Text = "SOME TEXT" + Environment.NewLine " TEXT IN NEW LINE";
|
|
|
|
|
Hey everyone. I saw this great article on this website in regards to disabling options in a drop down.
http://www.codeproject.com/aspnet/disableListItems.asp
Great article but I am not sure how to implement it in my code. We have a web based application written in C# with a SQL database and I was trying to disable one of the options in a drop down menu. Here is the code that I have that loads my drop down,it gathers the information from the database but I am in the dark on how to do what the article was telling me to do..
ARBilling.ARUtilities.SetCodeDropDownListDataSource(ref InsurancePolicyStatus,Billing.WebServiceProxies.CodeType.InsurancePolicyStatus);
InsurancePolicyStatus.DataBind();
InsurancePolicyStatus.Items.Insert(0, new ListItem("-- Select --", "-1"));
|
|
|
|
|
Hi!
I think using the forum of the article you mention for this question would be more appropriate.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hello,
I'm wondering why the following code is accepted by the compiler but there's no effect in run-time.
Set browser url to about:blank at design time & make button1 font a little big then...
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Document.Body.InnerHtml = "Test only";
}
private void button2_Click(object sender, EventArgs e)
{
webBrowser1.Font = button1.Font;
}
Why it's not working?
Your help would be greatly appreciated.
THANKS.
|
|
|
|
|
The Font property is documented to "not have any meaning on this control". In other words, you're setting the Font on a WebBrowser object, when it doesn't do anything.
Documentation[^] on WebBrowser.Font.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi, i have 2 questions
1. Does regex create new instances of objects?
2. Can i replace the String.Substring expression with a regex expression? if so how?(an example would be useful)
Thanks for your intrest
|
|
|
|
|
1. That depends on what you mean.
A RegEx can for instance create a collection of match objects, where each match contains a collection of Group objects, which all contains a copy of part of the string.
2. There are many ways of extracting information using Regex. Here is a piece of code that I used just recently:
return Regex.Match(_message, "\r\nPage: (.*?)\r\n").Groups[1].Value;
It finds a line that starts with "Page: " and gets the rest of the line.
---
b { font-weight: normal; }
|
|
|
|
|
You can use Regex as a more heavy duty way of getting substrings.
The following code will replace whole words wich starts with the letter P.
in the provided example strOnj would end up equalling "Some Sentence to be seperated"
string strObj = "Some Sentence to Parse";
strObj =Regex.Replace(strObj,"P[a-zA-Z]+"," be seperated");
|
|
|
|
|
hi
i want to create trial version from my app and after it was Expired, end user can't restore windows and use it again. How to do ?
thanks ..
|
|
|
|
|
You can add an entry in the registry which consists of the date of installation and the expiry date.
You can check this value when the app starts if the date has reached just delete the registry entry and the app should not be executed if the registry entry is not present.
Hope that works for u.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
The registry entry will have to be created every time you install the application, so after expiration you'll just have to reinstall to get another trial period.
It'll also be saved if you create an image of your windows after installation.
And there are tools out there that can easily track all modifications done to the registry so you can see which registry key is being created.
I'm afraid there is no really watertight way to achieve this when only a single computer is concerned (i.e. without some sort of online activation).
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
If you dont mind using a commercial tool, take a look at CryptoLicensing
It can limit licenses to N number of days.
|
|
|
|
|
I create a class file dynamically and save it on the file system in a class.cs file.
How can I load that file as a class object and bind it to PropertyGrid?
Thanks.
|
|
|
|