Passing arguments to ClickOnce applications
Hello,
Is there a simple way for passing arguments to applications deployed with
ClickOnce and having off-line capabilities.
My app takes arguments if I start it with the whole path to it
"c:\whole\path\myapp.exe /arg=123" but as I do not know where the
application reside on the client PC's I don't know the whole path.
Is there a way to do so by a system-variable as %the_path_to_your_app% or
what so ever, or is there any work around.
tnx a lot
Jean Paul Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111764
Custom Software Development
iTechArt Group - Custom Software Development and Offshore outsourcing
Company
http://www.itechart.com/
Offshore custom software development company iTechArt - Web site and
Content Management Solutions development, CMS consulting: Ektron,
Drupal and DotNetNuke
iTechArt Group provides high quality custom software development
services and offshore software development. On December 2006, iTechArt
Group became an authorized Microsoft Certified Partner. This means
that our company has been recognized by Microsoft for our vast
expertise and authorized to custom software development; provide IT
service consulting and custom business solutions.
Custom Software Development and Offshore outsourcing Company iTechArt
has worked together since 2003 to design build and deliver .NET Web
Content Management software solutions that help clients meet their
strategic objectives. We are agile oriented development partner able
to consistently deliver solid results.
iTechArt software development team assemblies specialists in the
development of custom software applications and offshore software
outsourcing services.
Working concepts of our company are based on proven approaches and
international standards used for custom software development such as
Capability Maturity Model Integration for Software Engineering (CMMI-
SW). In the same breath we have our own standpoint on software
development process management which is fully effective and
comprehensible for our clients.
iTechArt offers software development in the next main directions:
1. Custom Software Development (Offshore outsourcing for worldwide
based software development companies.)
2. Software Development for Digital Signage (Media content development
and remote displays / information kiosks Web-based software
application management.)
3. Web Site Development (E-commerce solutions, CMS/DotNetNuke/Ektron/
Drupal, Web 2.0/PHP/MySQL/AJAX, Flash/Action script/Flex and many
more.)
4. Offshore Development Center (Dedicated development team of software
developers. Our offshore development centers operate as an extension
to clients' existing software engineering business.)
Contact iTechArt ( http://www.itechart.com/ )about custom software
development, end-to-end software solutions, outsourcing software
development, custom DotNetNuke module development, DotNetNuke
consulting, dotnetnuke hosting, first class Java and .Net developers,
software application design, software testing, Quality Assurance,
functionality testing and defect analysis, performance and stress
testing, usability testing, Microsoft Media Services and Adobe Media
Flash Server solutions, digital signage solutions and custom
development, Ektron CMS400.NET developers, CMS, .NET Web Content
Management software solutions
Web:
http://www.itechart.com/
http://www.itechart.com/Pages/ProductsServices/HowWeWork.aspx
http://www.itechart.com/Pages/ProductsServices/BusinessModels.aspx
http://www.itechart.com/Pages/ProductsServices/CustomSoftwareDevelopment.aspx
http://www.itechart.com/Pages/ProductsServices/DotNetNukeModuleDevelopment.aspx Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111763
how to make list view multiline in winform?
Hi All,
I am developing an application for WM5.0 in C#. I need to show a form
in which i want to show list of details. Now i want to show the form similar
to the form which is shown for the contact detail in WM5.0 device. In which
name and number of the person comes in the same row. Basically the question
is how to maek the list view multiline. MEans every row sontains more than
one line,like in the contacts and also when you click on the particular
contact,it shows the details of the phone numbers. Please help to resolve
this.
Thanks Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111762
Using The TextRender Class
I've been working with the "TextRenderer" class. I'd like to get it to
display text in a PictureBox and add an ellipsis if the box is too small for
all of the text. I've created a form with a PictureBox (picTest1) that's too
small for all of the text and this is the "Paint" event for the PictureBox:
Private Sub picTest1_Paint(ByVal sender As Object, _
ByVal e As System.Windows.Forms.PaintEventArgs) _
Handles picTest1.Paint
Const MSSG As String = "This is the PictureBox text. " & _
"It is very long in order to test the wrapping and " & _
"ellipse functions of the TextRenderer class."
TextRenderer.DrawText(e.Graphics, MSSG, _
Nothing, e.ClipRectangle, Nothing, _
TextFormatFlags.HorizontalCenter _
Or TextFormatFlags.Top _
Or TextFormatFlags.WordBreak _
Or TextFormatFlags.WordEllipsis)
End Sub
It works fine on a single line, but when I add the "WordBreak" flag, the
ellipsis disappear. The documentation says you can't combine the
"ExpandTabs" flag with one of the "Ellipsis" flags, but it doesn't say that
this won't work with "WordBreak".
Am I doing something wrong?
Is there any other technique for rendering the text and adding an ellipsis
if the PictureBox is too small? Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111755
Reference Caller's Application Variables from DLL
I want to be able to access some global variables (defined in a
winforms "ApplicationEvents.vb") from a DLL.
I assume I need to pass a reference to the application object to the
DLL. If so, how would I define it in the DLL and how would I set it
in the main app?
Is there some other way to get a reference to the DLL instantiator's
application object from inside the DLL?
Thanks. Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111754
Debugging a Windows Service
Hi guys,
I'm trying to do just this, debug a Windows Service. I tried some ways I
found around the net but I wasn't able to get it to work.
This I found at http://www.codeproject.com/dotnet/DebugWinServices.asp and
seems like a nice approach, but when it talks about "<Your Service's Primary
Method Here>" I don't know what to do... =/
Any help, will gonna be VERY welcome.
//#if (!DEBUG)
// System.ServiceProcess.ServiceBase[] ServicesToRun;
// ServicesToRun = new ServiceBase[] { new Service1() };
// ServiceBase.Run(ServicesToRun);
//#else
// // Debug code: this allows the process to run as a
non-service.
// // It will kick off the service start point, but never
kill it.
// // Shut down the debugger to exit
// Service1 service = new Service1();
// service.<Your Service's Primary Method Here>();
// // Put a breakpoint on the following line to always catch
// // your service when it has finished its work
//
System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
//#endif
Thanks,
Charly. Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111753
wierd grid problem - 2003
I have inherited an app, so I'm using the 2003 IDE...
I'm trying to change the grid size, however, it doesn't matter whether it's
2,2 or 200, 200 or whether Snap to Grid is on or off
It keeps the same grid size and snap to grid is always on.
Anyone have a fix for this, or at least any ideas? Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111751
finding files in adirectory
hi,
how to get the number of files in a directory...including the files in the
subdirectories...
is there any default method of Directory class..
please help out Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111749
help on regex
i want a reg exp for the below format..
1.0.00.0000
i tried as follows
\d\.\d\.\d{2}\.\d{4}
but it's accepting -ves numbers also(-1.0.00.0000)
I want only +ve numbers in my input..how do i check it? Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111748
autoscaling of winforms
hi,
i'm a newbie to winforms....
i've designed few forms...
but when the resolution is changed to lowest number..
i'm not able to see certain buttons on my form...
how do i fix this issue...
do i need to set any properties on the winforms or controls?
please do help out.... Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111747
Redirecting keys using ActiveX RDP control in C#
Hi,
I'm writing a simple Rdp client in C#. In the Remote Desktop connection
provided with windows, we can configure to redirect the winkey, and
other hot keys such as alt+tab under the Local Resource tab. But I've
been unable to do the same in an AcvtiveX RDP Client. Reading on MSDN i
thought the following will work -
private void Form1_Load(object sender, EventArgs e)
{
userControl11.axMsRdpClient1.Server = "testserver";//put server here
userControl11.axMsRdpClient1.Connect();
userControl11.axMsRdpClient1.AdvancedSettings2.EnableWindowsKey = 0;
userControl11.axMsRdpClient1.AdvancedSettings2.HotKeyCtrlEsc = 0x23;
}
but it doesn't seem to work.So every time I hit the windows key, its the
local computers windows menu that pops up. I want the remote computer's
windows to do so. Same with the alt+tab and other escape sequences
Anybody knows how to do this?
Rahul
*** Sent via Developersdex http://www.developersdex.com *** Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111743
Usercontrol validating with messagebox and tabcontrol
For a Windows forms application I use the following construction.
I have a form with a TabControl. On each TabPage there is a custom user
control. The custom user control gets some parameters from the form, to set
the data of the user control. In the validating event of the custom user
control I check or there are any changes made by the user. If so, a message
box is shown with the question â??Save changes?â??
The validating event is fired on tab switch and form close, that is what I
want. But the problem is, on tab switch the message box is shown, but after
that the tabs donâ??t switch any more. Is there a way to achieve this goal,
user controls that a self responsible for their data saving? Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111741
MessageBox in the middel of the application form, not in the middle of the screen - .net 1.1 , VS 2003
Hello,
I have the following problem, which seems to be simple, but I see no
solution.
If I have for example:
MessageBox.Show(......)
this messagebox is allways in the middle of the screen. But on a screen with
1920x1200 pixel this is not very good because the application
is for exampel in the top right corner.
Is there any way to have the messageBox in the middle of the parent form?
Must run under .net 1.1 / VS2003.
Thank you for any help.
Rolf Welskes Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111738
Problem with one touch deployment
I can create a new project, add a button that displays a MessageBox and then
publish it to the localhost. This works as expected.
However, when I publish an existing application, I get no errors yet the
publish location is empty! This existing project was once copied across from
another machine but I have been publishing it to a file location with no
problems, when I switch it to a URL, it doesn't work.
The publish URL is http://localhost/test - note this works with a new
project just not with the existing project. I have tried a filesystem path
"c:\inetpub\wwwroot\test" and I get the same problem.
Any help much appreciated...
--
Best regards
Mark Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111735
autoscaling of winforms
hi,
i'm a newbie to winforms....
i've designed few forms...
but when the resolution is changed to lowest number..
i'm not able to see certain buttons on my form...
how do i fix this issue...
do i need to set any properties on the winforms or controls?
please do help out.... Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111732
String Alignment problem
Friends,
My Problem is related to writing a text file from a database
using .Net. in a particular string format.
I have a dataset with a table, let suppose in this table there are
three fields.
- Code
- Description
- Amount
At the time of writing a text file I use in a for loop -
String.Format("{0,10}{1, 40} {2,-10}", DS.Table(0).Row(i)
("Code").ToString(), DS.Table(0).Row(i)("Description").ToString(),
DS.Table(0).Row(i)("Amount").ToString())
But the problem is related to the alignment. Data comes like in
following format:
01Code 01Desc 2000
02Code 02Desc 3000
03CodeABC 03Desc 4000
04xyz 04Desc 5000
I want Data comes in following proper alignment format.
01Code 01Desc 2000
02Code 02Desc 3000
03CodeABC 03Desc 4000
04xyz 04Desc 5000
So anybody knows the solutions of this problem, please and please
reply imediately, its urgent.
Rahul Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111727
Problem with returning to XP with dual boot vista.
I recently got Windos Vista, and I wanted to have it without losing windows
XP, so I installed it on a seperate partition as a dual boot. Windows Vista
works fine, but when I try to get back into Windows XP, I get a message
saying the Hardware Ajustment Layer has been corrupted (HAL.DDL) I put in my
Win XP disk to try to run recovery console, and it does not even detect that
I have windows XP. All my user data is still on the C: drive, while vista is
on F:, and it is locked from me being able to access it from Vista due to the
password I put on XP. I even tried altering the access controlls. (cacls
icacls), and I can not get to my data. Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111726
Database backup from the application code ...
Hi, The task I want to do is backing up the sql server 2000 database which
my application connect to from a client machine and saving this backup on
the server machine. Is it possible to do that ? and if yes what code can I
write to accomplish this task ? Thank you. Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111725
Need help in identifying a control
I have seen controls like the PropertyGrid that have a label titled
Properties and have a Pin and cCose button on the label. What control is
used to create the label with a pin and close button?
Bill Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111723
preventing the label from getting focus?
hi ,
I have a groupbox with labels and textboxes , just like a regular
form.
I've set the tabindex for each consecutive textbox to tabindex of the
prior textbox +1. The labels have high indexes , but they still
recieve focus after every textbox Is there any way to prevent this?
Thanks
Gideon Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111715
From Console::WriteLine() to message box
/*
I am trying to use message box instead of Console::WriteLine() to upgrade my
code from just using the console to using GUI.
In the bottom 2 lines, #1 works, but I have hard time to make # 2 works. Can
anybody give a hand here to make the information to be shown on the message
box instead of being shown on the console.
I am using visual C++ .NET 2003
Thanks
*/
#include "stdafx.h"
#include <gcroot.h>
#using <mscorlib.dll>
using namespace System;
using namespace System::Runtime::InteropServices;
typedef void* HWND;
[DllImportAttribute("User32.dll", CharSet=CharSet::Auto)]
extern "C" int MessageBox(HWND hw, String* text,
String* caption, unsigned int type);
__gc class MClass
{
public:
int val;
MClass(int n) //costructor
{
val = n;
}
};
class UClass
{
public :
gcroot<MClass*> mc;
UClass(MClass* pmc) //constructor
{
mc = pmc;
}
int getValue() //get function
{
return mc->val;
}
};
int _tmain()
{
Console::WriteLine(S"Testing...");
//Create a managed object and assign 3 to it
MClass* pm = new MClass (3);
//Create an unmanaged object and assign the value of the manged object (pm)
to it
UClass uc(pm);
Console::WriteLine(S"Value is {0}", __box(uc.getValue())); //<-------- This
will work # 1
//MessageBox(0, uc.getValue(), S"Message Box...", 0 ); //<------- this will
not work # 2
return 0;
} Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111711
TabPage Control OnClick Event
I am trying to run code that binds a DataGridView control on a TabPage. I
inserted the code in the TabPage_Click event, but when the tab is clicked,
the event never fires.
I understand it is necessary to set the StandardClick style to enabled. I
can't seem to find a StandardClick style on the TabControl, but I used the
following code in the Form_Load event.
this.SetStyle(ControlStyles.StandardClick, true);
this.UpdateStyles();
Still no click event...
Am I doing something wrong?
--
Regards,
Fred Chateau
http://hotelmotelnow.com Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111709
host WindowsForm control in MFC
Hi:
We have a problem when host a Windowform control in MFC. The logic we used
just as Chris Sells article:
http://msdn.microsoft.com/msdnmag/issues/03/03/WindowsForms/#S4
Everything went good. The control hosted in a MFC dialog. After open/close
the dialog for couple of times, then we have following error:
Managed Debugging Assistant 'ReportAvOnComRelease' has detected a problem in
'v:\Barracuda\Console\Bin\Barracuda.exe'.
Additional Information: An exception was caught but handled while releasing
a COM interface pointer through Marshal.Release or Marshal.ReleaseComObject
or implicitly after the corresponding RuntimeCallableWrapper was garbage
collected. This is the result of a user refcount error or other problem with
a COM object's Release. Make sure refcounts are managed properly. The COM
interface pointer's original vtable pointer was 0x78307604. While these types
of exceptions are caught by the CLR, they can still lead to corruption and
data loss so if possible the issue causing the exception should be addressed
If it happens in the debug, you click the Continue button for couple of
times, it can recovered from the exception.
Anyone have idea what is going on?
Thanks in advance. Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111708
Displaying new controls and threads.
I have a .NET UI threading question.
I know the general rule that UI contents can't be changed from another thread.
Here's my specific situation.
I built a DLL that contains a unified GUI layout for several projects we're
working on.
The layout is basically a Form with a TableLayoutPanel (1 row, 2 columns),
call it myMainTableLayoutPanel.
Col0 contains a TreeView that we'll use to display different steps that
application takes. The TreeNodes for the tree are provided by the individual
groups when they use the DLL.
Col1 contains essentially a blank panel where each product group will plug
their own content.
As far as this main DLL is concerned, accessing the TreeView (giving it the
contents, changing color/checkboxes of the nodes) and displaying "something"
in the blank panel on Col1, all follow the delegate threading model (use
delegates and Invoke() methods).
Now we come to the individual groups that are writing what essentially is a
plugin for the DLL.
lets say I write a plugin that will display calculation of Pi in the blank
panel of Col1.
To do that, I have created a PiCalculationPane (name it piCalculatorPane)
that has some label used to print out how many digits of Pi have been
calculated so far. Basically, I am talking about dynamically changing the
contents of the pane that is displayed in blank panel.
The application that displays the blank panel runs in its own thread. How
far do I have to follow the UI threading model? If I want to update the Pi
calculation in the piCalculatorPane, do I just call
piCalculatorPane.Invoke(delegate fcn) and within fcn update the data, or do I
have to chain the Invoke call down to myMainTableLayoutPanel?
Sorry for a long and winded question,
Thanks,
Andrei Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111704
Seeing the selected node after TreeView expansion
Hi there,
I have a treeview withmany nodes within it, at many levels. I have
writen a function which collapses the list at a certain node level and
another function for expanding the list out fully. The problem is that
after I expand the list, the end (bottom section) of the expanded list
comes into view, resulting in the fact that sometimes the selected
node is not visable after expansion. I wish to adjust the view so that
the selected items appears at the top of the treeview's view (window).
How would you solve this?
Barry. Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111701
NumericUpDown.Select(Int32, Int32) does not work - Bug? (.Net 2.0)
I want to select the Text in a derived NumericUpDown control when the
user enters the control by overriding OnEnter() and within this method
calling this.Select(0, this.Text.Length). However, the behavior is not
as I expected - nothing happens. Further more, Visual Studio does not
offer the Text Property in its AutoCompletion, even though the Text
property exists in the NumericUpDown Class. Does anybody have any ideas
why this strange behavior occurs with the NumericUpDown control?
Regards
Stephan Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111700
-Ann- File Explorer components for Vista
Hi
The component suite for full-featured shell exploring has been released.
Comprehensive support of Vista GUI (Views, Icons) specifics is added.
News is at: http://www.pisyslabs.com/TrueFolderExplorer.aspx
--
Thanks
- Jerry Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111699
Data Binding in depth
Hello,
I'm moving from asp.net to windows forms programming
and I have some difficulties in learning data binding..
(DatabindingSource, TableAdapter, etc etc)
Can someone tell me about some free tutorial on this argument?
thanks
M.A. Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111697
XML overwitten by clickonce
Hi,
In the application Iâ??ve wrote, a netwerk folder is used,â?¦ this folder can
be different for users working in another domain, company,��
My question: once the user have selected the network folder, the data is
written to a xml file, but the moment an application update is available,
this xml file is overwritten with the original one.
How can I solve this??
--
Best regards
Luc N Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111696
How does DataGridView get its tool tip text?
Where does DataGridView get its ToolTip text?
I've got a DataGridView in which I've placed a RichTextBox derived column.
Most of the time, the tool tip gets its text from a call to DataGridView's
CellFormatting method. Because the cell is RichText, I have to strip out the
RTF formatting and so I have a function that does that and it is embedded in
the CellFormatting method. However, there are times when the bubble help
displayed appears to come from some place other than CellFormatting. The
bubble help can sometimes display the raw RTF. So- what are the possible
places that a DataGridView can go to get its tool tip text?
--
Richard Lewis Haggard
General: www.Haggard-And-Associates.com
Please come visit here for a couple thousand good giggles!:
www.haggard-and-associates.com/Humor/humor.htm Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111690
Label Printing Application
I need to convert a label printing application from Froxpro 9 to c# 2. The application is a simple sdi app with a small preview window of the label on
it. I'm not sure where to even begin to do this with c#. Any ideas? Here is the screenshot of the current application written in Foxpro 9.
http://deciacco.com/blog/wp-content/uploads/2006/12/lblprint1.gif
Thanks. Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111687
Form Level Keyboard Handling
I'm having a little trouble creating a global keyboard handler with the
functionality I need. I want the form to handle all the keystrokes, which
works perfectly when the form's KeyPreview property is set to true. However,
there are instances when if a certain control has focus, I want the keyboard
handling to be controlled by that control.
Is there any elegant way to do this?
I thought about setting the form's KeyPreview event to false in the
control's Enter event handler and true in it's Leave event handler, but that
didn't seem elegant to me.
Any help would be appreciated. Thanks.
Sergio Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111678
Call system application to open a specified file.
Hi,
In my program, client is allowed to select a image file from open file
dialog. And I am required to provide a preview button, when clicking it,
system program like paint should be called to open that file.
May you tell me how to implement that. Thx
zlf Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111677
DateTimePicker.Value
Hi,
I have DateTimePicker control on a winform. When user selects a date
in that control, I am getting proper value using DateTimePicker.Value.
But I want to know in case user does not select any date and closes
DateTimePicker control by pressing escape key. Here in this case also
I am getting today's date even if user did not select any date in that
control.
I should get null or something else that will let me know that user
did not select anything and closed the DateTimePicker by pressing
escape key.
Any idea how to do that?
Thanks! Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111671
sending message to parent form
Hi all,
I have a usercontrol I place on different parent forms. When I double
click on something on the usercontrol I want to invoke a method on
those parent forms. I also need to pass an object from the user
control to the parent control when calling that method.
how can I do this best?
Thanks,
Stijn Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111666
Form proprties - Is it a bug or .. ?
Hi, I have a simple winform with a background that work fine. When I set
both the RrighTtoLeft to Yes and RightToLeftLayout form proprties to True,
the form background disappear. How can I solve this ? Thank You. Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111664
How to print a panel?
Hi, I have many content panels in my application, client asks me to add a
print button in those panels. Once clicked, the content of panels will be
printed out.
There is a control in .NET 2.0 could meet my requirement? Thx Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111661
Backup database from code: Access denied on user specific directories
I want to backup a sql express database from my windows forms C# code. I can
do this by running a sql command "BACKUP DATABASE TO..." (or using SMO) and
I can save the backup file to any subdirectories of C:. The problem I have
is that I want the user to be able to save the backup file to any location,
including C:\...documents and settingsm\my documents...
However, the file access for these directories (user specific) are more
limited and the BACKUP DATABASE command fails due to Access Denied.
Should I mess with the ACL to grant NETWORK SERVICE read/write permissions
on the directory they want to save to? I am not very comfortable doing this
as I don't like the idea of changing the ACL security on someone's system.
The simplest solution is for me to restrict where they can save the backup
file (to subdirectory of C:\), but if there are any other solutions, I'd
like to hear them.
Thanks. Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111653
using DateTimePicker with null entries
Hi
I have a windows form that includes a datetimepicker control. The form gets
its data from a ASP Web service.
The database field that supplies the data to the DTP control can have null
entries.
Unfortunately the DTP control either displays the correct date when there is
data in the field but when there is no data (null), it displays todays date.
Is there any way of geting the DTP control to display nothing when there is
no entry?
Hoping somebody can help.
Kind regards
Ross Petersen Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111652
DateTimePicker
I am using DateTimePicker control in my form and I wanted this control
to be shown in open state (like user clicked it to open) when form
loads.
Any idea how to do that?
Thanks! Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111649
Problems with the Windows Forms Designer
Hello all,
I've been working on a project in VC++.NET 2005 which contains a form
with a custom control. Today when I opened the project, the designer
complained:
Could not find type 'VIAWorkspace.Toolbar'. Please make sure that the
assembly that contains this type is referenced. If this type is a part
of your development project, make sure that the project has been
successfully built.
Now, I've rebuilt the solution. When it runs the toolbar appears as I
expect it to, but the IDE refuses to correct the problem.
How can I fix this?
Evan Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111647
"Save As" window is now full screen
How can I restore the smaller size of the window, as it normally is, in the
case where I have accidentally made the "save as" window full screen, to the
point where I cannot even find the edges of the page or move it by pulling
the blue bar at top? Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111646
JOB ANN: IT / Programming - Dallas / Fort Worth, TX
All - Please allow me to bump in here. You all have helped me in the past
with my various questions / issues, so I thought I'd try to open this up to
anyone interested.
Thanks,
Brian
Systems Specialist to join expanding corporate aviation consulting firm
headquartered in Grapevine, Texas with additional offices in NJ, CT, IN, KS
and MD. We are a leader in the business aviation market with a staff of 25
and growing. Our financial modeling, in-house technicians and transactional
expertise form the backbone of our services and partnerships with our
clients.
This take-charge candidate should have at least five years of experience in
deploying and maintaining inter-office systems to include computers,
communication systems, software and architecture, system testing,
write/code/implement .NET applications. Strengths in Windows forms, Web
programming and database, Windows servers, Windows clients are preferred.
Knowledge and experience with SQL, Pivotal Software, Blackberries, and
Mobile Phones. Some travel will be required to maintain and integrate
office systems.
Essential Duties and Responsibilities:
. 25% - Perform systems administration of networked systems and remote
users, technical support and maintenance of installed systems and
application software.
. 5% - Develop and maintain detailed technical knowledge of specifications,
operation, and diagnostic of products while maintaining familiarity with
competing products.
. 40%- Design, build and implement applications and back-end databases
using various programming and scripting languages.
. 5% - Create technical and functional specifications for Internet and
Web-based projects.
. 5% - Determine new technologies to utilize based on company's needs.
. 15% - Analyze existing workflow environments and assist with setting up
and configuring new installations to fit into workflow models.
. 15% - Conduct orientation to new users regarding applications of
software.
. Adapt to changes in the work environment, manage competing demands and
deal with frequent change, delays or unexpected events.
Our team is dynamic and energetic and we take pride in providing a great
working atmosphere for our employees. We offer a competitive salary and
benefit package to the right candidate. Please email your resume, contact
details and salary requirements to jobs07@leas.com for consideration.
Posted to:
microsoft.public.dotnet.framework
microsoft.public.dotnet.framework.windowsforms
microsoft.public.windows.server.general
microsoft.public.windows.server.networking Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111644
Missing characters when reading from a file
Hello,
I have the following reader function :
public static string[] fileReadAllLines(string strFileName)
{
ArrayList content = new ArrayList();
using (StreamReader sr = File.OpenText(strFileName))
{
string input;
while ((input = sr.ReadLine()) != null)
{
content.Add(input);
}
sr.Close();
}
return toStringArray(content);
}
which also can be replaced with :
public static string[] fileReadAllLines(string strFileName)
{
return File.ReadAllLines(strFileName);
}
Both those methods remove all special characters (é,è,ø,æ,...) from the
stream, what to do to get them ?
Thanks Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111641
Cancelling Form.Load event
I load some data from the database during the forms load event. If this load
fails, then I need to bring up the error message and abort loading the form.
How do I do this in .NET 2.0? There doesn't seem to be a way of cancelling
the forms construction from within the load event. Also if an error occurs I
don't want a blank form displayed under the error message that then vanishes
after the user clicks OK.
Any help much appreciated...
--
Best regards
Mark Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111640
TreeNode editing and clipboard problem
I have Cut/Copy/Paste in the menu, that works with my TreeNode derived objects and not with text. When someone enters the editing of the node text, TreeView process the Ctrl+C and puts the marked text into clipboard.
I wish my functions do the same with menu Cut/Copy whenn the node is editing (it should do the same as shourcuts Ctrl+C). I can copy whole node text, but not only the marked text or the text that was just changed.
How can i do this, especialy if the text is editted and only a pice is marked?
Thanks Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111639
Controls Hide/Show display performance
Hi
I have a quite complex GUI in C#, where i save space by using many
Panels, Pictures which hosts controls.
When the user needs a function, i hide the "olds" panel, pictures..
then show the necessary ones.
All these visible=true/false are killing my app in terms of display
performance and give vey bad impression.
Can someone help me how to improve ?
Thanks
Jonathan Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111629
Display html page in winform(.NET 2.0)
Hi,
I have some html codes, and I need to present the rendered html page to user
in winform program. I cannot find a helpful control in .NET framework. How
to do that in .NET 2.0?
Thank you Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111626
combobox with command items
Hi
I want to have a combobox with some commands in it and a data source.
Basically the list should look like
command1
command2
-----------
data1
data2
data3
To solve this problem i decided to derive my own combo box form
standard ComboBox control.
I exposed 2 properties in this class
1) List of CommandItems
2) ArrayList as data source
Now i tried to merge these 2 sources as 1 source and set the data
source for the base class.
I also set the DrawMode to OwnerDrawVariable and subscribed to
DrawItem event.
I thought that i would be able to draw the items on my own. This way i
am able to insert the separator between command items and the data
items.
However when i do this i am unable to set the DisplayMember of the
combobox
it doesn't work at all.
Additionaly i also am thinking even if i am able to do that it has to
be different for data list and the command list.
Any ideas on how can i achieve this ?
~Abhishek Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111617
Shown method for User control
Hi,
Is there any event like Shown for User Control?
I am instantiating User control once and adding and removing to and
from parent form panel dynamically. I wanted a event which would fire
every time the User control is shown (when added to parent from
panel) like Shown event is for Form.
Thanks. Tag: Control.CheckForIllegalCrossThreadCalls Tag: 111616
Hi,
What are the consequences of setting the
Control.CheckForIllegalCrossThreadCalls to False on application that
uses threading?