editing wizard/properties of crystal report
Hi,
I made a Crystal Report in my application with kind of a Wizard in it. But
now I want to change some things (like the title of the report), but these
things were set in that wizard, and I can't find them inthe 'normal'
properties. Is there a way to edit a report with that wizard? Or change
these values, or rerun it for a report with the used values already in it or
something like that?
Thanks a lot,
Pieter Tag: MDI Child with own (Main)Menu??? Tag: 65521
Data loss in rebind
Hi,
I have a DataGrid which I databind as this:
BaseDataSetForUse.Tables["Market"].DefaultView.AllowNew = false;
BaseDataSetForUse.Tables["Market"].DefaultView.AllowDelete = false;
MarketGrid.DataSource = BaseDataSetForUse.Tables["Market"].DefaultView;
In the DataGrid, two columns is marked as readonly (In the definition of the
DataGridTextBoxColumn). If I in the WinForms-GUI, click in one of these
columns before I re-bind again, I will get an error in the re-bind code. The
re-binding of the DataGrid is done as the code above, that is I call the
same code snippet again, but I reset the DataSet first:
BaseDataSetForUse = BaseDataSetOriginal.Copy();
BaseDataSetForUse.Tables["Market"].DefaultView.AllowNew = false;
BaseDataSetForUse.Tables["Market"].DefaultView.AllowDelete = false;
MarketGrid.DataSource = BaseDataSetForUse.Tables["Market"].DefaultView;
When I set the DataSource, then I get the following error message:
"An unhandled exception of type 'System.ArgumentException' occurred in
system.windows.forms.dll
Additional information: Column 'IsExpired' does not belong to table Market."
I have debugged the code and the column is still in the DataTable. If I
doesn't click in one of the readonly columns, I do not get an error message.
Could anyone please help me?
--
Fredrik Arningsmark Tag: MDI Child with own (Main)Menu??? Tag: 65519
Scrollbar visual problem in a TreeView
Using VS 2003 ( C++ ), I've created a .NET Forms application. Added a TreeView docked to left, a Separator and a ListView docked to Fill ( not sure if relevant ). I've also enabled visual style using Application::EnableVisualStyles. The problem is that everything looks XP-ish ( I can see differences when I put the Name.exe.manifest to the same directory as the Name.exe ) except the TreeView's bottom scrollbar looks Win2k-ish ( even though no TreeViewNode exceeds the visible area of the TreeView ). When I expand the nodes until they go out of the TreeView visible area, the arrows from the scrollbar remain the same, while the center part of the scrollbar becomes XP blue-ish. If I collapse, the scrollbar dissapears ( as it should ). If I re-expand, the whole scrollbar looks as it should ( XP-ish )
Any ideas ? Tag: MDI Child with own (Main)Menu??? Tag: 65515
How to get Windows Directory in C#
Hi,
Can any of you tell me how to get WindowsDirectory using C#
Thanks
Michael Tag: MDI Child with own (Main)Menu??? Tag: 65502
VB Equivalent to Access Form BeforeUpdate Event?
Hi,
We have two fields in just about every table for UpdatedBy and UpdatedOn
which we want to update if there are any changes to fields on the form. In
Access we typically use the Form_BeforeUpdate event to accomplish this.
How should we do this in vb.net? I've explored using the RowChangeEvent to
assign values to the dataset, but of course this triggers another RowChange
event!
Do I need to have events for each control on the form? A little help
needed!
Thanks. Tag: MDI Child with own (Main)Menu??? Tag: 65501
ListView: column width if View == List
I am trying to adjust the width of a column when the View is set to "List"
in a ListView object. If the View is set to "Details", setting columns
widths is easy using the "ColumnHeader Collection Editor" (in Visual C#),
but for the "List" I cannot find something similar.
jg Tag: MDI Child with own (Main)Menu??? Tag: 65500
Multiline DataGrid
I'm trying to upgrade the DataGrid so that I can display multiple lines of text in one row. My method is to create a new class derived from DataGridTextBoxColumn. As suggested in http://www.dotnet247.com/247reference/msgs/20/100505.aspx I have overridden the 2 GetHeight methods. However, I can't override PaintText because it is not virtual or override.
As a result, when editting the text it works great. When viewing, the rows are the correct height but the text is only one line
Is there an easy way to do this, or do I have to rewrite the DataGridTextBoxColumn class myself? Tag: MDI Child with own (Main)Menu??? Tag: 65496
Picture box locking image
Hi,
I suppose I must have missed something somewhere but I'm getting an error when trying to overwrite a file referenced by a picture box. Even if I set the image property to nothing I still get an error.
I read somewhere that using a filestream based on the image would eliminate this problem but it didn't.
Any ideas appreciated.
Steve Tag: MDI Child with own (Main)Menu??? Tag: 65489
Load next form in same window - not mdichild
Hi
I am fairly new to VB.net. I have a form through which I would like to load another form, like when the user clicks the next button. On the first form the user selects an option depending on which the controls for the next form are loaded after the user clicks the next button. The problem is that I dont want to open the new form in a separate window nor the mdiparent way either (i.e. like a child window within the parent). (I am trying to make interface flow much like an installation wizard where the user clicks next and further options open up within the same window)
Thanks for the help in advance
Michael Tag: MDI Child with own (Main)Menu??? Tag: 65484
System.Drawing and GDI+ Question - Please help
I have a winforms control that draws a rectangle for a boarder and positions
some graphical elements around the control to create the boarder effect I
desired. In the control I have overriden the onpaint event and added the
code to draw my rectangle and position my graphic items:
Protected Overrides Sub OnPaint(ByVal e As
System.Windows.Forms.PaintEventArgs)
e.Graphics.Clear(Color.FromArgb(255, 255, 255))
MyBase.OnPaint(e)
Dim g As Graphics = pb1.CreateGraphics
pb1.CreateGraphics.Clear(Color.FromArgb(255, 255, 255))
Dim myPen As System.Drawing.Pen = New System.Drawing.Pen(Color.FromArgb(187,
191, 115))
g.DrawRectangle(myPen, New Rectangle(0, 0, pb1.Width - 1, pb1.Height - 1))
pb1.Width = (Me.Width - 34)
pb1.Height = (Me.Height - 29)
tr.Left = (Me.Width - 32)
br.Left = (Me.Width - 32)
br.Top = (Me.Height - 24)
bl.Top = (Me.Height - 24)
End Sub
Also I have added this line to the Public sub new call of the control:
SetStyle(ControlStyles.ResizeRedraw, True)
As you can see the rectangle is being drawn on a panel control called "pb1".
When I drag this control onto a Windows form in Visual Studio the rectangle
is drawn and behaves as it should when resized etc. However if I switch to
antother tab and switch back the rectangle disapears, this is also the case
when the solution is compiled the form initializes with no rectangle. Can
somebody please help me or point me in the right direction. Tag: MDI Child with own (Main)Menu??? Tag: 65483
Spacing between Textbox controls
I'd like to have several Textbox controls within a panel. Each Textbox will
have its .Dock property set to Top. This enables all of the Textbox controls
to resize as the panel resizes, which is the effect I'd like.
However, since each Textbox has its .Dock property set to Top, the Textbox
controls have no space between them. I'd like to have some space between the
Textbox controls. How can this be easily achieved? Or should I be satisfied
that the Textbox controls have a common top and bottom edge?
Thanks! Tag: MDI Child with own (Main)Menu??? Tag: 65482
How to provide some vertical space between Docked text boxes
I'd like to have several Textbox controls stacked vertically within a panel.
Each Textbox will have its .Dock property set to Top. This enables all of
the Textbox controls
to resize as the panel resizes, which is the effect I'd like.
However, since each Textbox has its .Dock property set to Top, the Textbox
controls have no space between them. I'd like to have some space between the
Textbox controls. How can this be easily achieved? Or should I be satisfied
that the Textbox controls have a common top and bottom edge?
What I am trying to achieve is a vertically stacked set of Textboxes, with
some vertical space between them, that will automatically resize in width as
the panel changes width.
Thanks! Tag: MDI Child with own (Main)Menu??? Tag: 65480
Bug w/ button having focus while in textbox
There seems to be a bug where if you're in a textbox, a button can still have focus and prevent you from using the "enter" key in the multi-line textbox. This happens when you have a button and a textbox in a child form, go to another child and return back to the initial child. Here's how to re-create the problem:
1. Create a child form with a button and a MULTILINE textbox.
2. In the MDI parent form, open two of those child forms (you could do it in the OnLoad event)
3. Run the program. Two child forms should show. Let's call the child that's on top "child 1" and the other "child 2"
4. "child 1" is currently on top. Now, click on "child 2" and click back on "child 1".
5. Click on the textbox on "child 1" and hit return ("ENTER"). You will NOT be able to go down to the next line.
It seems that upon re-activating "child 1", the form gives the button the focus again, but does not "release" the focus even when you put the cursor in the textbox.
So, even though you click on the text box & put the cursor there, hitting ENTER still makes the form fire the Click event on the button.
I have not found anything like this in the KB. If you have any workaround or know the solution please let us know.
Thanks!
jgc Tag: MDI Child with own (Main)Menu??? Tag: 65479
mdi, max child
Hi,
I have a windows form which has the following properties:
1) form1.IsMDIContainer = true;
2) panel1.Dock = DockStyle.Right;
Then I create a new child window and set its properties:
1) FormBorderStyle = FormBorderStyle.None;
2) WindowState = FormWindowState.Maximized;
But what happens is the half right of this child window is covered by the panel and it's still showing the header of the window (icon, name, min, max, and close buttons).
My questions:
1) How do I make the child window maximize only on the left half on the parent window (not to make it behind the panel)?
2) How do I hide the header of the child window when it's maximized?
Please advice, thanks!
-CL Tag: MDI Child with own (Main)Menu??? Tag: 65478
Recompiling samples via command-line
We wrote a class library and then we created aprox. 30 demo projects for both C# and VB. They all have the copy local set to true and it will be like that until the end of the development. So, everytime we change the library someone has to open each sample and recompile it or have a batch file copy the new version of the dll in the bin files. I wanted to create a batch file to run the command-line for the compiler for each project, so I was wondering how can I get a snapshot of the EXACT command line that VS.NET runs in the background while compiling a project?
Thank you,
iulian Tag: MDI Child with own (Main)Menu??? Tag: 65470
VS build result as dll
In Visual Studio, how to configure the build result as dll. Please advise.
Peter Tag: MDI Child with own (Main)Menu??? Tag: 65465
MessageBox problem
Hello,
I'm trying to achieve the following:
1. Have a windows form open a modal MessageBox (with MessageBox.Show())
2. Minimize (or hide) this form along with the open MessageBox.
3. Restore the form, so it returns to its original state - with the MessageBox open modally above it (and at the same place in the form code of course - the call to the MessageBox.Show() method.
My problem is whenever I hide the MessageBox (using the Hide method or Win32 api call) the MessageBox.Show() method returns (as if the MessageBox has been closed). How can I avoid this behavior and achieve steps 1-3?
Thanks. Tag: MDI Child with own (Main)Menu??? Tag: 65464
Remote Access Service Window
Hi,
How to call the remote access services window from vb.net ?
I would like to launch to this window when I m not connected to the
internet.
Thanks for your help
Stan Tag: MDI Child with own (Main)Menu??? Tag: 65458
Cannot open derived form in design view if the base form is marked 'abstract'.
Hi folks!
I have a BaseForm class that inherits System.Windows.Forms.Form. It has a
property, whose value I need supplied by the class that inherits it. The
BaseForm usees the value supplied into this property in its Load event.
So, I gave the BaseForm and the property 'abstract' modifier, and put the
implementation of the property in the inherited class; say MyForm. However,
when I did this, I no longer can open MyForm in the design view. I'm stuck
if I can't visually design MyForm.... :(
Would appreciate any input, even if it means altogether different way to
accomplish.
thanks!
-Yasutaka Tag: MDI Child with own (Main)Menu??? Tag: 65454
Resize to "Normal" from Maximized fails with ClientSize reset to {0,0)!?
The problem: WinForms app with main form and one NotifyIcon (called
sysTrayIcon in my code). Main form starts out minimized with ShowInTaskBar
= False. Double clicking on the system tray icon displays the form. All
looks/works well except....
If you:
[1] start the app
[2] double-click on the system tray icon to display the ("normal" sized)
main form
[3] maximize the main form
[4] minimize the main form
[5] double-click on the system tray icon to re-display the (still
maximized) main form
[6] click the "normal size" button (between minimize and close in the
title bar)
the main form now displays nothing more than the title bar, as if there were
no client area at all. What the heck is that?!
Looking at the messages going through the message pump it looks like the
main form is being sized correctly the first time, but is then being resized
down to 0,0 twice. Why is that happening???
Here's the custom bits to add to the default WinForms app:
private void Form1_Load( object sender, System.EventArgs e )
{
this.WindowState = FormWindowState.Minimized ;
this.ShowInTaskbar = false ;
}
private void sysTrayIcon_DoubleClick( object sender, System.EventArgs e )
{
this.ShowInTaskbar = true ;
this.WindowState = FormWindowState.Normal ;
}
private void Form1_Deactivate( object sender, System.EventArgs e )
{
if( this.WindowState == FormWindowState.Minimized )
{
this.ShowInTaskbar = false ;
}
}
This has me puzzled. I'm not much of a UI guy (as if you couldn't tell).
The cause *is* related to my code (shown above) because the default WinForms
app doesn't do this (already checked).
Many thanks in advance for any help you can offer.
-Jason Tag: MDI Child with own (Main)Menu??? Tag: 65450
Display menu items programatically in C#
Hi,
I was wondering if it is possible to display menu items inside code, i.e. to simulate the click event to menu items. E.g. menu File has a number of menu items( new, open, ... ). I want to display those submenu items programmatically.
Thanks for your kind help in advance.
(Sorry I did not indicate which language is it.)
Michael Tag: MDI Child with own (Main)Menu??? Tag: 65449
Display menu items programmatically
Hi,
I was wondering if it is possible to display menu items inside code, i.e. to simulate the click event to menu items. E.g. menu File has a number of menu items( new, open, ... ). I want to display those submenu items programmatically.
Thanks for your kind help in advance.
Michael Tag: MDI Child with own (Main)Menu??? Tag: 65446
Hide from Task Manager
I have a program that I wrote that sits in the system tray. I would like the
to make this invisible to the Task Manager. I know that you could do this
fairly easily in Windows 95/98 with the RegisterServerProcess API call. This
has been removed from Windows 2000/XP and I would like to know if anyone
know how to accomplish this. Any code or sources of code would be
appreciated. Tag: MDI Child with own (Main)Menu??? Tag: 65443
Typed DataSet
How come a Typed Dataset has a name(DataSet1) and a datasetname(DataSet)? I only seem to use the the name and not the datasetname. Tag: MDI Child with own (Main)Menu??? Tag: 65442
Binding a PictureBox Control to A ImageList - what field to bind to?
I am trying to bind a simple ImageList Control to a PictureBox. I
can't seem to find in documentation, or through trial and error, the
right ImageList data member to bind to. Nothing seems to work. The
code below attempts to bind the PictureBox "pbMain" to the ImageList
"ilPics" which is successfully loaded with images from a test
directory. The question mark in the "DataBindings.Add" method
indicates the parameter in question. Has anyone else successfully
done this and could you help me out?
private void PicView_Load(object sender, System.EventArgs e)
{
// Get all files in sample directory
DirectoryInfo dirImages = new DirectoryInfo("C:\\data\\All
Images\\image.assets");
foreach (FileInfo file in dirImages.GetFiles())
{
if (file.Extension == ".jpg")
{
Image myImage = Image.FromFile(file.FullName);
ilPics.Images.Add(myImage);
}
}
// bind to picture box
pbMain.DataBindings.Add("Image",ilPics, ?);
} Tag: MDI Child with own (Main)Menu??? Tag: 65430
Retrieving accessible objects from treeview32
I am trying to generate a gui test for a treeview32 form which was created
by a c# application on .net. I am using the pearl AO class in the win32 ActApp library. My script
works fine for other applications I have tested not written with c#. When I
try searching the accessible object tree of the c# treeview32 form I get
undefined values for the Application tree node. Any ideas whats going on?
This is where the output from the AO tree dies.
menu bar:Application {invisible,(0,0,0,0),id=0,00120a02}:
?:(undef) {?,(location error),id=-4,(no HWND)}:
Thanks,
Jonathan Tag: MDI Child with own (Main)Menu??? Tag: 65429
Changing compile order within a project
I started with two projects in a solution, one containing a BaseForm and the
other an enherited ChildForm. I decided to move the BaseFrom to the second
project and changed the inherited form to look in the local project for its
parent. However, until the baseform compiles, the child form cannot find it.
I am guessing that I may need to change the compile order in the second
project to compile the baseform BEFORE the associated enherited forms.
Am I correct and, if so, how to I change the order? Tag: MDI Child with own (Main)Menu??? Tag: 65427
How to use windows forms controls in a visual c++ app
In Visual Studio 7 I have a C++ dialogbased MFC application project. When I open the main form of my application the only available tools from the toolbox are those in the "Dialog Editor" section. The components in the "Windows Forms" are all disabled so I can't e.g. add a mainmenu to my project. Why are these components not available when I'm in this mode (in a c# project they are all available) ? How do I add a main menu and panel component to my C++ form ? Tag: MDI Child with own (Main)Menu??? Tag: 65424
ANN: SharpLibrary 1.37 Released
Main features of this release are:
1- A great number of controls --where applicable-- now support XP Themes and
in some instances even an Office 2003 like look.
2- Two new controls: IPAddessCtrl and LabelEx control have been added to the
ToolBox. (This brings the total count to 52).
3- Ten new samples showcasing all of the new features added to the library.
(This brings the sample count to 70).
For a detailed breakdown of all changes in new version, take a look at
http://24.199.8.122/LatestRelease.aspx
Regards,
http://www.sharplibrary.com Tag: MDI Child with own (Main)Menu??? Tag: 65422
GetWindowLong on GWL_EXSTYLE fails with error 127
Simple, really. I have C# code in a Windows Form, thus:
int rc;
rc = Win32API.SetParent(ctrl.Handle, new
IntPtr(Win32API.GetDesktopWindow()));
rc = Win32API.GetWindowLong(ctrl.Handle, Win32API.GWL_EXSTYLE);
if (rc == 0) {
System.Console.WriteLine(Marshal.GetLastWin32Error());
}
where ctrl is a control on the form (it doesn't seem to matter what
type of control), and Win32API has all the relevant imports:
[DllImport("user32.dll")]
public static extern int SetParent(IntPtr childHwnd, IntPtr
parentHwnd);
[DllImport("user32.dll")]
public static extern int GetDesktopWindow();
[DllImport("user32.dll", CharSet=CharSet.Auto, SetLastError=true)]
public static extern int GetWindowLong(IntPtr hWnd, int nIndex);
I'm doing this as a precursor to making the control a custom drop-down
of sorts (subsequent lines will set WS_EX_TOOLWINDOW, HWND_TOPMOST,
etc. and subclass the GWL_WNDPROC for mouse handling etc.), but I
don't even get that far. In all cases GetWindowLong returns 0, and the
Win32Error is 127 (which decodes as 'The specified procedure could not
be found.')
Anyone successfully done this from .NET? Tag: MDI Child with own (Main)Menu??? Tag: 65418
ComboBox Items problem
Hi....I have a problem with the combobox it's that it show the System.Data.DataRowView in the ListItems...What is the problem if a set my combobox with a datatable and that datatable have the data to show Tag: MDI Child with own (Main)Menu??? Tag: 65412
MDI Form Problem
I have an MDI form as a controlling form for my application
I do have several MDI Child Forms that are displayed within the app., but only ever 1 at a time
The problem is, when loading one of the forms, the MDI parent appears to go transparent for a second or so whilst the MDI child is loaded. I think it is due to processing the running in the form load event
I have tried Suspend / resume layout, hiding the form, minmizing the form etc. but nothing seems to work.
Any suggestions please
Thanks Andy Tag: MDI Child with own (Main)Menu??? Tag: 65393
MenuItem tooltips
Is there some way of having Tooltips in a menu item? So far I have found no
such method.
If this is impossible, is there some other way of displaying hint
information, such as changing the status bar text depending on what menuitem
is highlighted? Any easy way to go about doing this? Tag: MDI Child with own (Main)Menu??? Tag: 65388
Programm uses 90% of the CPU
Hi *,
has anynone the same problem or a solution?
If my App is minimized it will use about 90% of the cpu after 5 minutes. The
App doesn't do anything(like timers or stuff like this).
Thanx a lot
Tobi Tag: MDI Child with own (Main)Menu??? Tag: 65386
Hashtable enumeration
How can I loop thru a hashtable changing the Value of each entry ? Whatever
I try I always seem to get the error about modifying the collection within
the loop. Tag: MDI Child with own (Main)Menu??? Tag: 65377
Assistance with datagrid required
I have a simple SQL query that is executed when a command button is
clicked. This populates a datagrid and is working fine.
I have three radio buttons on the same form and when one of the radio
buttons is CHECKED and the command button is pressed, a different query is
executed, but the returned records are appended to the first record set.
I would like to clear the contents of the datagrid when the command button
is clicked and the radiobutton is checked, then populate the data with the
recordset returned from the query.
Any ideas?
Aaron Tag: MDI Child with own (Main)Menu??? Tag: 65375
DataGrid Data Validation Question
Hi all!
I have a datagrid control that I would like to have some data validation
before saving it to the database.
Is it possible that I could implement a data validation while the datagrid
is in an edit mode?
Thanks a million!
-A Tag: MDI Child with own (Main)Menu??? Tag: 65374
capture the mouse (to grab the window content) [not with SetCapture and not with hooks]
Hi there,
I write a small applicaiton in C# to mimic the SnapShot/32 application
functionality. I use Win32GDI rountines to grab the images and this is the
easy part.
The difficult part is to mimic the SnapS way of letting user to select a
window he/she wants to snap. It works like this:
1. the user does whatever he wants in the system
2. he/she presses some hotkey (RegisterHotKey) and the SnapS gets active
(but does not show its window)
3. instead the mouse cursor is globally changed to a cross and globally
captured until the first click
4. when the user clicks a window, its image is captured
my problem is the number 3. I've tried to capture the mouse with
SetCapture/.Capture = true but it does not work when the capturing window is
not a foreground window. I also try to change mouse cursor shape globally
with no results. I am sure that SnapS does not use any hooks (and I also do
not want to).
the question is: how the described functionality is achieved?
thanks for any clues,
Wiktor Tag: MDI Child with own (Main)Menu??? Tag: 65372
Showing animation on a form
Hi All
How some application shows animation to show if some progress/processing is
going on.
like especially in the end of some wizard, the application shows animation
on a form, animation like we see when copying of files is being done.
is that done by showing some animated gif? If an animated gif then how to
display an animated gif on a form.
Thanks
NOOR Tag: MDI Child with own (Main)Menu??? Tag: 65369
help provider problems
Hi,
I have seen a number of people who have posted that if you keep on pressing
F1 on a control with help provider, it crashes your application. Same thing
is happening with me. Every time some microsoft person says that they have
been unable to reproduce the bug. Is there any workaround? Has this bug been
fixed in some later releases? If this is not solved, then it means that we
cannot provide any help in a dotnet application? Tag: MDI Child with own (Main)Menu??? Tag: 65362
How To Load Bitmaps
Hi All,
I have a C# project, I added 2 bitmap images, 1.bmp and 2.bmp in the project
by right clicking and using the add existing item dialog. The bmp files now
appear in the solution explorer. My question is, do they get embedded in the
assembly? When I use the code as
System.Drawing.Bitmap b =
(System.Drawing.Bitmap)Bitmap.FromFile("c:\\myimages\\1.bmp");
it loads the bitmap and works fine. There are 2 things, I do not want to
hard code the path as somebody else might have the project somewhere else.
Ideally I would want to load the image from the assembly, but when I do
ResourceManager rm;
rm = new ResourceManager("<MyAssemblyName>",
Assembly.GetExecutingAssembly());
System.Drawing.Bitmap bt;
bt = (System.Drawing.Bitmap)rm.GetObject("1.bmp");
it does not load the bitmap. I think I am missing something very basic over
here. Can anybody point to what might be wrong?
TIA,
--Saurabh Tag: MDI Child with own (Main)Menu??? Tag: 65359
DataGrid flushing changes to DataSet.
Hi all,
I´ve seen around there, that many people have problems forcing the
datagrid control to flush the changes to the DataSet.
To do so, you only have to invoke the CurrencyManager.EndCurrentEdit()
method.
At least this worked for me. Tag: MDI Child with own (Main)Menu??? Tag: 65355
DataGrid flushing changes to DataSet.
Hi all,
I´ve seen around there, that many people have problems forcing the
datagrid control to flush the changes to the DataSet.
To do so, you only have to invoke the CurrencyManager.EndCurrentEdit()
method.
At least this worked for me. Tag: MDI Child with own (Main)Menu??? Tag: 65354
DataGrid flushing changes to DataSet.
Hi all,
I´ve seen around there, that many people have problems forcing the
datagrid control to flush the changes to the DataSet.
To do so, you only have to invoke the CurrencyManager.EndCurrentEdit()
method.
At least this worked for me. Tag: MDI Child with own (Main)Menu??? Tag: 65351
DataGrid flushing changes to DataSet.
Hi all,
I´ve seen around there, that many people have problems forcing the
datagrid control to flush the changes to the DataSet.
To do so, you only have to invoke the CurrencyManager.EndCurrentEdit()
method.
At least this worked for me. Tag: MDI Child with own (Main)Menu??? Tag: 65350
keypress handling
I need to implement keypress handler that works anywhere on a form (actually so long as I am on one of several tab pages on my form which is basically a tab control with 4 pages. Here is the problem - my TabControl.Keypress handler intercepts the keypress only of one of the grids on that same tab does not have focus. Essentially, once I select a row on a grid, my handler no longer receives keypresses, as they are now aparently directed to the selected grid. The handler is invoked if I am editing one of the edit controls. How can I intercept ALL keypresses within the form/tab page? Do I have to resort to the windows message handler? Tag: MDI Child with own (Main)Menu??? Tag: 65348
Crystal Reports Problem: Please reply ASAP
Hello All,
I have a Windows application that uses Crystal Reports 9 (bundled Version)
developed using VS.NET 2003 on a windows server 2003 m/c.
The application has to be deployed on the client machine that has Windows
XP installed. Before deploying we make sure that .NET framework 1.1 is
installed on the XP machine. In the setup project, for support for Crystal
Reports, we have added the following merge modules:
1)Crystal_Managed2003.msm
2) Crystal_Database_Access2003.msm
3)Crystal_Database_Access2003_enu.msm
4)Crystal_RegWiz2003.msm
5)VC_User_CRT71_RTL_X86.msm
6)VC_User_STL71_RTL_X86.msm
The problem we are facing is like this: Whenever the user tries to pull up
the reports, a database logon screen pops up for the report. I am unable to
figure out as to why this is happening only for Crystal Reports. All the
other functionality in the application is working fine without having to
specify the database connection information interactively. The database
server is not in the same network as this Client WinXP machine. We specify
the IP address of the DB server in the DB connection string. Could this be a
problem?
If someone has faced this problem earlier or has any solution to this
problem, do let me know. I need to resolve this problem ASAP.
Thanks in advance
Mithun Tag: MDI Child with own (Main)Menu??? Tag: 65342
How to display My Network Places with FolderBrowserDialog
I am using the FolderBrowserDialog in my application and it works well. However, when it is displayed, it does not include "+ My Network Places" in the list of available locations. I notice that other Microsoft applications (like opening a .zip file and clicking browse) do include My Network Places. How is this done? Thanks! Tag: MDI Child with own (Main)Menu??? Tag: 65340
MDI, maximize child window
Hi
I have a windows form which has the following: form1.IsMDIContainer = true and panel1.Dock = DockStyle.Right. Then I create a new child window and set its FormBorderStyle = FormBorderStyle.None and WindowState = FormWindowState.Maximized. But what happens is the right half of this child window is covered by the panel and it's still showing the header of the window (icon, name, min, max, and close buttons)
My questions
1. How do I make the child window maximize only on the left half on the parent window (not to make it behind the panel)
2. How do I hide the header of the child window when it's maximized
Please advice, thanks
-CL Tag: MDI Child with own (Main)Menu??? Tag: 65339
Is it possible for a MDI Child to have it's own (Main)menu, seperate from the MDI Parent's menu, so it's shown on the MDI Child itself?!