Smart Client failures
When trying to run a smart cleint app it terminates with no error messages,
event log entries, etc. I have tried running custom built apps and also the
report builder in sql server 2005 with no luck. Has anyone else had this
problem? Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96154
Me.Invoke - Incorrect behavior
I have encountered an odd behavior when using Me.Invoke and any help would
be great. I am using a standard Me.InvokeRequired followed be a Me.Invoke to
make sure a method runs on the UI thread. This logic has worked for me
countless times but for some reason I have a problem with it in one
circumstance. The Me.Invoke is called but it does not create the delegate on
the UI thread. Instead it creates the delegate on the same thread which then
gets caught by the Me.InvokeRequired which call Me.Invoke and this continues
until I get a stack overflow. So my question is what would cause Me.Invoke to
not use the UI thread but instead the thread that it is currently on? Below
is a code snippet....
Private Delegate Sub SetButtonDelegate(ByVal Value As Boolean)
Private Sub SetButton(ByVal Value As Boolean)
If Me.InvokeRequired Then
Dim newDelegate As New SetButtonDelegate(AddressOf SetButton)
Me.Invoke(newDelegate, New Object() {Value})
Else
Mylabel.Enabled = Value
Mybutton.Enabled = Value
End If
End Sub
Thanks
Madison
--
Madison Decker - MCSD Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96153
Skinnable UI with WinForms
Hello Everyone,
I have a requirement of writing a WinForm application that should support
"SKINS" for the UI. On applying a skin, the look and feel of the application
can change drastically. Even the size and shape of the Main window and its
child controls can change.
I have NO idea about, how to achieve this in .NET WinForms.
Any Article, Link, Sample or Lecture will be greatly appriciated with Tons
of Thanks :-)
Thanks
* (Vipul) () ;
===================================
Vipul Pathak,
Indore, MP, India. Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96151
Child forms
Hi,
When running this code, it's not possible to select the text using the mouse
in the textbox. What's wrong with it?
(This is just a code snippet. I can't use a MDI frame).
Regards,
Perry
using System;
using System.Drawing;
using System.Windows.Forms;
namespace WindowsTestApplication
{
public class MainClass
{
public class FormChild : Form
{
public FormChild()
{
TextBox tb = new TextBox();
tb.Location = new Point(5,25);
tb.Width = 240;
tb.Text = "Try to select a part of this text using the mouse";
this.Controls.Add(tb);
}
}
public class FormMain : Form
{
public FormMain()
{
FormChild f = new FormChild();
f.Location = new Point(10,10);
f.Size = new Size(250,150);
f.TopLevel = false;
this.Controls.Add(f);
f.Show();
}
}
[STAThread]
static void Main()
{
Application.Run(new FormMain());
}
}
} Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96146
DataGridView Cell border
Hello,
Is there any way to set a different border only to some cells. I need to
group some rows and I want to set the thicker bottom border for every last
row in a group.
Thank you
Ondrej Srubar Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96145
Reading a word document into a string
Hi All,
I need to be able to read a word document into a string, can someone post
some sample code or point me in the right direction please. I've googled on
this for ages and can't turn up anything useful.
Many thanks, Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96139
How can I get Area of checkbox ?
Hellow , all
How can I acquire the area where it is drawn to checkBox that changes
externals by CheckState such as CheckBox and RadioButton?
SystemInformation.MenuCheckSize ???
Thank you,
Ken Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96135
Closing the dropdown using Esc key results in closing of dialog
Hi,
I have dialog form whose Accept and Cancel buttons are set. Closing the
Drop Down which is in a grid using Escape key results in Closure of the
dialog. How to avoid this? Also, since the combo box has the focus, why this
key event is bubbled to the dialog form.
Regards,
Manjunath
--
Message posted via http://www.dotnetmonster.com Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96132
Inserting Vaules into Multiple columns in a ListBox?
Hi,
How can I make a ListBox multicolumn and insert values into multiple
columns of the listbox? I want to select the whole row as one......
Thanx in advance....
Regards,
Sandeep Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96129
Solution Explorer kind of utility
Hi,
wanted to know wat are the files used in current project along with folder
structure.
Please let me know how do I go about this.
any help on DTE /ENVDTE will do.
Kishor Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96128
Tab Control Behaviour
SelectedIndexChanged Event for Tab Control is not fired in .Net
Framework 2.0 but it gets fired in .Net Freamework 1.1 and this
behaviour happens till the form is not shown to the user. After
displaying the form this event starts working. Is this a known problem. Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96127
Tab Control Problem
SelectedIndexChanged Event for Tab Control is not fired in .Net
Framework 2.0 but it gets fired in .Net Freamework 1.1 and this
behaviour happens till the form is not shown to the user. After
displaying the form this event starts working fine. Is this a known
problem. Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96126
inspector window problem
I have a window with multiple inspector window.
When the *Application* lose the focus I would like to hide all inspector
windows.
I cannot use the activate/deactivate event on the main window, because it
deactivate if I click on any inspector windows.
How could I do that?
--
Regards,
Lloyd Dupont
NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com> Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96124
control validation problem
I have create a control which CauseValidation=true (let's call it
ValidatingControl)
I have created another control reacting to user action.(let's call it
GuiControl)
Now my problem is:
If my ValidatingControl is not valid and I click on some other gui element,
such as a CheckBox or the close button of my window, nothing happen: which
is fine and expected.
But if I click on my GuiControl it react on user input as usual, regardless
of the fact my ValidatingControl is not valid.
So the question is: how do I check in my GuiControl wether or not I'm
allowed to react to user input (i.e. that there are no pending validation)?
--
Regards,
Lloyd Dupont
NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com> Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96122
Windows Forms framework
Greetings,
I was wondering if there is a framework in .NET world similar to what
Eclipse is in a Java world. Could "Composite UI Application Block" be
compared to Eclipse?
Thanks. Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96121
Round edge panel: edges not smooth
I am creating a round edge panel by inheriting from the panel. What I do is
create a graphics path with desired shape and in the Paint method I fill the
graphics path and draw the graphics path border with desired color. This
would look as if the panel has round edges. So far I have not set the
region. Bounds of the panel is still the rectangle.
But the problem come when I set the region of the panel to the Graphics path
region. It would not draw the borders( especially left and bottom) properly,
it would not draw the curves properly. Also if I set the background image ,
the image is not smooth along the borders even though I set smoothing mode
to AntiAliasing .
Any ideas on why it is behaving this way would be greately appreciated.
Here is the code in Paint method
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
{
Graphics gr = e.Graphics;
gr.SmoothingMode = SmoothingMode.AntiAlias;
if(_roundedCorners)
{
// clear background with the parent's backcolor before drawing the round
edges
gr.Clear(Parent.BackColor);
gr.DrawPath(_borderPen, _roundedEdge);
// now fill with actual color
gr.FillPath( _graphicsPathBrush,_roundedEdge);
// setting the region of the control
this.Region = new Region( _roundedEdge); // this is where the problem comes
}
}
Here is the method where I create the path
protected void CreatePaths()
{
// Create _roundedEdge
_roundedEdge = new GraphicsPath();
_roundedEdge.AddLine(_topLeftEdgeRadius, 0, Width - _topRightEdgeRadius - 1,
0);
_roundedEdge.AddArc(Width - _topRightEdgeRadius - 1 - _topRightEdgeRadius,
_topRightEdgeRadius - _topRightEdgeRadius, 2 *_topRightEdgeRadius, 2
*_topRightEdgeRadius, -90, 90);
_roundedEdge.AddLine(Width - 1, _topRightEdgeRadius, Width - 1, Height -
_bottomRightEdgeRadius - 1);
_roundedEdge.AddArc(Width - _bottomRightEdgeRadius - 1 -
_bottomRightEdgeRadius, Height - _bottomRightEdgeRadius - 1 -
_bottomRightEdgeRadius, 2 *_bottomRightEdgeRadius, 2
*_bottomRightEdgeRadius, 0, 90);
_roundedEdge.AddLine(Width - _bottomRightEdgeRadius - 1, Height - 1,
_bottomLeftEdgeRadius,Height - 1);
_roundedEdge.AddArc(0, Height - _bottomLeftEdgeRadius - 1 -
_bottomLeftEdgeRadius, 2 *_bottomLeftEdgeRadius, 2 *_bottomLeftEdgeRadius,
90, 90);
_roundedEdge.AddLine(0,Height - _bottomLeftEdgeRadius - 1, 0,
_topLeftEdgeRadius);
_roundedEdge.AddArc(0, 0, 2 *_topLeftEdgeRadius, 2 *_topLeftEdgeRadius, 180,
90);
}
Thanks,
VPMahank. Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96118
Strange behaviour of Form.WindowState.Maximized in Form.Activate event
Hi,
I am experiencing problem with changing the Form.WindowState property
of the Child form in the MDI Winform Application.
If I change the 'WindowState' property to
'Form.WindowState.Maximized ' in the Form Activate event of the MDI
child form I will get double Control/System menu box for this form. By
closing the form there is Control/System menu box left behind. If I
repeat the process the number of Control/System menu boxes grows.
I am expecting that each form can have only one Control/System menu
box.
Is this a defect or did I forget to take something into account? Is
there known hot fix for this behaviour e.g. another way to maximise MDI
child form in Activate Event?
I am using VS 2003, .NET 1.1 with SP1, PC is W2K with SP4.
Please see my demo below.
Thanks
Viliam Batka
PS: Regardless of unexpected visual effect it can indicates possible
memory leak.
//=DEMO==============================================
// Description:
// *Demo for Strange behaviour of FormWindowState.Maximized
// in Form.Activate event.
// *This C# example is possible to compile as console application
// with references to System.Windows.Forms.
// Author: Viliam Batka
using System;
using System.Windows.Forms;
namespace ViliamBatka.MdiTest
{
class MDI_Test
{
[STAThread]
static void Main(string[] args)
{
// create MDI main form
Form fMDI = new Form();
fMDI.Activated += new System.EventHandler(OpenMultipleChildren);
fMDI.IsMdiContainer=true;
Application.Run(fMDI);
}
// open multiple MDI childer
static void OpenMultipleChildren(Object sender, System.EventArgs e)
{
for (int i=1;i<10;i++)
{
Form fChild = new Form();
// add event handler
fChild.Activated += new System.EventHandler(Child_Activated);
fChild.MdiParent = (Form)sender;
fChild.Show();
fChild.WindowState = FormWindowState.Normal;
}
Form f = (Form)sender;
f.WindowState = FormWindowState.Maximized;
}
// maximize Child Form at Activate event
static void Child_Activated(Object sender, System.EventArgs e)
{
Form f = (Form)sender;
f.WindowState = FormWindowState.Maximized;
}
}
}
//=END DEMO========================================= Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96117
Placing Custom User Control in a datagrid cell not the whole colum
I have been successful in adding controls in a datagrid using the
DataGridColumnStyle class but need to have different controls in the same
column.
Any suggestions on where to start? Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96116
Transparent Layer?
I would like to create a panel, completely through code (no
designer!), that is the same size as the current winform, and has
transparency set to 95%. I am using C# on Framework 1.1 and don't see
how to do this. I am tryng to emulate some WebForm behavior where
after a button is clicked a "please wait" div is drawn over the page
to indicate that somethihg is happening and controls can't be touched,
but can mostly be seen.
Thanks. Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96106
Rotate Focus
How do I rotate focus among controls inside a groupbox/panel?
I have 10 controls in my form. Once the focus reaches control5 (using
my TAB key), I would like the focus to go to control1.
Thanks in advance Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96105
Using .ShowDialog with MDI Children ?
Hi,
We are trying to build a .NET MDI application with several child windows -
some of which should be treated like dialogs and some as true child windows.
We keep getting an error when we call Form.ShowDialog(Me) after having set
the MDIParent property.
Is it not possible in the .NET Framework 1.1 to use dialogs like that?
thanks if anyone can help.
Philip Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96103
Tiling an image within a rectangle (GDI+)
I'm trying to write a routine to tile a given image in a given rectangle:
public static void DrawTiledImage(Graphics g, Image image, Rectangle r)
{
ImageAttributes ia = new ImageAttributes();
ia.SetWrapMode(WrapMode.Tile);
g.DrawImage(image, r, 0, 0, image.Width, image.Height,
GraphicsUnit.Pixel, ia);
}
Problem is this seems to be stretching the image not tiling it. What am I
doing wrong ? Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96102
Problem with CenterParent property
Hi All,
I have a windows application that has a form that gets sized based on the
content of a rich text control. I've set the StartPosition of the form to
CenterParent. In design mode the form is about 700 pixels wide. I've handled
the SizeChanged event of the richtextbox to set the width of the form.
Now the problem I'm facing is that when the form is displayed for the first
time the left/top position is calculated on the basis of the original
dimensions of the form and not the changed ones. Due to this it does not
appear centered in the parent form, though .NET thinks that it positioned
the form in the center as it is used the original dimensions to calculate
the left/top position. After dismissing the form and opening it again will
correctly center it within the parent form, because the width got changed
the first time and now the CenterParent is calculated properly. But I want
it centered the first time round and everytime.
Thanks in advance.
SK Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96100
datagridview - Obtener valor
=BFC=F3mo puedo obtener el valor de una celda determinada al hacer click
sobre una l=EDnea del datagridview en visual basic 2005?
Agradecer=EDa enormemente la ayuda, gracias. Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96099
How to use MaskBlt operation in GDI+
Hi,
I want to copy some portion of a bitmap(source bitmap) to another
bitmap(destination bitmap) using a reference mask bitmap. This task can
be acomplished in GDI using MaskBlt function. Is there any such
function in GDI+ for doing the same?
I saw Bob's "Extract a region from a bitmap" article. In that we are
creating region based on the given color and setting it as the region
for the form.
But in my case, I have the reference mask bitmap. If a particular pixel
in the mask bitmap is "WHITE", the corresponding pixel value available
in the source bitmap should be copied to destination bitmap. Otherwise,
it should be ignored. This process sould be repeated for the entire
image.
If anyone knows, kindly update. Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96098
RichTextBox not displaying values when another class object is inv
I am adding a comment to my file by selecting the file from file list.
The AddComment is done through a diff form. i load that form and take
values from that form in my Click event of the AddComment button.
now, if i set the selected item in list box using SetSelected it is not
getting highlighted.
if i Append any text to Rtextbox its not displyed(all the previous text also
not displayed) Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96096
how to clone a menustrip?
I have to implement a function that pop up a context menu which is the same
as the main menustrip in the form. but when I create the context menu using
the items of the main menustrip, I found that those items are snatched from
the menustrip by context menu. For example:
ContextMenuStrip.Items.AddRange(MenuStrip.Items); so I think I have to clone
the items for context menu. How to do it? I remember there is a method
CloneMenu() in MainMenu class, but what is the correspoding method in
MenuStrip class? Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96092
WebBrowser control and AddFontMemResourceEx
Not exactly a Windows Forms question, but I failed to find a more
suitable group.
What I'm trying to accomplish is to enable custom fonts (likely embedded
into my application as a resource) in the WebBrowser control (2.0). It
works just great to add fonts using AddFontResourceEx, providing a path
to the font file in question, but because of both legal and technical
reasons I would prefer to be able to only just add the font in memory,
from an (encrypted) embedded resource.
Must the WebBrowser control (Internet Explorer) be able to enumerate the
fonts or is there another reason AddFontResourceEx works when
AddFontMemResourceEx doesn't?
Perhaps there is another way of accomplishing this? WEFT fonts would be
OK if there was a way to create them programatically, I guess.
/Gunnar Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96091
Opposite to TopMost?
Would like to have windows form always as behind other windows (as the
'first' window on desktop) Is there anything like global 'z-index' for
all the opened windows in the system? Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96088
Re-initializing controls with new data removing old data
Hi everybody,
I am creating a program that generates controls like labels and buttons
at runtime and the text and data coming from sql database. Now, I have
problem of re-intialize controls after a button is clicked. The old data is
still there and sometimes new data is added behind them.
I used this code below. I am gonna try using Refresh.
The caller
[code]
If contentType = 2 Then
Me.disCtrl3.lblMessage.Text = title
Me.disCtrl3.btnPTopic.Text = parentTopic
Me.disCtrl3.ComputeTopicTextSize()
If Me.CheckUserControlExist(disCtrl2) = True Then
'This is path when usercontrol already exist
Me.disCtrl3.ReLoadContents(title)
Else
'Usercontrol is added to panel of Main form
Me.pnlMain.Controls.Add(Me.disCtrl3)
End If
Me.disCtrl3.Show()
Else
Me.disCtrl2.lblMessage.Text = title
Me.disCtrl2.lblTitle01.Text = title + " Meeting Agenda"
Me.disCtrl2.btnPTopic.Text = parentTopic
Me.disCtrl2.ComputeTopicTextSize()
If Me.CheckUserControlExist(disCtrl2) = True Then
'This is path when usercontrol already exist
Me.disCtrl2.ReLoadContents(title)
Else
'Usercontrol is added to panel of Main form
Me.pnlMain.Controls.Add(Me.disCtrl2)
End If
'Me.disCtrl2.Show()
End If
[\code]
Being Called
[code]
Public Sub ReLoadContents(ByVal topic As String)
'Me.Controls.Clear()
Me.pnlBalance.Controls.Clear()
Me.pnlContent.Controls.Clear()
Me.InitializeComponent() 'Only the controls that has not been
removed is visble
Me.ResetYAxis()
Me.InitialBalanceDisplay(topic)
Me.NextBalanceDisplay(topic)
Me.LoadDistinctContent(topic)
Me.btnPTopic.Visible = True
Me.lblMessage.Visible = True
'Me.MakeLabelsVisible()
End Sub
[\code]
Thanks
den2005
--
MCP Year 2005, Philippines Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96086
ListView, Removing items.
I'm having an issue with ListView control. THe list view contains
items that are dynamically added and removed at run time. The problem
comes when I try to remove an item. Whenever an item is removed, the
ListView seems to automagically 'select' the item which sits in the
same spot the recently removed item did.
This only causes a problem when removing the last element in the Items
collection, because there is no element to select, so it throws an
index out of bounds exception.
Anyone know how to stop it autoselecting an item after a removal?
Cheers,
Tim Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96084
Toolbar Image Distortion
Hi
I have an image that i want to use as a toolbar image. Its been created with
a transparent background in Photoshop. I have tried saving it to both a png
and a gif format and loading them into an image list and reference that for
toolbar button images.
In either case whenever i display it in the image is rendered with blue
swiggles/distortions around it. I believe this is because of the
transparancy as the image displays fine in a webpage.
What is it about Windowsforms that renders my images so poorly?
Any ideas?
Thanks
TM Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96081
Deleting the last row of a DataGridView - focus?
Hi,
I have set a dataGridView to full row select.
When deleting a row, the next one will be selected (whole row is
highlighted).
But when deleting the last row, I would expect the previous non deleted
one be selected (whole row instead of just having the focus to one
unique cell).
Is this by design? If so, then I'll try to adapt to it. Otherwise, I'll
try some code to select the whole row.
Thanks Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96080
'Interop.SHDocVw' does not have a strong name
I use web browser control(shdocvw.dll) in my winform application. When I put
a strong name into the project and change the assembly, I got following error
message.
"Assembly generation failed -- Referenced assembly 'Interop.SHDocVw' does
not have a strong name" and
"Assembly generation failed -- Referenced assembly 'AxInterop.SHDocVw' does
not have a strong name"
I need to compile the application with proper version and strong name. Is
there any way to work around this?
Thanks in advance!
Zheng Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96079
toolbox control to use for Outlook style nav bars?
I would like to create an Outlook style navbar on the left of a splitter bar
(like Outlook's Mail,Calendar,Contacts categories).
How do I do that?
Thank you,
-hazz Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96077
ToolStripRenderer
Hi,
I am having this very weird problem.I have created a custom ToolStripButton
and hosted it in the ToolStrip.
After I change the apperance of the ToolStrip using Renderer,I can see the
buttons,but i cannot view the separator.I dont know,but the separator do not
show up.I can see all the other controls.But the separator never comes up.
public class baseRenderer : System.Windows.Forms.ToolStripRenderer
{
protected override void OnRenderToolStripBackground(ToolStripRenderEventArgs
e)
{
SolidBrush transparentBrush = new SolidBrush(Color.Transparent);
e.Graphics.FillRectangle(transparentBrush, e.ToolStrip.ClientRectangle.X,
e.ToolStrip.ClientRectangle.Y, e.ToolStrip.ClientRectangle.Width,
e.ToolStrip.ClientRectangle.Height);
base.OnRenderToolStripBackground(e);
}
}
This is all that i do in the renderer
Thanks in advance Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96075
Owner-drawn listview row height VS2005
Does anyone know of a simple method to allow you to change the row height of
an owner-drawn listview control in .NET 2.0 (VS2005) ?
Thanks in advance
Steve Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96073
ClickOnce via Response.Redirect
I can use a ClickOnce app I made fine, but I cannot seem to reliably access
it via an asp.net app that redirects to it:
I created a simple ClickOnce windows forms application in VS 2005 that
deploys via IIS; that works fine when either type in the URL, for example
"http://localhost/ClickOnceTest1//ClickOnceTest1.application", or hit the
autogenerated publish.htm URL. Buuuut...if I then make a new, separate
asp.net web application (using vs 2003, so .net 1.1), (let's say it's called
ClickOnceWebApp1) and simply call
Response.Redirect("http://localhost/ClickOnceTest1/ClickOnceTest1.application",true),
it generally does not work - once in a while, it works fine! Most times, I
get the "Cannot start application" dialog with a msg "..the application is
improperly formatted..." If I then click on "details" I see some messages
such as the following:
Activation of http://localhost/ClickOnceWebApp1/WebForm1.aspx resulted in
exception. Following failure messages were detected:
+ Exception reading manifest from
http://localhost/ClickOnceTest1/publish.htm: the manifest may not be valid or
the file could not be opened.
+ Parsing and DOM creation of the manifest resulted in error. Following
parsing errors were noticed:
-HRESULT: 0x8007001f
Start line: 0
Start column: 0
Host file:
+ A device attached to the system is not functioning. (Exception from
HRESULT: 0x8007001F)
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [1/3/2006 5:47:31 PM] : Activation of
http://localhost/ClickOnceWebApp1/WebForm1.aspx has started.
{snip!}
----------------------------------------------------------------------------
I find it very odd that it works only sometimes works! I tried setting IE to
check for newer versions of the page on every visit (instead of
"automatically"), but that didn't help.
Any ideas? I want to be able to execute arbitrary server-side logic in my
asp.net app, and then, when needed, redirect the user to launch a smart
client.
Thanks! Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96072
Publish Application with Visual C# Express Edition
Hi,
i have a xml-file (name config.xml) and I use publishing my application
with
the C# Express Edition.
But with every new version of my program the config.xml file on the client
gets overwriten with the distributed file.
How can I config it, so that the config.xml-file is only installed if its
the first installation or it is missing?
Thanks,
Alex Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96071
MenuStrip merging
I want to merge a MenuStrip with the MainMenuStrip of an MDI container form.
I would like this newly merged menu to be the default menu in which MDI
children will automatically merge their menus with when they are activated
(which is the default documented behavior of MDI children). What is the best
way to achieve this?
I added an initial call to ToolStripManager.Merge() in the constructor of my
MDI container form after InitializeComponents() to perform the first merge of
the main menu strip. Whenever a child MDI form is activated, the
aforementioned merge is automatically reverted back before the MDI child menu
strip is automatically merged. Then, whenever the child is deactivated, the
mainMenu reverts back to its initial state before any merges.
It appears that you cannot compound multiple merges with a single menu. I
believe that ToolStripManager.Merge() calls ToolStripManager.RevertMerge()
before the requested merge is performed. Is there a way to persist the
initial merge to where it will not be reverted whenever a child is activated?
I thought perhaps I should clone a new menu from the initial merged menu and
assign that as the MainMenuStrip of the MDI container before any child MDI
containers are created and activated. But, cloning a menu strip does not
appear to be a trivial task as windows forms do not implement IClonable. Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96070
WinForms Smart Client app unable to access contents of config file
I have a simple WinForms app which uses values from the appSetting
section of the config file. When the exe is invoked directly, thes
values are retrieved as expected. When I try to launch the app vi
Internet Explorer, however, it seems that the appSettings collection i
empty. A reference in the for
ConfigurationSettings.AppSettings["keyname"] returns null; a call t
AppSettingsReader.GetValue() throws an exception ("The key 'keyname
does not exist in the appSettings configuration section").
I have followed the advice given by Chris Sells and others:
- I have enabled anonymous access to the directory containing the ex
and config file.
- I have added a web.config file to the same directory with an entr
allowing *.exe.config files to be downloaded.
With this in place, the config file is indeed downloaded:
- If I request the config file directly in Internet Explorer, it i
returned. (Visual Studio opens to display it.)
- If I clear out the Assembly Download Cache and my Temporar
Internet Files before attempting to run the application via Interne
Explorer, I see the following in the IIS Log:
17:40:21 127.0.0.1 GET /ND_Client/ND_Client.exe 200
17:40:21 127.0.0.1 GET /ND_Client/ND_Client.exe.config 200
17:40:26 127.0.0.1 GET /ND_Client/ND_Client.exe.config 304
17:40:26 127.0.0.1 GET /ND_Client/ND_Client.exe 304
17:40:27 127.0.0.1 GET /ND_Client/en-GB/mscorlib.resources.DLL 404
[plus more requests for non-existent files]
If I then look in my Temporary Internet Files directory, I can see bot
the exe and the config file. However, if I look in the Assembly Downloa
Cache, I see only one file, which the timestamp identifies as the exe
(Should I expect to see the config file there? If not, where would th
runtime find it?)
It therefore seems that the problem is on the client side. What else d
I need to do?
I am running Windows XP Professional v 5.1 SP2 and .NET Framework
1.1.4322
SP1. "Server" and "client" are both the same machine
--
Alan Millingto
-----------------------------------------------------------------------
Alan Millington's Profile: http://www.hightechtalks.com/m60
View this thread: http://www.hightechtalks.com/t232165 Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96069
Can a SQL trigger raise an event in C#?
Hello,
I'm using VS2003 and SQL 2000.
Is it possible for a SQL trigger to raise an event in my C# program?
Thx.
Andy Jacobs Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96068
ToolStripMenuItem.ImageTransparentColor throws exception
Howdy folks,
I am using VS2005 and have a ContextMenuStrip that I'm opening within a
rich text box. I can add an image to each ToolStripMenuItem, but when
I attempt to set the ImageTransparentColor property, I'm getting an
exception. Here is the code that is causing the problem:
menuItem = new ToolStripMenuItem(ContextMenuItemsText[(int)item]);
menuItem.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
menuItem.Click += new
System.EventHandler(menuItem_ContextMenu_Item_Click);
menuItem.Image = new Bitmap(@"C:\temp\Copy.bmp");
menuItem.ImageScaling = ToolStripItemImageScaling.SizeToFit;
menuItem.ImageTransparentColor = Color.FromArgb(254, 1, 254);
When I run the code, the following exception is thrown:
System.OutOfMemoryException: Out of memory.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawImage(Image image, Rectangle
destRect, Int32
srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit
srcUnit,
ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr
callbackData)
at System.Drawing.Bitmap.MakeTransparent(Color transparentColor)
at System.Windows.Forms.ToolStripItem.set_Image(Image value)
...
Does anybody know why this would be? What can I do to set the
transparency color of the images in the context menu?
Thanks,
Dan Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96067
DataGridView.ReadOnly property modifies DataGridViewColumn.ReadOnl
The MSDN documentation makes it sound like the ReadOnly properties of the
DataGridView, the DataGridViewRow, and the DataGridViewColumn can be set
indepently and that a:
Quote:
Cell is read-only if the value of the ReadOnly property is true for the
cell, the cell's row, the cell's column, or the DataGridView.
The problem I am facing is that if you toggle the ReadOnly property of the
DataGridView it modifies the DataGridViewColumns ReadOnly properties.
It really should not do this.
The use case where this is annoying is if you have a set of columns that are
always read-only but you need to temporarily disable all cells in the grid.
In this case you set the ReadOnly property of the DataGridView to true and
when the user can edit it again you set it back to false.
Setting it back to false causes you to loose all the column ReadOnly
properties.
Is there a way around this? I really do not want to reapply the readonly
properties to the columns all the time. Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96064
Datagrid error handling
Hi all.
When the update method of my data adaptor raises an exception it causes my
bound datagrid to display an error icon next to the offending row with an
appropriate error tooltip. This is exactly what I want. However, I also
want to focus the cell/row causing the problem. How can I determine which
row in the grid caused the error? The grid seems to know exactly which one
it was as it displays the error icon on the correct row, but how can I
determine this programmatically?
TIA.
John. Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96063
ClickOnce Memory Leak
Hi,
Has anyone noticed a memory leak when using the ClickOnce API calls.
Each time I call the CheckForUpdates method, my application's memory
increases my 300K.
This memory is only released when the application stops
I think that it's a bug within the System.Deployment.Application assemble
Regards,
James Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96057
Problem with PropertyGrid and DateTimePicker
Hi
I have a problem using a DateTime or Date value in the propertygrid in
VS 2003 in a VB.net project.
I have displayed an object in the PropertyGrid that has a DateTime
value. When the property is clicked in the PropertyGrid the
DateTimePicker is displayed with the correct value. However if the Year
is clicked and the value is moved backwards in time using the UpDown
control provided the display of dates for the month is incorrect.
I have seen this behaviour in the VS IDE as well as in a form I have
built.
The DateTimePicker works correctly if it is embedded on a Windows Form.
Does anybody know what is wrong or is aware of a getround.
The problem is easy to reproduce:
Start a new Windows application
Create a basic class with a DateTime property
apply an instance of the class to the propertygrid
click the down arrow and go backwards in the years
If have not tested this in c#
Regards
Paul Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96054
Problem in using word object
hi all,
In my windows application, i added a word object reference.
Using word object, i'm doing spell checking. After spell checking, i quited
the word object. But still its running in task manager and utilizing 100% in
CPU. How to solve this?. I attached the code which i used in my application.
string strVal = "Good";
Word.Application oWord = new Word.Application();
object missingType = Type.Missing;
bool blnSpell = oWord.CheckSpelling(strVal,
ref missingType, ref missingType, ref missingType,
ref missingType, ref missingType, ref missingType,
ref missingType, ref missingType, ref missingType,
ref missingType, ref missingType, ref missingType);
if(blnSpell)
label3.Text = "Correct";
else
label3.Text = "InCorrect";
oWord.Quit(ref missingType,ref missingType,ref missingType);
My ambition is to use spell check in my application. Is there is any other
way to do this?
Thanks in advance.
Regards,
Gomathi Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96053
aap domain and clr
I want to understand this..if i have 6 diif applications(exe),running on c
aomputer..will they all run in 6 diff app domainin one single process? is
this the default behavior? Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96051
Installer in VS2005
Hi guys, i made an app using C# (vs2005) and i added some references to MS
Excel in my project, when i try to install the app in a machine it begins
but at some time it says "Cant find file My_App_Name.application" (that file
exist at the directory when im publishing the installer), the closes itself,
but i can execute my app because there are a shortcut in desktop, my problem
is my app is not installing necesary dlls to work, and in my project
properties -> publish ->Application Files it has in Download Group column
Interop.Excel.dll, Interop.Microsoft.Office.Core.dll and Interop.VBIDE.dll
as Required and in Publish Status column as Include(Auto) all them.
but the specific report that uses excel doesn't works, it crashes, whats
wrong in my publish configuration?? or how can i make an installer like VB6
style to include all dlls?
Thanks all. Tag: "Error while trying to run project. Unable to start debugger.", help help Tag: 96039
I press F5 to run simple windows form program, the error show "Error while
trying to run project. Unable to start debugger.", how should I do?