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


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

why is there empty space between a instance of Toolstripcontrolhost and Toolstripdropdown

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :Windows Application
 

Hi Everybody!

I have following problem. I add a Usercontrol usercontrol to a Toolstripcontrolhost host, and then add host to Toolstripdropdown.items dropdown. At every opening of the dropdown I will update the usercontrol. After update the usercontrol a empty space between top of the dropdown and the content appears. Does somebody know why, and how I can solve it?




View Complete Post


More Related Resource Links

Remove/Hide empty space of quick launch from web part page

  
Hi,

I created a document library, whose type is "Web Part Pages". When I create a new web part page in this document library the quick launch is missing from the pages. There's a gap on the left side of the web part page for about 200px where the quick luanch would have been.

I don't necessarily want the quick launch to show up at this point. But I don't want the empty space in there either. I would prefer that the web part page covers the empty space on the left side. Can you please advise how to fix this? I had created a subsite before where I don't have this problem.

Let me know if it's not clear about what I mentioned above. Unfortunately I can't post an image here to show what I'm referring to.

Thanks,

How to remove the space for image in Toolstripdropdown

  

Hi! Everyone,

I have added a Toolstripcontrolhost with a own usercontrol to a Toolstripsplitbutton.dropdownItems. But there is always the space on the right and left side beside the toolstripcontrolhost. Has somebody any idea about how can i remove them?

I have set the margin and padding of the Toolstripsplitbutton.dropdownItems[index] to 0. But it doesn't help anything. I have also check other threads in this forum about the similar problem with contextmenu. But there is not such property like ShowShortCutKeys = false;
ShowCheckMargin = false;
ShowImageMargin = false; for Toolstripsplitbutton.dropdownItems[index] or for Toolstripsplitbutton.dropdown. Does somebody ever has that problem before?


How to resolve this error? - Database on SQL Server instance is not empty and does not match current

  
Upgrade form MOSS 2007 to Sharepoint 2010.  Reviewing the event log I see the following error.  Not sure what to do and hoping someone can provide some guidance please.

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name

How to remove the space for image in Toolstripdropdown

  

Hi! Everyone,

I have added a Toolstripcontrolhost with a own usercontrol to a Toolstripsplitbutton.dropdownItems. But there is always the space on the right and left side beside the toolstripcontrolhost. Has somebody any idea about how can i remove them?

I have set the margin and padding of the Toolstripsplitbutton.dropdownItems[index] to 0. But it doesn't help anything. I have also check other threads in this forum about the similar problem with contextmenu. But there is not such property like ShowShortCutKeys = false;
ShowCheckMargin = false;
ShowImageMargin = false; for Toolstripsplitbutton.dropdownItems[index] or for Toolstripsplitbutton.dropdown. Does somebody ever has that problem before?


Using jQuery to HIDE controls leaves an empty space

  

If one use the jQuery .hide function as follows:

if ($('#<%= rblBlastOccurrences.ClientID %> input:checked').val() == '4763')

$('#<%= pnlBlastWaveExperience.ClientID %>').hide();

How is one to recover/shrink the empty space?


empty space on sharepoint site

  

Hello,

 Im trying to remove some excess space on my sharepoint page where Ive hidden the quiclaunch, so that i can expand the text area. Ive seen some posts that say add a content web part and paste some code to shrink the space but this doesnt work. anyone have any insight?


How to check for null/empty strings on dynamic objects?

  

What is the proper way to check for null or empty strings on dynamic objects? This is the only solution I've found so far:

if (admin.PasswordHash.GetType() == typeof(DBNull) || admin.PasswordHash == string.Empty)

If the field is null, the object returned is DBNull.Value, but if the field is empty string, it's return as a System.String object. This makes it impossible to do regular "admin.PasswordHash == DBNull.Value" check, as that will fail whenever the field has been set to empty string. Is my example the right (and only) way to go?


http/localhost is empty

  

I have Win , I install the following

in Internet Information Service->

Web Management Tools (check)

Application Development Features I check (.Net Extensibility, ASP.net, ISAPIExtensions, ISAPIFilterd,  I can see  IIS Manager under my Administrative tool , but when I call

http://localhost/

I  can't see the welcome page , what is wrong

thank you!


Activation error occured while trying to get instance of type Database, key "DBName"

  

Im using Enterprise library 5.0
I have a scenario, where I have to access two different databases in my application.

Basically this application is a webservice,delployed on my local for testing purpose.
I'm trying to access this web method from diffent windows application, default connection works fine but the other database throw's exception.

Problem is only my defaultDatabase is works fine, if I change defaultDatabase="MYCON1" with "MYCON2" it works fine, if I try to access the other database which is not default, throws exception.

<dataConfiguration defaultDatabase="MYCON1" />
<connectionStrings>
<add name="MYCON1" connectionString="Data Source=server1;Initial Catalog=dbName1;User Id=Username1;Password=password1;"
providerName="System.Data.SqlClient

" />
<add name="MYCON2" connectionString="Data Source=Server2;Initial Catalog=dbName2;User Id=Username2;Password=password2;"
providerName="System.Data.SqlClient" />
</connectionStrings>


Database myDB=EnterpriseLibraryContainer.Current.GetInstance<Database>(); --> works fine for the default database (MYCON1)


Database myDB=EnterpriseLibraryCo

Image processing, determine white space and crop

  

Hi,


I have created a image upload for our ID card system to allow users to upload new images, edit them and submit for approval.  This is all working well with a combination of asp.net (c#) and jquery to give a seemless editor etc.

We have had a few users who I cannot believe have scanned a photo of themself and then just submitted it with the A4 page of white and little photo.


I am wondering if anyone can help with a suggestion on how I could possibly reduce the load of these coming through (I can't believe they can be this stupid), it stipulates UK passport standards.


Would my only option be to check for a single continues colour that occurs and if it reaches a certain percentage point say 60% then to just send back an error stating they need to crop the image.

Can anyone help with providing sample or that I can use to move this one on.


I am still in disbelief on this one.  the other one is they take a photo of whole body and other in it and cut straight down middle chopping the people out but supplying a photo that no use for an id photo card....but that I can't imagine being solved programatically as I need to determine where their face dimensions are and what percentage of the actual photo is taken up by it and if it below a threshold reject it.




Bitmap FromFile space "file not found"

  

I am using aspose.slides to create PPTx's. Some of the process involves loading jpg's from another server and including them in the presentation. This works fine in my development environment. When I upload the site to its server, the jpg loading fails.

I am trying to access jpg's on the other server by:

   oFS = New FileStream(sFile, FileMode.Open, FileAccess.Read)

This causes an access violation error when run from the server.

I also boiled the code down to reading the file directly:

   oImg = System.Drawing.Bitmap.FromFile(sFilePath)

This causes a file not found error.

We have narrowed the problem down to the fact that the File Path has a space in it. How does one solve this problem (while still keeping the space, there is a lot of legacy data)? I have tried replacing the space with %20 or +. I have tried using Server.UrlEncode. The error message always comes back with the encoding in place (like no decoding

SQL Server Express2008 R2 brings app down, instance problem

  

I have tried dozens of changes and modifications to many settings as I will outilne here and all to no avail.

The short answer here though is that I uninstalled SQL Sever Express 2008 R2 and went back to the "NON" 2008 R2 and got things working. But like the fool I am wanted to run on the more current rev and updated again, all problems returned....

SPECS

Server:

Win Server 2003 R2 SP2

SQL SERVER EXPRESS 2009 R2

VWD2008 Express (removed)

IIS 6

 

Workstation:

XP Sp3

VWD2008 Express

SQL Server Express 2008

 

I was orginally getting this message after updating to SQL Sever Express 2008 R2, I removed VWD 2008 Express from the web server, no good, then uninstalled SQL Server 2008 Express R2 and reinstalled SQL Server 2008 Express. worked but had issues, couldn't install MGTM Studio. Then I removed SQL 2008, cleaned folders and reg. Reloaded SQL Server 2008 Express, still flaky, couldn't get the Management Studio to install. So I removed it again and used the Web Platform Installer, which worked but loaded 2008 R2 again. Which brought back the message.

Failed to genera

Empty template support for GridView

  

Just add the following to support the empty text in the GridView.

 

protected override void RenderContents(HtmlTextWriter writer)
{
	if (Extender.AdapterEnabled)
	{
		GridView gridView = Control as GridView;
		if (gridView != null)
		{
			if ((gridView.Rows.Count == 0) && !String.IsNullOrEmpty(gridView.EmptyDataText))
			{
				writer.WriteLine();
				writer.WriteBeginTag("div");
				writer.WriteAttribute("class", "AspNet-GridView-Empty");
				writer.Write(HtmlTextWriter.TagRightChar);
				writer.WriteLine();
				writer.WriteLine(gridView.EmptyDataText);
				writer.WriteEndTag("div");
				return;
			}

Example of tag to be added to the css
 
.NiceGridView .AspNet-GridView div.AspNet-GridView-Empty
{
	border-width: 1px;
	border-style: solid;
	border-color: #

Office Space: Custom Field Types for SharePoint 2007

  

Custom field types provide a powerful way to define a reusable SharePoint column definitions.

Ted Pattison

MSDN Magazine May 2009


Office Space: Custom Auditing In SharePoint

  

Learn how to enable an auditing solution for Windows SharePoint Services (WSS) 3.0 with customized control pages in Microsoft Office SharePoint Server (MOSS) 2007.

Ted Pattison

MSDN Magazine September 2008


Office Space: Automated SharePoint Site Branding

  

Here's a custom branding solution for SharePoint sites that integrates Master Pages and CSS files at the level of the site collection.

Ted Pattison

MSDN Magazine July 2008


Office Space: From VBA Macro to Word Add-in

  

See how to use Word to capture a VBA macro and use Visual Studio Tools for Office to wrap it up into a deployable Word add-in.

Robert Bogue

MSDN Magazine May 2008


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