|
There are a number of errors in your post (please read the guidelines).
Your title is not acceptable - it is not urgent to anyone but yourself
Your posted code is not inside pre tag and is difficult to read.
You have not indicated where you get the error (what line)
You did describe the error so I can tell you there is an object that is declared but not initialised. Try debugging through the code to identify the line, look for an object that is 'null' where you expect it to have a value.
|
|
|
|
|
hi sir,
i remodified the document..concerning to the code i debugged i am loading the record and then modify data and save.
i checked the rows.count its 1 dataset is not null.
The line that im receiving the error is before calling the save webservice method.
SYS_WS sysws = new SYS_WS();
-->sysws.SaveWindowCompleted +=new SaveWindowCompletedEventHandler(sysws_SaveWindowCompleted);
<br />
Soap exception is thrown :<br />
soap System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
thanks for your help
|
|
|
|
|
|
You can't. How do you expect to get progress notification from Word ?
If you're taking steps in your own code, you show a progress bar, as explained in a ton of articles.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
i am opening the word document from my code.so there must be some way to show progress bar
|
|
|
|
|
Swetha Srinivasan wrote: there must be some way to show progress bar
Sure there is, there are many articles here on progress bars. However what CG was referring to is how are you going to define the progress of the open function. This is why there is a little circular animation used, you have no idea how long it will take.
|
|
|
|
|
|
|
I really am at a loss. What have you tried, anything ? Showing a little busy icon while you open a document is so trivial, that I can't believe you've done anything beyond asking us to write it for you
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
how to disable close button of windows form. i donnot want any one to close the application.
or
In my application i want to disable the closing of the applciation by user. only the administrator can close.
can any one help ..............
This code was posted by me...
|
|
|
|
|
Property ControlBox=false
Use event FormClosing and set e.Cancel=true.
|
|
|
|
|
You can set
Form.ControlBox=false;
but this also removes the Min, Max, and system menu from the form as well.
To grey out the Close box, override the CreateParms getter:
protected override CreateParams CreateParams
{
get
{
CreateParams parms = base.CreateParams;
parms.ClassStyle |= 0x200;
return parms;
}
}
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
you can do it like this
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
but, you need to write methods such as 'MovingForm'or 'ResizeForm' or something else by yourself.
|
|
|
|
|
|
Hi.
What is the difference between Console.WriteLine(); and Console.Out.WriteLine(); ?
Thanks
|
|
|
|
|
There is no difference. Because writing data to the console is so ordinary MS decided to expose the common.
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
Thanks
Md. Marufuzzaman
|
|
|
|
|
Nothing. Out returns the standard output stream for the Console. Both WriteLine methods you posted send their output to that stream.
|
|
|
|
|
Dave Kreskowiak wrote: Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...
I wonder if they just kick people out after three years ? That's how long I was in.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I don't know about that. I've seen some people in for longer, especially those who do a lot of speaking at user gruop meetings and write entire books in their blogs.
Sorry, but my son in more important than that...
|
|
|
|
|
Dave Kreskowiak wrote: Sorry, but my son in more important than that...
yeah, I was active in the local user group, but gave up on it eventually as I couldn't keep up without giving them my life. I did leave after a year, so I kept my MVP for two more years. I still think Vista was a big part of my losing it, but the rest I'd put down to politics, and an agenda in terms of the mix of MVPs they want ( that is, more from China and India ).
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: an agenda in terms of the mix of MVPs they want ( that is, more from China and India ).
If that's true, I'm going to throw up and get out of the business.
|
|
|
|
|
I am woking on a application that uses a global mouse hook.
when the user holds the right mouse down for 2 secs the mouse cursor changes.
the problem is when the user releases the right mouse button the shell right click
menu pops up. and is in the way. how can i keep this from happening temporaly.
Thanks
Regards
modified on Monday, August 31, 2009 9:03 PM
|
|
|
|
|
Eat the mouse down message by not passing it up the hook chain.
|
|
|
|
|
HI ,
I m working with Background worker class . I am trying to load data and while loading it takes time to process data . I am trying to get a progress bar showing the data getting processed in the grid on other thread that is loading that data in the form .I am able to design a forming that shows progress bar loading and then data getting processed. I m just calling the form while loading data but it doesn't process the data it runs its own thread to show progress bar loading. May I know how I can do that.
|
|
|
|
|
The background worker class needs to be set to support progress, then it can send an event to the main thread to report progress.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|