I have a System.Windows.Forms.RichTextBox that I wish to use to display some instructions to my application users.
Is it possible to set some of the text I enter at designtime to be bold?
Or do I have no option but to do it at runtime?
When I try to show an image on linklabel click, I get an error: unrecognized escape sequence.
Code:
public void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(
"mspaint~C:\Users\Joshua Banks\Desktop\Downtown_atlanta_night.jpg");
}
<form action="/?wpmlmethod=offsite&list=2&wpmlformid=" method="post">
...
</form>
I tried:
<script type="text/javascript">document.forms[0].submit();</scrpit>
But it didn't work.
I am using .net Windows Forms i need to maintain some date to check the condition. so i have to maintain it up to user logged out?
like session in ASP.NET
how can i do this? (note it should not expires until the user logged out)
I created a VB.NET Windows Forms Application in Visual Studio 2008. When I run my program from the command-line, I get no output (only the next prompt).
Why?
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Debug.Write("Foo")
Debug.Flush()
Console.WriteLine("foo")
Console.Beep(800, 100) 'confirm this function is called'
Me.Close()
End Sub
I have been asked to choose between Web Forms and MVC for a minor internal company project. I do not know MVC. How much of MVC do i have to know to be able to make a decision?
Note:
1. I have read up on MVC to an extent that i know the high level design choices that I will have to make, however as a developer, I do not feel comfortable unless i code in it...
Is it possible to use a custom view engine for a specific area only?
I have tried
public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
"Forms_default",
"Forms/{client}/{controller}/{action}/{id}",
new { client="Generic",action = "Index", id = UrlParameter.Optional }
);
ViewEngines.Engines.Clear();
ViewEngines.Engines.Add(new ClientSpecificViewEngine());
}
Within my area but this seems to be a site wide affect as I'm getting errors specific to the custom view engine when visiting pages outside the area.
Hey, I'm making a simple user friendly css editor using Prototype. Anyway, I was wondering whether I could get the background-position x/y values on their own?
I wish I could do something like this but sadly it doesn't work:
element.getStyle('background-position-x);
I guess this is because position comes in different forms like 'center' rather than just being generic.
Hi,
in one of our applications we're using alocal RDLC-report (displaying using a ReportViewer control) to print some tables and text entered by the user.
We'd like to give the user the ability of formatting the text. I thought I might use the respective WPF controls (embedded into the Windows Forms application) to make things easy.
Question is: how do I print the resulting FlowDocument within the local report? Is this possible at all?
Thanks for any advice,
Thorsten
I'd like to customize the standard user controls look (buttons, dgv, txtboxs ... etc) and the layout of my formsto a state of art modern interface like any decently built application. How can I do that?. What to look for? any articles, books .. etc that might be of help!
We have discussed keyboards. But take a look at the small piece of plastic to the right (or left :) ) of your beloved keyboard! This humble creature helps you to draw nice forms, and click all around the web. A real programmers mouse must be precise and comfortable, so which mouse would you make a companion to your keyboard?
Currently I'm in love with this fat member of mice family:
Natural wireless laser mouse 6000
Hi, I have a question regarding GridView windows forms control. As a datasource, I am using a DataTable object. When the grid view is sorted, the DataTable's row indices are not sorted. In this way, when accessing the DataTable using indices from GridView, I get the unexpected rows. How can this situation be handled?
Is there a way to queue file uploads without resorting to Flash or Silverlight, just with cleverly used forms and JavaScript? Note that the upload should be executed asynchronously.
By "queuing" uploads I mean that if the user tries to upload multiple files, they should not be transferred simultaneously, but rather one at a time, in a single HTTP connection.
Hi,
I am using HttpContext.Current.User.Identity.Name to get a user id
from 2 web application i'am developping.
the problem is when i'am loggin in teh first application i get always HttpContext.Current.User.Identity.Name value (i put test in Application_AuthenticateRequest event) but when i log in teh 2nd application adn i ty to naviagte trough the 1st application teh HttpContext.Current.User.Identity.Name loses value.
Environnement of test : Windows XP / VS.NET 2005 /
Authentication forms
BTW : both application are deployed in teh same machine
Thank you for your help
There is some easily available information on finding the status of a battery, or weather it's charging or not. (GetSystemPowerStatus API or System.Windows.Forms.SystemInformation.PowerStatus).
I want to be able to stop a battery from charging based on some criteria, e.g. battery power 20%.
Is there an API to do this?
Hi
can any body suggest me any idea about how can i compare two fields in django.
as i have two password fields in my forms.py file.
now i want to compare the two fields and if both are same then save the user in database
else append an error message to reenter the values again.
thanks
I am developing windows Forms application, for this i am using SmartClient. Here i click workspace close('X') event at the time i want to display messageBox based on user input (OK/Cancel) i have to decide pane has to be close or not.
I have x1,y1 and x2,y2 which forms a line segment. How can I get another line x3,y3 - x4,y4 which is parallel to the first line as in the picture. I can simply add n to x1 and x2 to get a parallel line but it is not what i wanted. I want the lines to be as parallel in the picture.
System.Windows.Forms.Form has only one scroll event-Scroll, but it is necessary to recognize scrolling up and scrolling down.Could you tell me,how to do this?
how I get ALL ListBox values (not only selected items) on submit action in asp.net mvc2 project.
I'm using Ajax forms like Ajax.BeginForm("actionname", new....)
I already try to select all items on OnBegin event of Ajax options but still I havent got all ListBox items
have any idea ?
thanks
Hi Guys,
I am using ASP.NET Web forms,
When a user submit a page, an email will be sent to many people which is slowing the post-back,
what is the best way to send the emails without slowing the reloading of the page?
thanks
I understand the gist of the code, that it forms permutations; however, I was wondering if someone could explain exactly what is going on in the return statement.
def perm(l):
sz = len(l)
print (l)
if sz <= 1:
print ('sz <= 1')
return [l]
return [p[:i]+[l[0]]+p[i:] for i in range(sz) for p in perm(l[1:])]
I'm looking into using SharePoint (WSS 3.0, specifically) for the document library and discussion board functionalities.
I'd like to ask those of you who have experience in SP (MOSS or WSS, since we might upgrade in the future) for a list of the items that ticked you off or required a difficult workaround.
Here's one from me - I found when I implemented forms authentication that a lot of the built-in integration with Microsoft Office disappeared, and I was also unable to use explorer view.