MDI App without parent form
Hi. Does anyone know how to create a visual studtio type GUI using
C#.Net. I.e. an MDI application, but where there is no real parent
form, rather a set of floating, dockable child forms that will 'stick'
together, etc.?
I'm waiting for VS.Net 2005, so I don't have VS installed at the
moment, otherwise I'd play around in the IDE and try and work something
out.
Thanks in advance,
Nick Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100932
Offline Block?
I am creating winform app vs.net 2005 and was looking for good
patter/practice for offline/online app. In particular how to best store
local and sync with server when online.
I noticed there is a MSFT block but it is dated 2004. Is there an updated
block or is this still a best practice?
thx
dave Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100924
Memory usage
Hi,
What is the typical memory usage for .NET application 2.0.
My app is around 30 meg, but sure sure that older version was around 2 megs.
What would cause dramatic change in size? Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100920
ToolStripComboBox Mimimum Width
With .NET 2.0, insert a ToolStrip onto a form and add a
ToolStripCombobox item.
I don't know if I'm flat out missing something, but I cannot set the
width of a toolStripCombobox any smaller than 75. It just seem
ridiculous.
toolStripComboBox2.Size = new Size(35, 25);
When you execute that line of code, you can see it flash that it
resizes it down to 35, but then immediately gets resized back up to 75.
The same thing happens in the designer.
I cannot find any other documentation or posts on this. Hopefully I'm
missing something or doing something stupid. Can someone confirm this
width problem. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100909
could not find a part of the path...
Could not find a part of the path...
I have developed an application that has a filetype, Filename.llsx,
association. My problem is tha on some computers i get a
System.IO.DirectoryNotFoundException when i try to download files of my
filetypes from the internet.
Here is the code that tries to read the file:
Dim rd As New System.IO.StreamReader(fileName)
Dim myXmlDocument As New System.Xml.XmlDocument
myXmlDocument.Load(rd)
Here is the error stack:
System.IO.DirectoryNotFoundException:
Could not find a part of the path 'C:\Documents and
Settings\Mats-Erik\Lokala inställningar\Temporary Internet
Files\ContentUTF8.IE5\S9U70XI3\WebReport_2006-05-11-09-20-54[1].llsx'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean
bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamWriter.CreateFile(String path, Boolean append)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding
encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding
encoding)
Thanks in advance! Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100906
Caching Smart Client Lookup Data
Hi,
We're currently developing a smart client application. It is a WinForms UI
that uses WebServices to retrieve data from an Oracle database. The
application will have several forms that will use a relatively static set of
tables for populating drop-down lists. I'm thinking that caching the data
from these tables on the client side, as opposed to bringing them through the
Webservice every time would improve application performance to some degree.
I'm just wondering if the Caching Application Block is the best route to take
for caching static data or is there another recommended approach. The
application itself will not be set up to run offline, so I only need limited
caching capabilities.
Thanks Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100905
Combobox does not accept key stroke
Hi
I am using .net 2.0 windows forms. I have a combobox with following
properties.
DropDownStyle : DropDown
AutoCompleteMode : SuggestAppend
AutoCompleteSource: Listitems
Now When I run the form and go to the combobox and type something it
works just fine. combobox suggest items as well.
If user does not select anything from combobox and hit submit button, I
am populating datagridview with all data.
Now when user select any item from combox and hit submit button i am
populating datagridview for that specific item.
The problem is user can type into the dropdown and dropdown suggests
the item as long as someone clicks submit button first time.
As soon I populate the datagrid first time, I can not type anything
into the combobox. I want user to type into the combobox and select
items at any time.
Its kinda strange. I would highly appreciate if someone can help me
here.
thanks Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100902
Custom windows form border, TransparencyKey Flicker
Hello,
I've got a question regarding a small amount of flicker I am seeing when
a form is first drawn that has a transparent background.
I have a custom panel that I'm drawing myself which takes up all of the
client area of a form (rounded corners, gradients etc).
I have set the background color and the transparencykey of the container
form to the same values.
Everything draws and looks great however right before the form is displayed
I see a black flicker or flash right before the form is rendered. It's a
really really quick flash.
Is there anyway to get around this? I've tried just a blank form and
setting the transparency key and the backcolor to the same values with the
same result.
thanks,
bp Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100901
Data binding problem
Hello,
I'd like to make something easy, in theory.
In C#, I have a database, and some textbox, I'd like to bind theses textbox,
that's that work.
But I'd like update the change (update database) and I push on a button, I
tried the Update of the DataAdapter but that's not work.
Could you help me?
A full sample is welcome.
Thanks, Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100899
Creating a GraphicsPath object from a bunch of points
I have a whole collection of points, they are actually Latitude and
Longitude points that make up a specific area. The points that I have make
up the outer edge of the are as well as the interior of the region. What I'm
looking to do is create a Path object that will completely bound all of these
points, and the path object should be as small as possible to bound each of
these points, in otherwords I not looking to make a big square that will
encompass all of the points I am looking to make an irregular shaped objects
that will exactly bound all of the points. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100898
.NET SQL Query Designer Control
Does anyone know of a .NET control for building SQL Query command that can be
embeded in a Windows Form?
I am developing a Windows form application and want to give user a visual
tool to design SQL querys (SELECT only). The designer needs to be able to
work with a .NET dataset directly without a database connection.
I did some search and only found a few ActiveX SQL query designers.
Thanks for you help. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100891
Chart on Windows Form VS2005
I have VS2005 Team Edition for Software Developers Version 8.0.50727.42 with
.Net Framework 2.0.50727
I have created a Windows Form Project.
I have installed OWC11. I have Office 2003 installed on my machine.
I have added references to Microsoft Office Web Components 11.0,
Microsoft.Office 11.0 Object Library, Microsoft Graph 11.0 Object Library,
Microsoft Excel 11.0 Object Library
I click tools, chose toolbox items, Comm components and select Microsoft
Office
Chart 11.0
I drop a chart on my form. When I run the project and open the form I get:
Could not load file or assembly 'Interop.OWC11, Version 1.0.0.0,
Culture=neutral,
PublicKey Token=null' or one of its dependencies. The system cannot find the
file specified. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100883
ListView selection
I have a ListView control, and anytime I manually set the selected item, the
original item OnSelectedIndexChanged event fires twice.
Here is a sample of what I am doing in the OnSelectedIndexChanged function:
if ( listView1.SelectedItems.Count == 1 )
{
MessageBox.Show( "index = " +
listView1.SelectedIndices[0].ToString() );
if ( isinternal )
return;
isinternal = true;
if ( last >= 0 ) // last is the last selected index
{
MessageBox.Show( "Not Shown" );
//behaves regardless if the next line is present
listView1.SelectedItems.Clear();
listView1.Items[0].Selected = true;
}
last = listView1.SelectedIndices[0];
isinternal = false;
}
else if ( listView1.SelectedItems.Count == 0 )
{
}
I have 4 items in my ListView. Assume I select index 4. I should see message
boxes in this order:
index = 4
Not Shown
index = 0
However, I really see
index = 4
Not Shown
index = 0
index = 4
Not Shown
index = 0
If I don't manually set the selected index to 0, the control behaves as
expected. Why does manually setting the selected index cause this behavior?
How can I manually set this index and avoid this behavior?
Thanks in advance for your help! Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100879
External component has thrown an exception
Hi,
I'm getting this error really sporadically in my Winforms app. Seems to
happen when trying to display a form with a call to .ShowDialog()
It doesn't seem to happen on any particular form, just pops up now & again.
I can close the application and restart it, then I can view the form without
the error?
The application is running in a Citrix terminal server environment, the
assemblies themselves are running from a network share.
Can anyone think of what would be causing this error - why is it only
happening every now & then (the worst sort of errors!)
Thanks
Dylan Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100878
MDI Form question
hi,
I am new to winForm development. When I am using the .NET 2.0 MDI Forms,
I want to close one of the child form at the very begining. For example, I
want to close Form1, so I write
public Form1() {this.close();}
And in the MID Parent, I write
form1 = new Form1();
form1.MdiParent = this;
form1.Show();
The problem is that everytime I open Form1, it will close but there will be
an object dispose exception unhandled and my program will hang up. Could
anyone here please tell me how to solve this problem? I just want to close
one of my child form. Thanks a lot! Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100875
Datatable Row Number
Hi All,
I am using a datatable to store some data from the xml.
I need the row number where a particular string exists
(Note: All values in datatable are unique).
Please help me in this regard. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100870
How to check if application is in debug mode
Hi,
Is there any way to check if the application is in debug mode or running
from the exe.
Thanks in advance,
Debi Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100866
RichTextBox Control Captures Shortcut Keys in Regular Windows App but Fails to Capture in an MDI App?
Hello All,
First, I apologize for posting this to so many newsgroups but I wasn't sure
which newsgroup was most appropriate nor which newsgroup would most likely
have subscribers that have done this or would have the answer. That said,
below is a description of my problem:
If I create a standard Windows executable in C# or VB.Net and place a
RichTextBox control on the main form, the control captures standard shortcut
keys as expected (i.e. Ctrl-V, Ctrl-X, etc.). However, if I add an MDI
parent form to the project, make the original form a child form to this
parent MDI form and display the original form, the RichTextBox control no
longer captures these shortcut keys.
Can someone please tell me what is necessary to correct this behavior?
Thanks & Regards,
TC Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100865
Application Settings
I'm just venting.
I finally got around to converting a big WinForms app for my biggest client
to .NET 2.0. I've heard all along that application settings are now
writable, which has always been one of many bones of contention with .NET
1.1 for me. So I get to the point where I am going to convert my custom
settings mechanism, do a little investigation, and find out the reason I
made a custom configuration file mechanism hasn't changed at all. Sure -
you can write user setttings, and settings are type safe now, but the
application scope settings are still read-only. (If anybody knows a
reasonable workaround that works within the framework for this, I'd like to
hear it). I certainly understand MS's reasoning for making them read-only,
but I'm more of the mind that in "most cases" the application settings
shouldn't/wont need to be written. However, to prevent it altogether is
simply stupid, imho. I feel like I'm old enough to be responsible for my
own actions by now.
I do like the new stuff for user settings and for application settings that
don't change, so I'm actually going to use the new stuff for all of that.
However, I have one setting that all users must be able to change, and must
be the same for all users. I had a custom configuration file, and I allowed
write access to its containing folder on installation. I may move this
value to the database for now. Or, Gawd Forbid, the Registry!
Don't get me started on generic collections! Ok, I'll start, but just
barely... Ha! Have you seen the Find() or Exists() method on List? Here's
the code to find '6' in a list of ints:
List<int> myInts = new List<int>();
myInts.Add( 0 );
myInts.Add( 1 );
myInts.Add( 2 );
myInts.Add( 3 );
int n = myInts.Find( delegate(int x) { x==6; } ); // seems rather obtuse
to Find(6), doesn't it? This returns '0'! Ha!
int m = myInts.Find( delegate(int x) { x==0; } ); // This returns '0' too!
I tried deriving my own collection, and quickly found that two values of
type T cannot be compared. I'm sure there's a good reason for this - I just
hope there's a better workaround eventually. It makes me wish for the days
#define!
Even though that's just the tip of the tip of the iceberg of my complaints,
I still like it (2.0 that is). It's definitely a step in the right
direction. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100854
How can I make a modeless form receive input when a modal form is open?
>From my main form, I can open and access a modeless form. However, if I
then open a modal form (from the main form), the modeless form will no
longer accept keyboard and mouse input until the modal form is closed.
Is there a way to allow the modeless form to continue to receive input?
As an example, Windows Notepad does this. If you open the Find dialog,
then open the About box, you can still access the Find dialog.
Any pointers appreciated.
Thanks,
Andrew Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100850
Non-rectangular Window
Hi,
I have developed an application that looks like Windows Media Player. Every
thing looks wonderful, but when I resize the window it flickers a lot. How
can I implement resizing of the window without any flickering? Remember my
window doesn't have frame border, title bar etc.
thanks,
Balu. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100848
Image beneath of my window
I have Windows application, and I need to draw on it surface the content of
desktop (which may consist from another windows or part of desktop or their
combination), so, the question is: How to get image which contains windows
and/or part of desktop which are located under my window? Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100847
Moving images fluently
I am looking for technique which allows to fluently move several images over
the form without using DirectX & Open GL. Several images should be moved
simultaneously but with different speed. Also one more feature: I should be
able to change their (moved images) opacity during moving. Does anybody know
good algorithm (or may be article, example, link) to implement these
features? Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100846
Setting focus to a control within a usercontrol
I have a user control that contains a grid. I want to set focus to the grid
when the user control receives focus.
I have tried calling grd.focus() for the gotfocus of the user control, but
that doesnt work.
Any ideas?
Thanks Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100838
Get Notification when an external application started
I have create two windows applications called WinAppX andWinAppY.
First I opened the WinAppX . When ever i opened the WinAppY ( second
app ) , the WinAppX should get notification , after that these two app
should communicate each other someway. How can i do this.. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100833
autosrollbar does not activate
I have a windows form with a button on it. The button anchor property is
right and the forms autoscroll property is set to true.
When adding a second control (also anchor.right) to the left of the viewable
area, the scrollbar does not activate. Why?
When using anchor.left and adding controls to the right, the scrollbar
activates automatically. I want to have the same functionality when adding to
the left of the screen. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100831
Problem with no touch deployment of application which has dynamically loaded assemblies
We have an application which dynamically loads an assembly and creates
instances of classes. For this we have written a factory class which
reflects the assembly and creates the classes and returns the created
objects as plain objects. The caller method casts the object returned
by the object factory into appropriate class object and uses it.
All this works fine when exe is invoked directly. But when the
application is deployed on the IIS for no touch deployment, the casting
of the object returned by the object factory is throwing an invalid
cast exception. Strange thing is that the statement that is causing
exception during run time works fine if executed in the Immediate
window of the VS.Net IDE.
How do I fix it? Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100826
TextRenderer problem
Hi,
I'm creating a control that overrides ListView and so I'm working on
redrawing everything myself with some changes here and there...
But I'm having a problem with drawing the text inside the rectangle on
LargeIcon mode... I thought I'd finally discovered the solution with
TextRenderer but this still doesn't give the correct results.
Here's the code I'm trying to use (item is a ListViewItem)
Rectangle text_rect = item.GetBounds(ItemBoundsPortion.Label);
TextFormatFlags formatFlags = TextFormatFlags.WordBreak |
TextFormatFlags.HorizontalCenter | TextFormatFlags.Top |
TextFormatFlags.EndEllipsis;
if (item.Text != null && item.Text.Length > 0)
TextRenderer.DrawText(dc, item.Text, item.Font, text_rect,
item.ForeColor, item.BackColor, formatFlags);
The problem is that its still not exactly what the original ListView
displays... ie
I'm displaying:
___________
| some |
| really long |
original ListView displays:
___________
| some really |
| long text |
Surely it should fit inside the bounding box if its using the GDI draw
method and I'm using the bounding box thats returned to me from the
ListViewItem itself? Any ideas?
thanks
Kris Wragg Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100820
Custom Control Design Time Property Selector
I'm creating a custom control with design time support, i wish to create the
a property which is xml document and let the deisgner to use the property
selector in VS.Net to browse to the xml file and attach it to the custom
control, how can i do that? Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100816
How to make dynamic toolboxes ina form
Hi there,
I'm doing a GUI for my apllication and i wanted to know if it is possible to
do something similar to what is done in the GUI of whidbey. I want to have in
the right part of my main form toolboxes that i can show or hide dynamically
to let the user save space.
Anyone knows how can i do it? Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100812
Customization In Web Application
All,
Using VS 2005, C#.NET, SQL Server 2005, W2K3.
We are developing a web application that would be shared by numerous
customers for information management. Some of those customers want
variations on the usual form layout.
For example, we have a form where the user can enter their dependents
information (parents, siblings, spouse, kids, etc.), but we know one of our
customers wants to include additional information on that form that none of
the other customers would use (company specific insurance coverage).
Based on our experience with our C/S version of the product, we can expect
to see many more requests like this.
There are 3 ways to do this that I see.
1. Create a separate web application for that customer and host it on a
different web server.
2. Add the custom fields to the single web application but hide the extras
based on the customer using it.
3. Allow the customer to add the fields themselves and store them for just
that customer.
Pros and cons that I see.
1. Quick to implement, but costly in new infrastructure, and would end up
difficult to maintain.
2. Still relatively quick to develop, and uses existing infrastructure, but
would create complex forms.
3. Difficult to develop, but would use existing infrastructure and wouldn't
need extra maintenance.
Personally, I'd like to use 3. That is... Design the application so that
each form includes standard fields, but a customer can add new labels,
textboxes, drop-down combos, lists, etc., themselves and doing so doesn't
require us to change any code or the database schema.
While this would be a no-brainer in an C/S application, it gets a little
more difficult in a web app since the only client they use is a browser.
Any thoughts? Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100808
Type of member 'DataReader1' is not CLS-compliant.
Hi,
Why do I have this error in one project but not another?
Type of member 'DataReader1' is not CLS-compliant. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100806
Bigger Large Icons in listview, possible?
Hi all,
I'm just wondering if it's possible to make the icons under large icons
view in listview bigger? For some reason, I think the default is set at
16 X 16 pixels?
I don't think I've done anything wrong?
-----------------------------------------------------------------------------------------------
this.listView1.View = View.LargeIcon;
this.listView1.
ImageList il = new ImageList();
il.Images.Add(Bitmap.FromFile("C:\\pictures\\topics\\1.gif"));
listView1.LargeImageList = il;
ListViewItem item1 = new ListViewItem("ALL");
item1.ImageIndex = 0;
listView1.Items.AddRange(new ListViewItem[] {item1});
---------------------------------------------------------------------------------------------------
Even though it was set to largeIcon, it's still only 16 X 16 pixels at
best. Any help will be appreciated.
Cheers
Edmond Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100805
How to attach to a process middle tier for debugging
Hi,
I'm consulting on a project that has two solutions, a client solution, and a
middletier solution. The middle tier solution is hosted in asp.net.
I want to debug something in the middle tier, and I've been told that I have
to attach to the asp.net process.
So I add a breakpoint on the code in the middle tier. I build the middle
tier solution and then the client solution in debug mode. Then I start the
client application. Then I'm supposed to attach to the ASP.NET process.
I've tried to attach to the asp.net process from both solutions but the
debugger doesnt stop at the breakpoint.
The middletier is not in the client solution, but is referenced
Can Anyone help? Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100803
TextBox Size.Height
Is there any way to control a TextBox Size property's Height? Besides making
it Multiline?
Everytime I set the Size, it always reverts back to Size.Height = 20 (or
whatever value based on the current font, I think). I've tried setting the
Min/Max Size but that only seems to hold during design time. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100800
Marlett not allowed? [VS 2005]
I want to display a right-pointing triangle glyph like that indicating a
submenu. This is "8" in the Marlett font. However, when I put a label on a
form and set its font to Marlett, all I see is a regular "8", both in the
designer and when the app is running. Is there a limitation?
I once created a drop-down button by explictly drawing text in Marlett, and
that worked, but I had to do it that way because I was using two fonts (one
for the button text and one for the down glyph). I'd like to avoid doing
that much work when it seems like the control should handle it for me.
Suggestions? Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100794
Form -> Panel -> Child Form -> Resize -> Bug?
I'm using the following code to show/hide a form located inside a panel that
is located on my main form. The panel is set to DockStyle.Fill so that when
the main form is resized the panel is also resized. The problem is that the
included child form never resizes beyond it's initial starting size. Don't
child forms respect the DockStyle setting during resize of parent controls?
If I take out the commented lines of code it works - but of course it looks
like crap while doing it.
Button click event:
if (f2 == null)
{
f2 = new Form2();
f2.TopLevel = false;
this.pnl_childform.Controls.Add(f2);
}
if (!f2.Visible)
{
f2.Show();
f2.BringToFront();
f2.Dock = DockStyle.Fill;
//f2.WindowState = FormWindowState.Minimized;
//f2.WindowState = FormWindowState.Maximized;
}
else
{
f2.Hide();
} Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100792
AD Replication Problem
Hello All,
I recently restored two of my Windows 2003 domain controllers from a backup.
They were backed up using Symantec LiveState Recovery 6.0. Everything seemed
to be just fine, but just recently I noticed that AD Replication is not
working. I've received Event id: 13559 Source: NtFrs. I did some research
and tried what's suggested at the following link
http://www.eventid.net/display.asp?eventid=13559&eventno=657&source=NtFrs&phase=1
That doesn't seem to resolve my problem, after creating the
NTFRS_CMD_FILE_MOVE_ROOT file with no extension in C:\winnt\sysvol\domain,
and running "net stop ntfrs" and then "net start ntfrs" I notice much diff.
I did get Event Id: 13508 Source: NtFrs. Also, I can see both the servers in
Sites and Services. But when I try to manually replicate i get "The Source
server is currently rejecting replication requests"
Does anywhere know how I resolve this issue? It's causing major issues for
me and I need to figure it out ASAP. Last thing I wanna do rebuild any of
the servers! Please HELP!
--
Raghbir Flora
Network Administrator Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100790
How to get ValueChanged event from PropertyGrid collection using default editor?
When makign a change to a collection using the default editor in the
property grid, you do not get a value change event. Now I know I can
code up my own editor and deal with the valeu change myself, but I have
40 lists I'd have todo this with and it seems like there should be a
way to get the default editor to work... Anyone have any ideas? Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100783
Problem with Waiting Form Owner
I have a process that take some time to process data in formA.
While processing the data I wish to pop a "waitingform". The waiting
form have it's own thread and show the process advancing between 0 and
100%.There is a timer within the
Waitingform, on each tick the progress percentage is read and display,
also this reflect that
the program is still running. When the processing finish, the waiting
form just close.
I have done everything and it's work well except for one thing. I wish
the waiting form to be modal and own by the main form.
If I set the waitingform owner :
WaitingForm->Owner = FormA
The waitingform doesn't appear before the data process finish, the form
disappear as soon as it appear. If I dont set the owner, the
waitingform works as expected, but can be lost behind other windows,
and user may believe there is a problem when it's not.
I use multiple threads in my application. The data processing thread is
not the same as formA nor the same as the Waitingform.
Does someone have an idea how I can set the ownership of the waiting
form and still keep the behavior i wish? Thank you Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100777
how to raise the click event by code
Hi all,
I want to raise the event click of a control by code. How can i do that ?? Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100773
Best way to organize large project
I am working on rewriting a Fox 7 ODBC app. and teaching myself .NET in the
process. So far I have over 130 of the screens rewritten, but debug
performance is terrible. It would be much better if I had each screen as
seperate solutions, but then I'm constantly having to remove and readd
references which became way too much hassel. So currently my solution has
the 130+ projects included.
But when I start debugging it rebuilds EVERYTHING! eventhough I haven't
changed a single thing!! I can play a hand of Solitaire before it finally
starts executing. Not finding this situation very productive at all!!! Is
there an option that can be set to only rebuild changed modules? Or has the
size of my application exceeded the capability of .NET? It sure is looking
that way.
Or how should an application of this size be organized? The two ways I've
discovered each have serious flaws and I'm seriously wondering about the
feasibility of developing large application in .NET.
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/winform/200605/1 Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100759
scroll user control?
I am painting my control entirly and need it to show scroll bars when it's
being resized below it's min size. Please suggest how to go about this.
Simply setting autoscroll to true does not work. Thansk in advance. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100755
deployment
i was finish project with visual basic 2003 + SqlCE database for POCKET
PC, and now i have to create setup
can someone help me a little, couse all that is realy confused for me :-( Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100747
capture application output
Hi,
How can I capture the text output of a console app?
For example, I would like to capture the outpur of "qwinsta"
Thanks. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100746
How to kill a terminal server session (VB.NET)
Hi,
Is there a way to kill a Terminal Server session from vb.net?
I have to constantlly access our servers to reset ureser that get hung. I
would like to have a web interfave that I can access via my PDA/Phone. It
dose not have to be a wab page that does this. I could write to a queque
that is read by a windows servrice on the TS server and then reset the user.
Thanks.
George. Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100745
ErrorProvider in Datagrid with Comboboxcolumn
Hello,
I have got a Datagrid containing a Datagridtablestyle which is a
comboboxcolumn derived from DataGridColumnStyle. When validating my datagrid
the error icons appear but the tooltip does not appear. Not having a
comboboxcolumn everything is fine.
My first idea is to implement the IDataErrorInfo interface in my
Comboboxcolumn but there is no effect! Can anybody help me?
Thanks Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100741
grid component similar to Excel
Hi all
I need a suggestion.
I have a customer that wants the grids in the application i'm going to
develop lokoking as much as possible as Excel grids.
I suppose he wants the filtering possibilities of Excel in the header of the
grid, the possibility to copy&paste from one cell to the other etc.
My question is:
is there any component that can suit my needs?
something that someone used/has used for large scale apps?
Please give me a suggestion! Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100736
how to point the cursor in specific cell
Hi everybody,
im working in infragistics ultragrid.
Can any one know how to get the cursor in to active cell .
i need to check the empty field before leaving cell.
if its empty then cursor should be forced to come into the empty field.
ive tried in beforedeactivecell event but the cursor is not coming to the
empty field when i changed the cursor to another cell.
below is my code
***
//function returns bool if cell is empty
chekemfield =checkemptyfield();
if(chekemfield ==true)
{
MessageBox.Show("Field must be
entered","V-1550",System.Windows.Forms.MessageBoxButtons.OK,System.Windows.Forms.MessageBoxIcon.Error);
ultraGrid1.ActiveRow=ultraGrid1.Rows[actrowinx];
Infragistics.Win.UltraWinGrid.UltraGridCell acell;
acell = ultraGrid1.ActiveRow.Cells["INSULATION_DUTY"];
ultraGrid1.ActiveCell = acell;
ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode);
//function
public bool checkemptyfield()
{
string duty=ultraGrid1.ActiveRow.Cells["INSULATION_DUTY"].Value.ToString();
string
material=ultraGrid1.ActiveRow.Cells["INSULATION_MATERIAL"].Value.ToString();
if(duty==string.Empty || material==string.Empty)
{
chekemfield=true;
return chekemfield;
}
else
{
chekemfield=false;
return chekemfield;
}
}
****
can anyone help me
--
We cannot find solution but will arise from SuperConscious.
Regards
Prabakar Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100735
infragistics how to get the cursor in specific cell
Hi everybody,
im working in infragistics ultragrid.
Can any one know how to get the cursor in to active cell .
i need to check the empty field before leaving cell.
if its empty then cursor should be forced to come into the empty field.
ive tried in beforedeactivecell event but the cursor is not coming to the
empty field when i changed the cursor to another cell.
below is my code
***
//function returns bool if cell is empty
chekemfield =checkemptyfield();
if(chekemfield ==true)
{
MessageBox.Show("Field must be
entered","V-1550",System.Windows.Forms.MessageBoxButtons.OK,System.Windows.Forms.MessageBoxIcon.Error);
ultraGrid1.ActiveRow=ultraGrid1.Rows[actrowinx];
Infragistics.Win.UltraWinGrid.UltraGridCell acell;
acell = ultraGrid1.ActiveRow.Cells["INSULATION_DUTY"];
ultraGrid1.ActiveCell = acell;
ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode);
//function
public bool checkemptyfield()
{
string duty=ultraGrid1.ActiveRow.Cells["INSULATION_DUTY"].Value.ToString();
string
material=ultraGrid1.ActiveRow.Cells["INSULATION_MATERIAL"].Value.ToString();
if(duty==string.Empty || material==string.Empty)
{
chekemfield=true;
return chekemfield;
}
else
{
chekemfield=false;
return chekemfield;
}
}
****
can anyone help me
--
We cannot find solution but will arise from SuperConscious.
Regards
Prabakar Tag: New Rudraksh Free Web Browser Developed in VB.NET Tag: 100733
Rudraksh is a free Web/Internet Webbrowser. Please check the link to
download it
http://www.planetcreativa.com/rudraksh.htm