.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

why is the caret freeze?

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :Windows Application
good day to the experts, My form have several maskTextbox and a text box, one of the masktextbox is my starting point of editing and or adding upon clicking add button or edit button.  i put this code at the add/edit button mskDateTime.Enabled=true; mskDateTime.Focus(); mskDateTime.SelectionStart = 0; My problem is the caret wil freeze at the selected masktextbox upon entry, i have to hit the ENTER key twice before i can change the value?.  Sometimes when i hit the ENTER key, the pop-up at the FORM'S icon will shows up,  It seem's that i lost the focus of the form? or at the textboxes? thanks for any explanation regarding this error .madix_t

View Complete Post

More Related Resource Links

DataGridView freeze columns issue

When i try to freeze a column that is off screen (to the right) when the DataGridView's (DGV) first displayed column is the first column in the DGV, the DGV refreshes and displays the DGV from the first column in the DGV. Also, the horizontal scrollbar on the bottom of the page disappears.  This means that i cannot see the unfrozen columns and i cant get over to view the column that I froze. This seems to behave differently from freezing a column in Excel, which freezes the columns you are currently viewing at that moment (not sending you back to the first row) and then the scroll bar applies to the frozen columns like normal. Is there a workaround for this? I tried setting the first displayed index for the column and I get an exception. I'm using .NET 3.5 on an XP machine.

how to Freeze specific columns in GridView

My question is how to freeze specifi columns of Gridview control ?Freeze means...for example say if we are freezing the first column of grid then on scrolling a horizontal scroll bar of the grid will scroll all columns other than the first column. That means the first column will be visible always without any movement. But the first column should move if we use the vertical scroll bar. thanks is advance satish  

How can I hide the caret of a RichTextBox control?

Hello,Can you please tell me how can I hide the caret of a RichTextBox control completely while my app is running?Thanks.

Application Freeze

Hi, I have some questions regarding the Form.ShowDialog() method in C#. Can you tell me what are the possible reasons that can cause it to freeze? Or what can prevent the a dialog from being loaded into memory? (no OutOfMemoryException thrown). I have some code snippets below:     public class OrderForm : Form { private static OrderForm self; public static OrderForm OrderEntryForm() { if (self == null) { self = new OrderForm(); } return self; } private OrderForm() { InitializeComponent(); this.Load += new EventHandler(onLoad); } private void onLoad(object source, EventArgs args) { Console.WriteLine(source.ToString()); } private void cmdBack_Click(object sender, EventArgs e) { DialogResult = DialogResult.OK; } private void cmdTakeout_Click(object sender, EventArgs e) { Hide(); } } public class RegistrationForm : Form { public RegistrationForm() { InitializeComponent(); this.Load += new EventHandler(onLoad); } private void onLoad(object source, EventArgs args) { Console.WriteLine(source.ToString()); } private void button1_Click(object sender, EventArgs e) { // code for begininvoke here (delegates ShowOrderForm) } private void ShowOrderForm() { OrderF

How do you freeze the tablix header row in an Excel export file in SSRS 2008?

So this is totally killing me. I've found out how to make a tablix header row repeat on each page of a PDF export file in SSRS 2008 (which I won't even get started on because all I can say is that 2005 is way better), but I cannot figure out how to make a simple header row of a tablix freeze in an Excel export file.  The tablix is right at the top of the body and spans the entire width of the design area.  How in the world do you get it to freeze in the Excel export file?

wpf grid freeze a row

Hi there,I am developing a wpf application which has the wpf grid. I have used the GridSplitter to split the grid columns; if I change the grid column size using the splitter i need to resize the controls in the wiondow based on the column width. Is there any way to identiy the grid splitter moving (I could not find a event in grid splitter for its moving)?Alternatively, Is it possible to have a row in wpf grid as a freezed row (i.e. it should not scroll down and up in the grid which is inside the scrollviewer)?Thanks in advance,Sekar

Freeze Minesweeper window positiom

I want to fix the minesweeper window to a specific location on the screen when I execute it.  Can this be done easily.   Don Jacobs

Workflow designer causes VS 2010 RTM to freeze when editing build process template.

I have a Dell Studio 1747 laptop with Intel i7 1.6GHz, 6GB RAM, Windows 7 Professional x64. I recently "updated" VS 2010 RC to RTM (removed all of RC and installed RTM). So far so good. Also, I have TFS 2010 RTM on the machine working perfectly, and have two team projects in there. Now, on a given solution, I copied DefaultTemplate.xaml to NewDefaultProcessTemplate.xaml and checked it in. I check it out and open it, and the workflow designer shows up. Then, I "Expand All" and go down to the "Compile, Test, and Associate Changesets and Work Items" section. If I click a subsection to collapse it, the mouse cursor changes to an hourglass and stays like that indefinitely. Sometimes, after a couple of minutes, the action is performed; then, it happens again up to a point where VS completely freezes. I have cleared VS 2010 cache, and have performed a repair on VS 2010 and TFS 2010 (just in case) to no avail. I have even disconnected from TFS right after openning the file, and still the same issue. This is f****** extremely frustrating. I can't do anything on the workflow designer. HELP !!!!!

Freeze the Excel headers in SSRS 2008/ 2008 r2

Hi, How can i freeze the headers while exporting the report to excel? will this works in ssrs 2008 / 2008 r2? thanks in advance...    -- Sathish

How to Freeze page header SSRS 2008


Hi All,

Can someone tell me how to repeat page header on each page, i am using SSRS 2008.

Thanks in advance.

MediaElement - Video freeze after Ctrl+Alt+Delete is pressed



Why do my video frozen when I do Ctrl+alt+delete and go back to the WPF application? Any idea?

string videoSource = "somevideofile";
MediaElement HomePageVideo;

void init()
  HomePageVideo.Source = new System.Uri(videoSource);

  HomePageGrid.IsEnabled = true;
  HomePageGrid.IsHitTestVisible = true;
  HomePageGrid.Opacity = 1;
  HomePageGrid.Visibility = Visibility.Visible;


void play()
   HomePageVideo.Position = new TimeSpan(0, 0, 18);

<Grid Name="HomePageGrid" Visibility="Hidden" Background="Black" Opacity="0">
  <MediaElement Name="HomePageVideo" Width="1280" Height="720" LoadedBehavior=

VSS freeze command disconnects sessions


We are using EMC storage backup. that backup issues a VSS API freeze command for a short period of time, and then unfreeze.

During that freeze period, some sessions  that try to update data get disconnected.

We investigated it and saw that sessions that update an int columns don't get disconnected, but sessions that try to update a larger column like VARCHAR (max) get disconnected.

Is this a "know issue"? is there a way to overcome it and not get disconnected?




How to change the caret shape in Textbox?

I want to show a cartoon caret in my Textbox. I created the caret by calling CreateCaret API, but I can not use it in my Textbox because I cann't get the Textbox handle in WPF.
I need this cartoon effect very much, how can I achieve in WPF?

GUI freeze when WorkerThread is set to sleep


I have a windows forms application built in VS2010 which is responsible for running java scripts.

The scripts are running on a worker thread so the GUI can stay responsive and show log messages from the script.
while script is running, the GUI will loop:
while (!(m_endActionEvent.WaitOne(10, false))) //m_endActionEvent is an AutoResetEvent

During the execution, the script may call a .NET object to execute a delay command.
This is the method that is called:
public void Delay(int delayInMs)

After calling this delay command, the GUI freeze and stop responding to user or updating the log view.
After some investigation, I found that a weird way to wake up the GUI is to invoke a method, it may be any method.
I changed the delay function:
public void Delay(int delayInMs)
this event will call a function that belongs to the main form class:
public void WakeUpGUI()
    CrossThreadOperation.Invoke(this, () =>

How to freeze the background page when modal popup window called



when i call modal popup extender the background is scrolling , i want to freeze the background page then
 is there any properties or any other idea to get this .. 

Hierarchical gridview with freeze columns



I want to make a hierarchical gridview with 1 freeze column.

can any body tell me how can i do this ?

i have freeze a column in general gridview but it was not working on internet explorer 8.

Please help me.

CallBackOnCollectedDelegate error with Application freeze


Dear All,

Programming in managed code was always beneficial and pleasing until I came across this annoying problem. It involves an error that occurs while communicating with unmanaged code if I'm right. Being a hobbyist programmer, I am at a loss as I can't find out what exactly the error is.

The IDE points out Application.Run(new frmReportContainer()); [it once pointed out a statement to change the border style of a text box] as the line with the error, or rather, the CallBackOnCollectedDelegate. I have written an MDI application to write reports. The error occurs in the process of the user filling up the form. I have used masked text boxes and I decided to show a tooltip (and also turn the text box red in case of particular errors). And in the Click and Keydown events of the text box I hid the tooltip (and turned the colour back to normal as well.) 

Here is the code: 

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend