.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

Define "show icon and notifications" as default for an application (.NET VB)

Posted By:      Posted Date: September 14, 2010    Points: 0   Category :Windows Application
 
Hello,   I am looking for a way that my application when "minimized to tray" has its icon with the property "“show icon and notifications". The default property in Windows 7 is "Only show notifications"   Thanks,   Kalos


View Complete Post


More Related Resource Links

Define "show icon and notifications" as default for an application (.NET VB)

  
Hello,   I am looking for a way that my application when "minimized to tray" has its icon with the property "“show icon and notifications". The default property in Windows 7 is "Only show notifications"   Thanks,   Kalos

Default Application "does not contain a static 'Main' method suitable for an entry point"

  
Hi, When I create a brand new WPF application project in Visual Studio 2010 and immediately try to run it, I get the error WpfApplication1.exe does not contain a static 'Main' method suitable for an entry point. App.xaml's build action is set to ApplicationDefinition. I think it's not generating App.g.cs. Does anyone know what's wrong?

How to define rules for wcf application in rules engine with sql server?

  
How to define the rules for wcf application in rules engine and stored into sql server database. Please suggest me some of the best tutorials for learning rules engine with sql server Thanks&regards Phanisekhar  

Default FontFamily for application

  

I want to create at style that will set the fontfamily for my entire application and allow me to change the font family in one place and have the new font show up throughout my application.  I created the following style but my controls like my labels still default to segoe.  How can I create a style that will set my all my controls to the same font family except where I override the style with a local style.

 <Style TargetType="{x:Type Control}">
   <Setter Property="FontFamily" Value="Constantia"/>
 </Style>


How to set the default culture Info for all thread of an application independant from the Windows UI

  

A classic 'european' topic?

I am working with Windows7Pro in German, and VS2010 in English. I whish I had all exception handling in english.
Thus, I set the explicly the current culture to english:
 var culture = new CultureInfo("en-us");
 Application.CurrentCulture = culture;
        Thread.CurrentThread.CurrentUICulture = culture;
        Thread.CurrentThread.CurrentCulture = culture;

But I do still have some exception in German, because 'by design', .NET Framework considers the Windows UI language as default culture when a new thread in created (e.g. by GUI controls), as I read here http://www.dotnetmonster.com/Uwe/Forum.aspx/winform/14177/setting-culture-of-threads

What is the motivation for such a design? It has always been a problem for us in Europe working with multi languages: it is quite difficult to ensure the software is working properly whereever it is rolled out.
Is there a way to define the default culture of all children threads?


The default web application could not be determined. Set the SiteUrl property in feature

  

I am getting this error when I deploy a BCS feature generated by BCSMetaMan:

The default web application could not be determined. Set the SiteUrl property in feature Feature_Feature1 to the URL of the desired site and retry activation.

Searching the Internet tells me I need to put in a property in my feature file that sets the default site. However, what if I need to be able to deploy this other sites. Is there a way to set the value so it will use whatever site is the solution is being deployed to?


Unable to pass default network credentials from a .NET / SharePoint application to Web Services

  

Require some help in passing the authentication of a logged-in user to a web services (which is a wsdl file added as web reference to the application) from an ASP.NET application/ SharePoint 2010 portal. When the application calls the web service, the default network credentials need to be passed to the web service to get authenticated to use the data repository. This web service is used for searching a data repository depending on the logged in user's credentials and search query.

We have made necessary changes required in the applications like.

Necessary changes in web.config (like authentication mode to Windows, impersonation is made true). Install client certificates to the trusted location.

Enable IE 8.0 to use Integrated Windows authentication (Internet Explorer -->Tools-->Internet Options -->Advanced--> Security --> Enable Integrated Windows Authentication.

Change Default Sort for Dynamic Data Web Application

  

Hi,

 

I just created a dynamic data web application and setup a simple .EDMX file. Next, I created meta-data / partial classes to ensure that my integer identifiers wouldn't show up:

 
// ...

[ScaffoldColumn(false)]

public object TableId { get; set; }

 // ...
 

I wanted to now set the up the list pages so they sort using a different attribute ("Name" in this case). Anyone know if this is possible / how to do it?

 

Thanks!

 

Kevin

 


Unable to pass default network credentials from a .NET / SharePoint application to Web Services

  

Require some help in passing the authentication of a logged-in user to a web services (which is a wsdl file added as web reference to the application) from an ASP.NET application/ SharePoint 2010 portal. When the application calls the web service, the default network credentials need to be passed to the web service to get authenticated to use the data repository. This web service is used for searching a data repository depending on the logged in user's credentials and search query.

We have made necessary changes required in the applications like.

Necessary changes in web.config (like authentication mode to Windows, impersonation is made true). Install client certificates to the trusted location.

Enable IE 8.0 to use Integrated Windows authentication (Internet Explorer -->Tools-->Internet Options -->Advanced--> Security --> Enable Integrated Windows Authentication.

Even the web services have methods to get the windows network credentials. While trying the following code, to pass current credentials, default credentials is empty.

myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials (Here it is a null value)

Application is using Windows Authentication | NTLM.

The following code works, if the authenticat

Application Hangs with the default font "Segoe UI"

  
Hello All,

I got a problem after installing VS2010, i have already reinstalled VS2010 but the problem persist and now it occurs on VS2008 too.

In my application (WPF and .NET 3.5 SP1) when i open one of the application screens. The application hangs and stopped to work. I discovered that this is because of a GroupBox that have in text Header a Fontsize=16, if i let the fontsize default the problem dont occurs, i use default font "Segoe UI".

I did some testing and discovered that if I simply create a new application in WPF and .NET 3.5 and add a button on the screen and increase the font size of button to size of 14, 16 or 18, when I give F5 the application will hang. In design mode its works, but when i run the application its presents the problem.

The font dont have any problem because i can use it normally on "Notepad" or "Word" and when i create a new application in WPF and .NET 4 its works perfectly, it just give problems in .NET 3.5. Anyway i already reinstalled the Segoe UI font too.

If i change the font to Segoe UI Symbol or any other and change the size to 14, 16, 18 its works normally, just with the default font Segoe UI and font

use the default sql services in a console sequential workflow application

  

Hello all,

I have configured my console workflow application to use the default sql service. However, when I run it in VS2008, it generates a TypeLoadException:

"Can not load type "System.Workflow.Runtime.Hosting from assembly System.Workflow.Runtime, Version=3.0.0000.0, Culture=neutral, PublicKeyToken=xxx"

So, my concern is

  1. How to configure a workflow application to use the default sql service?
  2. Are there any requirements for SQL version? Is there any settings we need to configure in SQL server?

Some tips

  1. my current app.config file looks like this:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     <config

Web Site/ Web Application templates seem changed; give me default.aspx only with site.master in VWD

  

Using Visual Web Developer 2010 Express

I was used to creating a web app anytime and I would get a default page for starters and be happy.  But today I find that when I pick either the ASP.NET Web Site or ASP.NET Web Application templates I get site.master and a bunch of site admin files that I don't want.  Alternately when I select the empty versions of those templates, I get almost nothing at all.  An almost empty web.config page and no Default.aspx page.  There is nothing magical about having a default.aspx page in place, but it is an indicator of a change when I can only get a virtually completely empty website or a website with a bunch of bells and whistles I don't want.

Also, for some reason, when I create a new app or website as just noted, in the Solution Explorer I get aspx.designer.cs files showing as well as web.config files for both debug and release.

Somehow some settings and templates must have changed, or am I missing something here?  How can I get my settings/templates to go back to the way they were?


Default application min password lenght

  

Hi


Anyone know why the minimum password length is 6 chars?

I can't find any reference to this anywhere.


How To define a Default Value for an enum property serializable ?

  

I'm trying to use the default value attribute. But, when deserializing the default value is not set to what specified with DefaultValueAttribute. Here is an exerpt of my code :

[Serializable]
public class MyClass
{
  public string Name { get; set; }

  [XmlAttribute]
  [DefaultValue(typeof(Color), "Blue")]
  public Color PropA { get; set; }

  [XmlAttribute]
  [DefaultValue(Color.Green)]
  public Color PropB { get; set; }
}
public enum ErrorLevel
{
  Red, Blue, Green
}

The XML not the result of a serialization. Someone have to write it. Here is a sample :

<Root>
 

How to make Excel open in application not browser by default

  

I'm facing a problem here. I tried the to open an excel file (.xls) which was attached in a Calendar Item.

On 1 PC, it opens automatically with the Excel application and thus the user is able to edit and save.
On another PC, it opens in the browser and the user is unable to edit / save the file.

Initially, I tried and thought that it's user rights issue but apparantly, it is not.

How can I make the .xls to open in excel by default? Can someone help me?

Really appreciate the help and answers.

Cheers


Search Services Application error. Can I restore to default? Or other ideas?

  

Hello,

I posted an question but I think I may have put it in the wrong forum. 

When trying to create a new Search Services Application (after deleting old one) I get the following error:

An unhandled exception occurred in the user interface.Exception Information: Some or all identity references could not be translated.

This is the only application that gives me an error.

Original post was here:  http://social.msdn.microsoft.com/Forums/en/sharepoint2010customization/thread/86fa1a52-5a57-4ffe-8153-f9646a1b87c6

Help is Greatly appreciated!!

Thank you,


IIS user (Default application pool) can not access default.aspx

  

Hi

we just migrated our website to a new server, and we keep getting error 401.3

 

and we keep getting an error

HTTP Error 401.3 - Unauthorized

You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.

 

I have a screen shot  of our process monitor that i am attatching, Can someone please help me?

 

http://img251.imageshack.us/i/accessdeniedg.png/

 


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend