|
I am getting the following error (but only sometimes, and not on the computer where I have developed the application)
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Windows.Forms.Control.WaitForWaitHandle(WaitHandle waitHandle)
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at System.Windows.Forms.Control.Invoke(Delegate method)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.HideSplashScreen()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.MainFormLoadingDone(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The problem is that I can't debug the application on the machines that I get the error on. I don't get the error on the machine where vs 2005 is installed.
I am hoping someone can translate this better than I can to help me identify the problem.
Thanks
Marc
|
|
|
|
|
This is just a wild guess, but it looks like you are doing some sort of splash screen. Did you by chance use a splash screen image that came with vs 2005? I would guess that whatever image you are using may need to be added to your solution.
Hope that helps.
Ben
|
|
|
|
|
I am using a splash screen based on the template in vs 2005. I have substituted my own image, but there may be a variable in the code that is causing the issue. I will check into this and check for errors, as I played with the code generated by the sample splash screen. The image displays correctly on the splash screen, but it was added as resource and not loaded onto the users computer. The error remains quirky as it does not always occur.
Thanks for the advice.
Marc
|
|
|
|
|
Hello,
I am using VS 2005.
I have a simple report that displays data that is loaded into a dataset.
I have a field called subject. However, if this field has many characters some of them don't get displayed (cut off).
I have checked by viewing if all the text is contained in the database field in sql server 2005. And yes, all the characters are in there.
I have also checked just before the reports loads by getting the data out of the field, and yes, all characters are there.
So i think it must be something in the report to stop it from displaying the characters.
I have set the property of the field to can grow, is there something else i need to set?
Many thanks for any help,
Steve
|
|
|
|
|
hi steve,
i m not sure but try this
i think can grow property increase the height of the fields.so u can increase the width of field at design time so your text is fully displayed. also check font size.
Hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
Anyone have any suggestions on best way to add a single routine to run MS Access Compact and Repair within a VB.Net 2005 program?
|
|
|
|
|
Dear All
I want ask about how to set and remove (Folders and Files Permission)
I want special user to access some folders and files and not to access all
folders and files.
Please I need details since I don't have any feedback about this subject.
|
|
|
|
|
Hi,
I wonder if anyone can help me or put me on the correct path. I am trying to write a program that will reset my active directory password. Is there any sample code that is out there that deals with active directory procedures.
|
|
|
|
|
Hi there everyone,
I'm trying to do what is basically a String.Replace but not quite.
I have a string e.g. "{Team}/{Team} Index" and a hashtable of replacement string values, e.g. "Wigan Athletic", "Manchester United".
I need to loop through the hashtable and replace the first occurrence of the substring "{Team}" with "Wigan Athletic", and then on the next iteration replace the substring "{Team}" with "Manchester United".
The problem I've got is (obviously) String.Replace replaces all occurrences of "{Team}" the first time through, and using regex every expression I write seems to select both occurrences.
Is there a way to stop the regex matching after hitting the first match? Or otherwise some method of doing this that I'm just missing?
Any help much appreciated
Thanks,
James
|
|
|
|
|
There are several versions of the Regex Replace method available. One allows you to specify the maximum number of replacements to make.
|
|
|
|
|
Thank you very much, I noticed that about 5 seconds before you replied.
Thanks,
Jim
|
|
|
|
|
Is this an old question or a new one? Or has your account been hacked?
|
|
|
|
|
Looks to me like something went wrong at CodeProject.
|
|
|
|
|
Dunno. It showed up in moderation yesterday.
|
|
|
|
|
i was declaring the API and got the error
Public Shared Function <DllImport("kernel32")> _
abc(byval str as string)as integer
problem is in <
identifier expected.
|
|
|
|
|
The DllImport attribute has to go on the line before the function declarartion, not in the middle of it...
|
|
|
|
|
it's an api
and the function abc is nothing but i provided as an example.
there is some other function.
|
|
|
|
|
yaa,i know function abc is an example
use this code
<<system.runtime.interopservices.dllimport("kernel32.dll")> _
Public Shared Function abc(ByVal s as string) As Integer
End Function
use following link
http://pinvoke.net/default.aspx/user32.GetWindowLong
Hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
thanks boss .it is working
|
|
|
|
|
How to detect Internet connection is live of disconnected in VBS
Me and Program both have logical waves.
|
|
|
|
|
Can some1 please help me with the VB.NET code to insert/save a picture/image to a sql server db. Please also inclide the one that will help me retrieve those images.
jtc
|
|
|
|
|
i get this exception at the Open() method while connecting to a remote SQL server :
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
while i have
Windows server 2003 on both systems.
SQL Server 2000 on both systems.
application is developed in visual studio 2005
thank you for a quick response
|
|
|
|
|
How to validate the text in the text box when entering an email-id?
sri
|
|
|
|
|
With a regular expression, generally. There are lots of examples on the web of regex for email, Expresso comes with one ( and you should download it as it's invaluable for regex ), and then handle the leave event of the control, so you validate the input via the RegEx class when the user has finished typing.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I want to display some invoice details in a datagridview (dgv). I want the user to be able to click a check box, which I've added to the dgv, so that they can indicate whether they want the invoice amount or invoice total to be used in calculations on that invoice. There are boolean properties called UseInvAmount and UseInvTotal in the invoice object. I can get the check box to appear in the grid okay, but clicking on it does not make a check appear, even though the cellContentClick sub fires when the checkBox cell is clicked. I've got code that handles the 2 events: cellValueNeeded & cellValuePushed, and I've also added 2 event handlers to the dgv (DataGridViewCellEventHandler & DataGridViewRowsAddedEventHandler) and registered the dgv's "with events", but the cellValueNeeded and cellValuePushed code are not triggered by clicking on the checkboxes. Can anyone tell me what I've left out or how to make a checkbox click on & off, and work independently of another one?
Pauki
|
|
|
|