Win Form never gets focus?!?
Hi all,
In my winform application, I want to check on certain moments if my
winform has focus. If so, some code will be executed. I noticed
however, that the winform never gets the focus, even when it clearly
has focus. How is that possible? What setting could I've messed with
that causes my winform never to get focus, even when activated?
void Form1_Activated(object sender, EventArgs e)
{
// always returns 'False' in my project (when I test
// in new project, it returns 'True' however!!)
Console.WriteLine("ACTIVATED & " + "this.Focused = " +
this.Focused);
}
Thanks in advance for your answers.
Frederik Tag: spam post deleted Tag: 116399
System.Diagnostics.Process
Hi all,
How do I call my windows application from a windows service project ?
My solution consists of a windows project, a service project, a setup
project and 2 class projects. After installation, my output produces all the
relevant files in a folder "Install" on my c: drive.
I got the code which doesn't produce any output...
public partial class Service1 : ServiceBase
{
protected override void OnStart(string[] args)
{
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = @"C:\Install\Test1.exe";
proc.StartInfo.CreateNoWindow = false;
proc.StartInfo.WorkingDirectory = @"C:\Install\";
proc.EnableRaisingEvents = true;
proc.Start();
eventLog1.WriteEntry(proc.StartInfo.FileName);
}
}
I want the Service1 to call my Test1.exe file (which will be installed into
the same folder), and run it. Is it possible to do that ? If not then how
should I approach the issue ?
Thanks for replying.
regards,
Andrew Tag: spam post deleted Tag: 116398
App bombs in production
Hi
I have a vs 2003 win form app which runs fine in IDE but once it is deployed
via setup it bombs on start-up screen and wants to send MS the error report.
This happens on multiple pc including the development machine so problem is
probably not with pcs.
What is the problem and how can I fix it?
Thanks
Regards Tag: spam post deleted Tag: 116390
How to launch an app with double-click on filename
I have an Windows Form application that has child Forms in it. I have a
constructor in the main form that takes a filename as an argument an creates
a child form from the data in the file. If I launch the app from the
command prompt with a filename as an argument, it works fine. But if I
launch the application by double-clicking on the filename in Windows
Explorer the child form is not created.
I thought that double-clicking a filename was the same as using the command
prompt with the file name as an argument at the point where the application
is launched, but apparently this is not true. Do I have to handle the two
situations differently in my code? Or do I do something at the OS level
that will make this work as I thought it should?
TIA, Dick Tag: spam post deleted Tag: 116388
Stopping a RichTextBox updating
I am trying to do an operation where I find and highlight all
instances of a string in a RichTextBox. E.g.
pMatchesFound = Regex::Matches(pRichTextBox->Text, pStr, options);
for (int i = 0; i < pMatchesFound->Count; i++)
{
Match ^m = pMatchesFound[i];
pRichTextBox->SelectionStart = m->Index;
pRichTextBox->SelectionLength = m->Length;
pRichTextBox->SelectionColor = SystemPens::HighlightText->Color;
pRichTextBox->SelectionBackColor = SystemPens::Highlight->Color;
}
However the user sees the text scrolling through the RichTextBox as
all the strings are highlighted, which isn't what I want. I've tried
to prevent this with SuspendLayout but it doesn't work.
Is there a way to stop the RichTextBox updating while I'm highlighting
all the strings?
TIA,
KK Tag: spam post deleted Tag: 116380
TableLayoutPanel and FlowLayoutPanel resizing question
Hello,
I have a 3-row table layout panel, each row of which contains a flow layout
panel. For some reason getting the table and its children to auto-resize
properly (and the flow panel's children to re-flow after) is proving
difficult. Anyone have experience with this, or know of a thorough resource
for information on resizing and anchoring controls? MSDN can be a little
sparse with info at times.
Dave Tag: spam post deleted Tag: 116378
FlowLayoutPanel clipping question
Hello,
I have a flow layout panel that I am programmatically adding a bunch of
check box controls into. Everything works pretty well except when a check
box control's label is wrapped to two lines. In that case a few pixels of
the top and bottom of the label is getting clipped off, which is a little
ugly. I'm going to see if there's a way of preventing wrapping, but that may
not be a good solution, so anyone have any ideas on preventing clipping?
Dave Tag: spam post deleted Tag: 116377
Removing Flicker while deleting rows in TablelayoutPanel
Hi,
I am programmatically deleting N rows ... at runtime .
My code is some what like below ;-
TableLayoutPanel tb = new TablelayoutPanel;
tb.SuspendLayout () ;
DeleteRow ( nRowPos ) ; // my function to delete row .. see logic below
tb.Resumelayout(false) ;
tb.PerformLayout() ;
private void DeleteRow( nRowPos )
{
// Get the controls within the table & Delete them
// tb.RemoveAt( nRowPos )
tb.RowCount --;
// Shift the controls & rows up ....
}
I have also tried by setting the Visible property to false and resetting it
to true afer deletion.
I want to get rid of the flicker which happens during deletion and painting .
Is there any way of minimizing the flicker if not completely stopping it.
Thanks in advance .
Sujay
--
Sujay Ghosh
Bangalore, INDIA Tag: spam post deleted Tag: 116376
Focus problem in ToolStrip
Hi All,
I have a simple windows .net C# form with a toolStrip and a textBox.
ToolStrip has 5 buttons in it. Hitting tab from a previous control brings
focus to ToolStrip and first item in toolStrip gets focus. Now hitting tab
takes focus to next control on form. If i hit Shift+tab to bring focus back
to toolStrip, last item in toolStrip gets focused. Is this a bug or i am
missing something?
Thanks,
Salim Tag: spam post deleted Tag: 116375
app.config file
Hi,
I have a question about the app.config file. I am using EnterpriseLibrary
v3.1.
1) From what I read on this forum, I can only have 1 app.config file in my
windows application. One of my dll projects have applicationSettings :
<applicationSettings>
<ABCdll.Properties.Settings>
<setting name="ABCConnectionString" serializeAs="String">
<value>ABCConnectionString</value>
</setting>
</ABCdll.Properties.Settings>
</applicationSettings>
When I deploy the application, will it automatically copy this
<applicationSettings> from my dll project app.config to the mainproject's
app.config ? If not, how shall I approach this issue ?
Thanks for your reply.
regards,
Andrew Tag: spam post deleted Tag: 116373
low refresh rate
I using a new laptop running Vista and have Nvidia GeForce 7600 graphics
card. I'm trying to connect my TV to this computer using Svideo. It has
worked in the past however I must have changed a setting somewhere? On my
second computer with Xp it all connects right!
So it's all connected but the display on the TV is just rolling lines as
though it is scrambled. On the monitor setting, the refresh rate is stuck on
25Hertz Interlaced.
Is there a way of forcing a higher refresh rate? or is there another
setting I need to change?
I have been seraching for months for an answer to this question. HELP PLEASE! Tag: spam post deleted Tag: 116371
MDI and Form.TopMost Problem
Hello Group,
I am using .NET framework 2.0
I have a Windows Forms application. Using a menu item, I can set the TopMost
property of the MDI-Parrent form to true. Works fine.
I also have a "Windows menu". The menu has an entry for all open MDI windows
automatically (set MdiWindowListItem to the menu entry). Works fine as well.
Now the problem: if I have more than 9 windows open, only 9 windows are
displayed on the menu, plus an additional item "more windows..". Selecting
this item a window with a list box is displayed with all windows. The
problem: if the MDI parent window has TopMost set to true, this window is
displayed behind the MDI parent. This is especially a huge problem, if the
MDI parent window is maximized, because then I cannot move the MDI parent
window (the window in the background has the focus).
The only chance a user has in this case is to use the Task Manager to kill
the application --- which is never good for a commercial app.
Does anybody have an idea? What I would need is kind of a hook so I can do
something before the window with the list of windows is displayed.
Regards
Norbert Ruessmann Tag: spam post deleted Tag: 116370
FormClosing Event
FormClosing Event doesn't Fire when I kill The app with the Task Manager!!
Any Ideas Why??
what I'm Trying to do here is I'm trying to Cancel the Form Closing by
setting the
e.cancel = True
But never get it to work when I kill the App with the Task manager. Tag: spam post deleted Tag: 116362
USB Ports stop working
Today my printer stopped working and the message of "One of the USB devices
attached to theis computer has malfunctioned and windows does not recognise
it" came up when I reinstalled the printer. I also notice that all my
devices connected via USB hava all stopped working (blue tooth
keyboard/mouse, external hard drive and external DVD burner). I have been
running these USB devices for about 12mths now with no problems and today it
all crashed. My operating system is Windows XP home. Anyone able to help me
please.
--
Windows XP Novice NYC Tag: spam post deleted Tag: 116361
google adsense website for sale
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
<TITLE></TITLE>
</HEAD>
<BODY>
<P>Dear friends,</P>
<P>Earn from google adsense. A complete ready made google adsense website
package for sale @ Rs. 1000 only. </P>
<P><STRONG><FONT face=Verdana color=#400040 size=2>100 Content Rich Adsense
Web Sites containing more than 16000 web pages for Rs.
1000/only.</FONT></STRONG></P>
<P><STRONG><FONT face=Verdana color=#400040 size=2><A
href="http://www.googlead.xtreemhost.com/">click here </A>for sample website
</FONT></STRONG></P>
</BODY>
</HTML> Tag: spam post deleted Tag: 116352
Reference database application request
Hi
I am looking for a sample master-detail database winform application that
handles multi-user issues like concurrency violations to inspect its code
for good db development practices. Would appreciate link to any such app.
Many Thanks
Regards Tag: spam post deleted Tag: 116351
What FW version to target
Hi
I am developing a database app in vs 2008 and I don't need wpf. What fw
version do I need to target?
Thanks
Regards Tag: spam post deleted Tag: 116346
Sample database app
Hi
I am looking for a sample database app that demonstrates how a reasonably
written database app should look like in code. Any recommendations would be
appreciated.
Many Thanks
Regards Tag: spam post deleted Tag: 116342
Change Default Image in Custom Control?
When a custom control is compiled, and then added to the VS.Net toolbox, it
has a 'gear' type image.
For the life of me, I've searched on the net over and over and can't find
how to change that image, inside the control itself, when you're building
it.
Anyone got a vb.net tutorial/website page/whatever, which tells how this is
accomplished? Tag: spam post deleted Tag: 116341
DataGridView CellPainting draw border when active cell
I'm trying to paint a border around specific cells in a DataGridView. This
works fine unless the cell becomes the active cell. When the cell becomes
active the code i have in CellPainting is overwritten by some other paint
routine which gets called after CellPainting. Any suggestions for a solution?
Thanks! Tag: spam post deleted Tag: 116340
re-position of a text label
Hi,
I have a simple question and I can't seem to find what I want after
google-ing.
I create a form with size, say 800x500. I add a text label such that
it is at the center (400, 50). In the form properties I set
WindowState to Maximized. However, when I run the code, the text label
did not automatically adjust so that it can move to the center. My
question is what properties of the text label do I need to change?
Thanks,
TAT Tag: spam post deleted Tag: 116339
re-position of a text label
Hi,
I have a simple question and I can't seem to find what I want after
google-ing.
I create a form with size, say 800x500. I add a text label such that
it is at the center (400, 50). In the form properties I set
WindowState to Maximized. However, when I run the code, the text label
did not automatically adjust so that it can move to the center. My
question is what properties of the text label do I need to change?
Thanks,
TAT Tag: spam post deleted Tag: 116338
One Click Deployment FPSE?
I tried to Publish my application, but I was told my website did not have
FrontPage Extensions installed
However, FPSE is no longer downloadable through Microsoft from what I've
found.
How can I get this downloaded, so I can use the Publish Feature?
(also, is this what they mean by Click Once Deployment?) Tag: spam post deleted Tag: 116337
file io
Hi,
I've a requirement wherein I need to close an opened file programatically.
How can I acheive it/
Thanks
Vijaya Tag: spam post deleted Tag: 116335
Hndling Exceptions From DrapDrop Handler
Hi All,
How do i catch the exception that has been thrown from my DragDrop event
handler.
The exception is fired from the following function.
private void richTextBox1_DragDrop(object sender, DragEventArgs e)
{
try{
///some code....}
catch(Exceptio e){
throw ex;}
}
I have tried with ThreadException
Application.ThreadException += new
ThreadExceptionEventHandler(ThreadExceptionHandler);
I have also tried with Unhandled Exception handler.
// Add the event handler for handling non-UI thread exceptions to the event.
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler(UnhandledExceptionHandler);
Both of these do not catch the exception.
Can some one suggest me ? Tag: spam post deleted Tag: 116332
Problem with windows datagrid in .net 1.1 with tablestyle.
hello All,
i have following problem with datagrid,
I have windows datagrid. I have one custom tablestyle applied to it.I
have delete funtionality on this datagrid that when user select row
by
clicking on the rowheader and pressing delete on keyboard. I have
confirmation over delete key press to ask user whether to delete or
not
row. Now the problem is when i select any row and press delete button
i can see the popup and if user clcks "No" here i am rebinding the
grid with same datasource but after rebinding if i click on the next
row the content in the first column of previously selected row for
which we have done delete get vanished.
I have 2 observations
1) If we have datagrid with all above functionality but without
tablestyle the problem never happen.
2) As we add tablestyle into it problem will be there.
//C# code For without tablestyle.
private void Form1_Load(object sender, System.EventArgs e)
{
for(int i=0;i<2;i++)
{
if(i==0)
{
DataColumn dc=new DataColumn();
dc.Caption="Name";
dc.ColumnName="Name";
dc.MaxLength=50;
dt.Columns.Add(dc);
}
else
{
DataColumn dc=new DataColumn();
dc.Caption="Age";
dc.ColumnName="Age";
dc.MaxLength=50;
dt.Columns.Add(dc);
}
}
createRow();
//myGrid1.TableStyles.Add(AddTableStyle());
myGrid1.DataSource=dt;
}
private void createRow()
{
DataRow dr=dt.NewRow();
dr[0]="Ashish";
dr[1]="25";
dt.Rows.Add(dr);
DataRow dr1=dt.NewRow();
dr1[0]="Tee";
dr1[1]="25";
dt.Rows.Add(dr1);
DataRow dr2=dt.NewRow();
dr2[0]="Helllo";
dr2[1]="25";
dt.Rows.Add(dr2);
}
private void myGrid1_RowDelete()
{
MessageBox.Show("You can't delete this row");
myGrid1.DataSource=null;
myGrid1.DataSource=dt;
}
private DataGridTableStyle AddTableStyle()
{
DataGridTableStyle ts=new DataGridTableStyle();
ts.MappingName=dt.TableName.ToString();
for(int y=0;y<dt.Columns.Count;y++)
{
DataGridTextBoxColumn col=new DataGridTextBoxColumn();
col.MappingName = dt.Columns[y].ColumnName;
col.HeaderText = dt.Columns[y].ColumnName;
col.Width = 150;
col.TextBox.MaxLength=50;
ts.GridColumnStyles.Add(col);
}
return ts;;
}
//C# code with tablestyle
private void Form1_Load(object sender, System.EventArgs e)
{
for(int i=0;i<2;i++)
{
if(i==0)
{
DataColumn dc=new DataColumn();
dc.Caption="Name";
dc.ColumnName="Name";
dc.MaxLength=50;
dt.Columns.Add(dc);
}
else
{
DataColumn dc=new DataColumn();
dc.Caption="Age";
dc.ColumnName="Age";
dc.MaxLength=50;
dt.Columns.Add(dc);
}
}
createRow();
myGrid1.TableStyles.Add(AddTableStyle());
myGrid1.DataSource=dt;
}
private void createRow()
{
DataRow dr=dt.NewRow();
dr[0]="Ashish";
dr[1]="25";
dt.Rows.Add(dr);
DataRow dr1=dt.NewRow();
dr1[0]="Tee";
dr1[1]="25";
dt.Rows.Add(dr1);
DataRow dr2=dt.NewRow();
dr2[0]="Helllo";
dr2[1]="25";
dt.Rows.Add(dr2);
}
private void myGrid1_RowDelete()
{
MessageBox.Show("You can't delete this row");
myGrid1.DataSource=null;
myGrid1.DataSource=dt;
}
private DataGridTableStyle AddTableStyle()
{
DataGridTableStyle ts=new DataGridTableStyle();
ts.MappingName=dt.TableName.ToString();
for(int y=0;y<dt.Columns.Count;y++)
{
DataGridTextBoxColumn col=new DataGridTextBoxColumn();
col.MappingName = dt.Columns[y].ColumnName;
col.HeaderText = dt.Columns[y].ColumnName;
col.Width = 150;
col.TextBox.MaxLength=50;
ts.GridColumnStyles.Add(col);
}
return ts;;
}
How can i i prevent value to be vanished in datagrid with tablestyle. Tag: spam post deleted Tag: 116331
Out alignment on UI windows form using .net 1.1
Hi,
I've window form application using vb .net 1.1, deployed on 20 PCs was ok.
Found only 1 pc has problem on UI. Please have a look at
https://dynbms.sslpowered.com/dynbms.com/images/samples/problem1.JPG
https://dynbms.sslpowered.com/dynbms.com/images/samples/problem2.JPG
It looks textbox out of form. Does it because of VGA driver or any advice
please?
Thank you very much.
Adhie Tag: spam post deleted Tag: 116330
DataGridView column sorting glyph not shown
Hello,
I am using a DatGridView in virtual mode and unbound data where i listen for
CellValueNeeded events to fill the grid with data. I also want to sort the
data by pressing on the columns which is why i listen to
ColumnHeaderMouseClick as well. It works fine, but the problem is that the
sorting glyph (i.e. the sorting order triangle image) is not visible on the
column header if the column size is too small.
I have tried all the AutoFill options available for the column size/width
but none of them seem to be working. The sorting glyph "length" is simply
ignored and
column width is not adapted to include to glyph (i have to manually resize
the column size to see the glyph).
Is there any automatic way of handling this or do i have to calculate the
column width manually by taking into consern the column header text length,
font size and so on? Tag: spam post deleted Tag: 116329
TypeConverter for object type Properties
I have a property with a member of type object. I am showing the value of
this property in a PropertyGrid but depending on the type of the object I
want to use the correspondant TypeConverter. Here is an example of what I
mean:
public byte[] Test
{
get { return new byte[100]; }
}
public object Test2
{
get { return new byte[100]; }
}
If I have both properties in a property grid, Test will be shown as an
expandable item with the text "Byte[] Array".. if I expand the item I will
be able to see all of the elements in the array. However, Test2 will only
show the text "System.Byte[]" and I will have no way of reading the
elements of the array.
Of course the property of type object will not always contain a byte[].
How can I provide the standard functionality for each type?
Thanks Tag: spam post deleted Tag: 116328
modifying the windows logon dialog
I need to somehow modify the windows login dialog. I've seen other
applications do this such as
http://www.tools4ever.com/products/self-service-reset-password-management/
My needs are similar but slightly different. Can this be done in dot net? I
prefer to do it in dotnet, but I can do it in other languages likc c++ if
anyone can point me to some resources to help get me started. Tag: spam post deleted Tag: 116325
Cascade non-MDI Forms
I have code that cascades multiple forms that belong to my application. They
are not MDI so my understanding is that the accepted method is to call
CascadeWindows in user32.dll and use the desktop as the owner window. The
problem is that it's un maximizing all other windows regardless of whether
or not I pass their window handles to the method. Is there another way to do
the cascade that doesn't have this side effect? I know I could just change
all the locations. But it's the algorithm for determining the window size
and z-order that I'm not yet comfortable re-writing. Any help is
appreciated.
Thanks,
Brian Tag: spam post deleted Tag: 116324
Controls in TablelayoutPanel not getting arranged properly
Hi,
I am programmatically creating a TableLayout panel with 8 columns and 21
rows .
Within the cell I am placing some labels and checkboxes .
Then I dynamically add more rows , by calling my function UpdateTable( ).
private TableLayoutPanel tb = new TableLayoutPanel ().
private void UpdateTable( )
{
tb.SuspendLayout() ;
tb.GrowStyle = TableLayoutPanelGrowStyle.AddRows;
// assume LastRowCount = 21 , as I have added 21 rows earlier
// hence I increment LastRowCount in the for loop initialization
for( int i = LastRowCount+1 ; i< 20 ; i++
tb.RowStyles.Add( myRowStyle );
tb.ResumeLayout(false );
}
Strangely enough the following things happen
1) Calling UpdateTable() for the first time - Only one row gets added ;
2) Calling UpdateTable () for the second time - The checkboxes are getting
redrawn in DIFFERENT positions ... which is not desired .
For the second one, I think pending layouts are getting performed intenally
by the layout engine ...
Can anyone help me in getting answers to these problems .
Thanks in advance ,
Sujay
--
Sujay Ghosh
Bangalore, INDIA Tag: spam post deleted Tag: 116322
Can't get ComboBox to show that it has focus
I have a WinForm with many text boxes and several combo boxes. I also
have a toolstrip with cut, copy, and paste icons. When a user clicks
one of the buttons (cut/copy/paste), I want to get the current active
control and if it is a textbox or a combobox, to then copy the
selected text to the clipboard (or do the appropriate option based on
the button). I can get all of this to work just fine with the
textboxes. To figure out the active control, I am using the
GetFocus() pointer from "user32.dll". This is the only way I could
find to do what I needed to do. Below is an example of how my code
looks.
[DllImport("user32.dll")]
public static extern IntPtr GetFocus();
private void btnCopy_Click(object sender, EventArgs e)
{
FocusControl = Control.FromHandle(GetFocus());
if (FocusControl != null)
{
if (FocusControl.GetType().ToString() ==
"System.Windows.Forms.TextBox")
{
TextBox myTextBox = (TextBox)FocusControl;
if (!string.IsNullOrEmpty(myTextBox.SelectedText))
{
Clipboard.SetText(myTextBox.SelectedText);
}
}
else if (FocusControl.GetType().ToString() ==
"System.Windows.Forms.ComboBox")
{
ComboBox myComboBox = (ComboBox)FocusControl;
Clipboard.SetText(myComboBox.SelectedText);
}
}
}
This works great for textboxes, but if the focus is on a combobox, the
FocusControl object is null, so it doesn't fall into the if
statement. I've tried using the ActiveControl method, but couldn't
figure out how to drill down to the actual control that had focus.
All it gave me back was the control that the textbox was on, not the
actual textbox control. I'm sure I could iterate through each child
control, but I figured there had to be an easier way. Any help would
be greatly appreciated. Tag: spam post deleted Tag: 116320
Unable to choose Tab Feature
Hello...I just installed IE7. I am running WinXP SP2. I am not able to open
a "New Tab", this feature is grey-shaded in the File dropdown toolbar. I am
only able to choose "New Window" feature. Does anyone know of this problem?
Can this be fixed?
--
reg Tag: spam post deleted Tag: 116319
How to write IExtenderProvider control for .NET CF?
Hi,
I searched all over the net and I can't find no info how to do this,
other then this post http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=158930&SiteID=1.
I would like to rewrite this example
http://msdn2.microsoft.com/en-us/library/system.componentmodel.iextenderprovider.aspx
for Compact Framework, and I would like to do it VS2005 way.
VS2005 suggests to use .xmta file which will produce
*.PocketPC.asmmeta.dll file. The article I found also suggests to
create yet another library where the designer would be.
Does this mean that now instead of distributing two libraries (one for
runtime one for design time) I have to distribute three (an extra
*.PocketPC.asmmeta.dll)?
I have a hard time to believe it.
Can anyone shed some information on this?
Thank you.
Rastio. Tag: spam post deleted Tag: 116318
Web timesheet 100$ for unlimited users
Web timesheet 100$ for unlimited users
Source code is available in just US$250
by http://www.livetecs.com
TimeLive Web timesheet suite is integrated suite for time record, time
tracking and time billing software. The TimeLive suite of products
deliver a time tracking solution for professional service providers.
Each of our products has been designed to meet the time tracking
needs of specific segments of the service provider market, including
both time tracking and time and billing applications.
TimeLive on-demand timesheet solution helps organizations eliminate the
paperwork and manual processes associated with time collection.
TimeLive is available in two different flavors. Hosted version and
downloadable version. Downloadable version required certain system
requirement to install on local server. Whereas hosted version is already
installed on our fully managed server on state of art datacenter.
Free Lite version is available in both hosted and installable version.
Here are some key features of "TimeLive":
Online TimeSheet
-------------------
- Track your contractor and employee's timesheet using full featured and
easy to use Time Entry tool. You can then use detailed and summarized
view
of all time records using different tools.
- Time Entry Day View for entering full day timesheet in just one server
hit.
- Time Entry Week View for entering full week timesheet in just one server
hit.
- Organization setup like Departments, Locations, Roles
- Different type of Off day monitoring like Sick Days, Vacations etc.
- Client Setup with multiple client contacts and departments.
- Project Setup
- Task setup with multiple assignees for single task.
- Audit Trail
- EMail notification of different timesheet related activities to users.
- Different billing type setup like Hourly / Task based / Call based
- Timesheet approval
- Customizable Timesheet Approval Paths
(None,Administrator,Project,TeamLead, External User (Client))
- Reports with all possible filter selection to get your required output.
- Detail Timesheet Report
- Different timesheet summary reports for based on Client, Project,
Employee, Date
- Timesheet Approval status report
- Reminders to employee for their pending entries.
- Role wise billing rates.
Billing
-------
- Different billing rate pick option like employee own billing rate, role
based billing rate, project specific billling rate.
- Billing rate history
- Billable / non billable hour tracking
- Different billing related reports
Expenses Tracking
------------------
- Manage and monitor your project expenses with easy to use integrated
TimeLive Expense management tools.
- Expense entry view for employee to enter their expenses occurred on
project.
- Billable / Unbillable expenses.
- Detail Reports for monitoring expenses
- Different summarize report by Project / Employee / Expenses.
- Customizable Approval of Expenses with different approval options.
-- Team Lead
-- Project Manager
-- Administrator.
-- Client (External User)
- Expenses approval monitoring.
Project Monitoring
---------------------
- Full featured tool to manage your projects and their task with single
integrated tool.
- Nested Task with task hierarchy.
- Tracking of project status
- Assigning of projects to multiple employee
- Tracking of project tasks
- Different dashboard view for Project Manager, Team Lead and Team Member.
- Different report to track and monitor overall project status.
Attendance
------------
- Web based Attendance system to record and monitor all employee attendance
using simple / fully featured tool.
- Time In
- Time Out
- Off Day reporting for different purpose like Sick leave, vacation etc
- Working Day setup
- Daily Attendance report
- Summary reports for employee off days to track employee Sick
leave,vacation etc.
- Detail report employee off days.
Other Features
----------------
- Exportable reports in Word, PDF and XLS file.
- Downloadable / Hosted version
- Free full featured basic version upto 5 users
- Unlimited disk space for all plans
- International date formats supported.
- Role based security.
- Multiple currency support.
- Fully customizable UI with ability of changing company logo.
Developed in ASP.Net 2, Microsoft ASP.Net Ajax 1.0, SQL Server 2005 Tag: spam post deleted Tag: 116317
Best practice for saving objects owned by objects
Let's say that I have a class called Customer and a class called
CustomerAddress.
Now, further suppose that the Customer class has a property called
_CustomerAddresses, which is List(Of CustomerAddress).
Now, there's a form to edit a Customer, on which the user can click on
a SAVE button to save changes, or on a CANCEL button to cancel any
changes that they have made. In addition, on the Customer form, the
user can make changes to the different CustomerAddress's that belong
to the Customer (i.e. add, edit, remove). A separate form is used for
adding or editing a CustomerAddress. For example, the user could
select a CustomerAddress, in a grid, and then click on an EDIT button,
at which point the Customer Address form is shown modally. On the
Customer Address form, the user can also click on SAVE or CANCEL.
Now, here's where the question comes in. The way that I am
implementing this is that, if the user clicks on CANCEL for the
Customer, any adds, edits, or deletes of CustomerAddress records
associated with that Customer are disregarded/discarded.
Is this the "usual" way to implement functionality like this? Tag: spam post deleted Tag: 116315
ApplicationURI is null
Linda,
Joe said that he had already selected the "Allow URL parameters to be
passed to application" option before publish.
I'm having the same problem. I'm not trying to use the URL parameters
- I just want to get the deployment URL. I've selected the "Allow URL
parameters to be passed to application" option, but the ApplicationURI
is still null.
Any suggestions? Thanks.
-Matt Tag: spam post deleted Tag: 116313
Problems with UNICODE Characters for superscript 4,5,6,7,8,9
Hi,
We have an application that has its own character map. Everything is working
fine until yesterday. We got a new requirement which was to add superscript
numbers from 0-9. Numbers 1,2,3 are display correctly.
The issue is the 0, 4-9. With those characters I got the square on my Rich
Text Box.
The funny thing is, if I copy/paste one of them from Windows Character Map,
after that all character will work using our character map.
The way I'm passing the characters from our C.M to the Rich Text Box is the
follow:
Clipboard.SetText(CType(sender, UIButton).Text, TextDataFormat.UnicodeText)
and
Me.m_CurrentRTB.Text =
Clipboard.GetData(System.Windows.Forms.DataFormats.UnicodeText)
Does anyone had this issue before?
Thanks for the help
Alonso Tag: spam post deleted Tag: 116312
Databinding to a Custom Control's Textbox
I have a custom control that comprises of a label and a textbox. I have
added the Design Time Properties for the designer to select the DataSource
and DataMember, those seem to work fine at Design Time. But at Run Time the
TextBox remains empty. How do I "Wire Up" the DataSource/Datamember so that
the data shows in the TextBox?
This is the portion of the code Im using to set the DataMember/Source
properties:
[Editor("System.Windows.Forms.Design.DataMemberListEditor,System.Design,
Version=2.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a",
typeof(System.Drawing.Design.UITypeEditor))]
public string DataMember
{
get
{
return m_DataMember;
}
set
{
m_DataMember = value;
}
}
[AttributeProvider(typeof(IListSource))]
public object DataSource
{
get
{
return m_DataSource;
}
set
{
m_DataSource = value;
}
}
Thank you for any help or tutorials on the subject!
Ron Tag: spam post deleted Tag: 116311
Start a thread and forget about it?
Hi,
Is it OK to start at thread so it does its work, and just forget about it.
Will it automatically dissapear when it is done? For exampel, like this:
Thread t = new Thread(ReportingForm.StartProcessingReports);
t.SetApartmentState(ApartmentState.STA);
t.Start();
No Join or anything like that.
regards
Carl Tag: spam post deleted Tag: 116306
TableLayout Panel - Adding multiple controls in a particular cell
Hi,
I want to add multiple controls in a TableLayout Panel , say location 1,1 .
But MSDN tells that there can be only one child control in each cell .
I referred Petzold's book, and he says it can be done by using
SetCellPosition( ) but it does not guarantee that the controls shall be
placed .
Is there any way I can put an array of child controls within each particular
cell .
Thanks in advance ,
Sujay
--
Sujay Ghosh
Bangalore, INDIA Tag: spam post deleted Tag: 116305
Priniting to File With a Dynamic FIle Name
I need to print to disk with a dynamic output filename. I have read some
material that would seem to indicate that the way to do this is to use the
Microsoft defined DOCINFO structure and the StartDoc function in the Win32
API. I have checked my Win32 API Bible and found no such reference.
Q.1 - Is this the best approach?
Q2 - What would the code look like? Tag: spam post deleted Tag: 116303
Document.GetElementsByTagName(...) returns no elements
I have C# .NET 2.0 code that behaves incorrectly only when run on one Windows
Server 2003 (32 bit) machine with .NET 2.0 installed. And then, only the
first time. And then, only when run from a CDrom. It will not fail on the
local disk or network share.
I have a WindowsForms application with a WebBrowser class on a form.
In the DocumentCompleted event, I do...
HtmlElementCollection divTags =
webBrowser1.Document.GetElementsByTagName("div");
These documents are static docs loaded from the application directory.
The document which has the DIV tag is loaded and the collection shows a
count of zero the first time it is run on this machine from a CDrom. After
that, it finds the DIV tag everytime. If I reboot, we are back to not finding
it the first time. Right before the GetElementsByTagName() method, I dumped
the Document.Text to the log file - indeed, there is the DIV tag.
Any ideas? Tag: spam post deleted Tag: 116300
WPF Data binding & Threading
Dear reader,
Im having a threading problem using WPF data binding on a custom
dependency object with a clr object as data source and trying to
update the data source from another execution context. The data source
consists out of a simple class which implements the
INotifyPropertyChanged interface.
<code>
// The clr object used as a data source.
public class MyDataSource : INotifyPropertyChanged
{
private string _data;
public MyDataSource(string info)
{
_data = data;
}
public string Data
{
get
{
return _data;
}
set
{
_data = value;
this.NotifyPropertyChanged(value);
}
}
private void NotifyPropertyChanged(string data)
{
if (this.PropertyChanged != null)
{
this.PropertyChanged(this, new PropertyChangedEventArgs(data));
}
}
public event PropertyChangedEventHandler PropertyChanged;
}
</code>
The custom dependency object exposes one dependency property which I
want to bind to the Data property of the data source. Below the code
for illustration:
<code>
// the custom dependency object.
public class MyCustomObject : DependencyObject
{
public static readonly DependencyProperty DataProperty =
DependencyProperty.Register("DataProperty", typeof(String),
typeof(MyCustomObject), new PropertyMetadata(String.Emoty, new
PropertyChangedCallback(OnPropertyChanged)));
public static void OnPropertyChanged(DependencyObject d,
DependencyPropertyChangedEventArgs e)
{
MyCustomObject obj = (MyCustomObject) d;
Console.WriteLine(String.Format("Property '{0}' changed; OldValue
'{1}', NewValue '{2}'.", e.Property.Name, e.OldValue, e.NewValue));
}
public MyCustomObject()
{ }
public string Data
{
get
{
return (string)this.GetValue(DataProperty);
}
set
{
this.SetValue(DataProperty, value);
}
}
}
</code>
And finally the binding definition:
<code>
MyDataSource dataSource = new MyDataSource("Hello World!");
MyCustomObject customObj = new MyCustomObject();
Binding binding = new Binding("Data");
binding.Mode = BindingMode.OneWay;
binding.Source = dataSource;
BindingOperations.SetBinding(customObj, MyCustomObject.DataProperty,
binding);
...
// Causes the dependency property to change.
dataSource.Data = "Greetings World!";
</code>
The above code works fine. But when I try to update the "dataSource"
object from a WCF service callback (duplex mode) it doesn't update the
dependency property. I think it as something to do with the execution
context being different. Can anybody shed some light on this matter
and explain me why this binding doesn't work this way and maybe come
up with a solution.
I'm running the above code within a console application (STA) compiled
with the .NET Framework 3.5 version in Visual Studio 2008.
Kind regards,
Alex Koning. Tag: spam post deleted Tag: 116299
Autoexit of textbox
I would like to create an autoexit of a textbox when the number of character
entered is equal to the maximum length.
Is there a way I can programmatically add a Tab key into my own form?
The next field that I need to goto may or may not be a readonly field,
depending what kind of transaction the person tries to enter.
--
Arne Garvander
Certified Geek
Professional Data Dude Tag: spam post deleted Tag: 116298
Drag & Drop - multiple controls
I've recently migrated from VB.NET to C# and have 3 questions about drag/drop
differences between the two languages...
Question 1) I'm tweaking a C# app (DotNet 2.0) to support file drag/drop.
I have 2 textboxes with Browse lookups, but I realized some users prefer to
drag drop files from folders on the desktop. The examples I've seen are for
1 drop location on the windows form.
Are there any examples of implementing drag/drop for multiple controls?
Question 2) Take a look at the following function header:
private void txtFileToProcess_DragDrop(object sender,
System.Windows.Forms.DragEventArgs e)
{
//my code here...
}
What ties this function as the handlerto the txtFileToPRocess control?
Question 3) How do I add event handlers on the fly? This was trivial in
VB.NET; you simply selected the control (in the dropdown), then the event
(in an adjoining dropdown).
Thanks, Tag: spam post deleted Tag: 116297
Popup window on top of another popup
Hi guys,
I have a grid editor, with cells (DevExpress). I have a custom cell
edit, which contains two other edits. When I click the cell, I get the
first popup edit. When I click the other controls contained in this
popup, another window pops up. The problem is that the moment I click
inside the second popup, the first one disappears, and as a
consequence, the second one disappears too.
Is there a way to keep the first popup visible, while the second one
is editing?
Thanks in advance,
Cosmin Tag: spam post deleted Tag: 116296
DoEvents for a specific thread?
Hi,
I have a thread (not the main) in my app that draws GUI. It's a STA-thread,
and it seems OK. Though I would like to process its message queue, like
Application.DoEvents (for the main thread). It should have a message queue
since it draws GUI. How do I "do a DoEvents" for a specific thread?
regards
Carl Tag: spam post deleted Tag: 116290
Different Image for Control
I've built a control that will be placed in the VS.Net 2005/2008 toolbox,
but it shows up with a default image that's not too attractive.
What can I do, in order to add my own image? Tag: spam post deleted Tag: 116284