|
put semicolon at the end of the statement
this.k=k;
dhans
|
|
|
|
|
it is my exam's question
I AM WORKING ON "PLOTTER ROBOT"(FYP).
|
|
|
|
|
HI ,
i want to know how to create a class which has an INSERT method for several forms.
for example: i have 3 forms , FORM1,FORM2 FORM3.
FORM1 has 3 textboxes.
FORM2 has 7 textboxes .
FORM3 has 20 textboxes.
Each textbox contrl has datas with differen datatypes.i want to create a common class with INSERT method which inserts data in different table for its corresponding calls made by every forms.
i had already done this task but seperate INSERT methods for individual forms.
now if i try to user a common insert method for the 3 form with diff contrls and datatypes, i cant get a clear idea to accomplish this task.
can anybody give me solution.
thanks
KSSK
|
|
|
|
|
|
First "Happy new year to all"
I am using listview control of c#.net 2003,
And when i am updating the list with data from database it giving the
System.NullRefrenceEXception error.
What can be the problem?
Is the data not fetching up from DB, or I am not linking it properly?
And How can i analyse this?
|
|
|
|
|
happy new year to u to .......>
its me sid
|
|
|
|
|
sindhutiwari wrote: its me sid
thanks for wishes
I know its only u
It will be more helpful if u had reply the query
|
|
|
|
|
humdumof wrote: It will be more helpful if u had reply the query
Wow, that was rude. You expect people to help you when you act like that?
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
its because the app is nt getting the reference to the control . please check whether you added and the control. check its initialization also.
My small attempt...
|
|
|
|
|
if i dont bind/call the DB function, then its displaying the blank list properly, but when i call the function it shows error.
Are you saying, that the data from database not binding properly to list items??
|
|
|
|
|
you are getting error where you try to give data right???
the error means the reference to that list is not there
My small attempt...
|
|
|
|
|
Removed due to rudeness by OP.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
modified on Wednesday, January 02, 2008 9:03:30 AM
|
|
|
|
|
Hi,
As per the following code, I am getting an error in the line i.e.
gchRequest = GCHandle.Alloc(Settings, GCHandleType.Pinned); -- Object contains non-primitive or non-blittable data.Please help me anyone if knows
byte[] byteData = null;
string CH, GET, PATH, XML;
m_Client = new MCLClient();
UTF8Encoding utf = new UTF8Encoding();
byte[][] Settings = new byte[4][];
Settings[0] = new byte[aName.Length];
Settings[1] = new byte[aMethod.Length];
Settings[2] = new byte[aPath.Length];
Settings[3] = new byte[aData.Length];
//encode
utf.GetBytes(aName, 0, aName.Length, Settings[0], 0);
utf.GetBytes(aMethod, 0, aMethod.Length, Settings[1], 0);
utf.GetBytes(aPath, 0, aPath.Length, Settings[2], 0);
utf.GetBytes(aData, 0, aData.Length, Settings[3], 0);
gchRequest = GCHandle.Alloc(Settings, GCHandleType.Pinned);
MPACKET Packet = new MPACKET();
//fill packet with send buffer
Packet.m_nSize = 10240;
Packet.m_pData = gchRequest.AddrOfPinnedObject();
|
|
|
|
|
Hi
I want to find the Last Modifed Date of the Word Document I have. I am using a code sample available from Internet but unable to get the date. The code sample was to get Author Property. I changed it to get Last Modified Date. But it is throwing Exception "Exception thrown while Invocation". I guess the problem is in the string I am using to get the Last Modified Date.
Please find the code Sample and give me a solution.String "Prop" is the key to find Last Modified Date.
object Missing = Missing.Value;
object BuiltInProps;
object CustomProps;
Word._Document Doc;
Word.ApplicationClass MyWord = new Word.ApplicationClass();
MyWord.Visible = true;
Doc = MyWord.Documents.Add(ref Missing, ref Missing, ref Missing, ref Missing);
BuiltInProps = Doc.BuiltInDocumentProperties;
Type TypeBuiltingProp = BuiltInProps.GetType();
//Setting a built-in property
string Prop = "Modified Date";
string PropValue;
object ModifiedProp = TypeBuiltingProp.InvokeMember("item", BindingFlags.Default | BindingFlags.GetProperty, null, BuiltInProps, new Object[] { Prop });
Type TypeModifiedProp = ModifiedProp.GetType();
PropValue = TypeModifiedProp.InvokeMember("Value", BindingFlags.Default | BindingFlags.GetProperty, null, ModifiedProp, new Object[]{}).ToString();
The sample I got from the site
http://www.java2s.com/Code/CSharp/Office/ModifyWordDocumentProperties.htm
Kindly reply to me fast
With Regards,
Abraham Chethuvelil
|
|
|
|
|
hi,
abraham i m new to this.
still a suggestion its better to use system registry to store and retrive the last modified date of the document
i hope this will work
regards
sindhu tiwari
Always Innovative
|
|
|
|
|
Hi Sindhu,
I think there is no need for System Registry for this, because I am able to get other properties like - Author, Subject, Keywords and Creation Date by changing the value of string Prop like,
string Prop = "Creation Date";
string Prop = "Keywords";
string Prop = "Author";
string Prop = "Subject";
For all these it is working. As you are new to this I can tell you these will be present in Word Document's Property Tab. You can see these properties in File-> Properties -> Summary/Statistics Tabs.
I need the String like "Creation Date" because I tried so many combinations to get modified date like - Modified Date,Modification Date, Last Modified etc. But its giving an Exception.
Thanking you and expecting your favorable reply
With Regards,
Abraham Chethuvelil
|
|
|
|
|
Hi,
you can use
string Prop = "Last Save Time";
grettings
Aldo Vasquez
|
|
|
|
|
Can someone suggest an idea on how to achieve Recursive Alarm (ie) if i set an alarm for 7.00 AM it must repeat everyday.
Reena.
|
|
|
|
|
hi,
happy new year,
there must be a fuction which checks weather current time is equal to the desired alarm time or not ...so the function must be executed repeatedly for this, there are two option the first one is timer and the second one is thread use either of them...to do this
if i want to select i would have gone for thread ....
Regards
sindhu tiwari
its me sid
|
|
|
|
|
Hello experts,
I made a desktop application using C#.NET 2005 using MS-ACCESS as a back-end, application is working fine. I also make a setup using .NET setup and deployment project.
When I make the installer I also add the database file with EXE and DLL's suppose the database location is C:\MyProj\test\abc.mdb
Now v1.0 is released. And I start working on new version, In that along with the code there are few database changes are also applied.
I make separate folder for each version, Now one of my client is need some amendments in v1.0, but when I going to make installer it will take old database file. ..?
Actually in .net setup and deployment project the external files(Text, Database etc.) are added with full path information. I want to make is dynamic I.e. I want to add files of same folder.
So v1.0 is having old database and other files and v1.1 is having new database file.
How Can I achive that...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
actually what is the issue now, anyway you can specify the database name before taking the exe.
better don't put db along with exe, make a separate folder and keep the database there.
when I going to make installer it will take old database file. ..?..... you can specify the database which you need.
My small attempt...
|
|
|
|
|
Thanks for your reply...
The issue is: Suppose My project is placed in C:\MyProject\v1.0
And Database is placed at C:\MyProject\v1.0\Database\Mydata.mdb.
Now I make setup for that then it will take database from "C:\MyProject\v1.0\Database\Mydata.mdb" Ok...?
Now I make a new version of application then my project location is
C:\MyProject\v1.1
And database location became
C:\MyProject\v1.1\Database\Mydata.mdb. ... true?
When I make the installer for v1.1 it will receive the database file from the "C:\MyProject\v1.0\Database\Mydata.mdb". But I want to take the file from ""C:\MyProject\v1.1\Database\Mydata.mdb" .
For solve this problem I have to change the location of file in setup project right...?
But I have more than 20 files (XML, Text files etc.) including database file. I have to change them also.
Suppose I move to v1.2 then I have to repeat the same things again (Update the files location)
What I want...?
I want a setting that will take database and other files from the current working directory. I.e
"C:\MyProject\v1.0\Database\Mydata.mdb" or
"C:\MyProject\v1.1\Database\Mydata.mdb" or
"C:\MyProject\v1.2\Database\Mydata.mdb"
whatever version I build.
How to achieve that...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
When I make the installer for v1.1 it will receive the database file from the "C:\MyProject\v1.0\Database\Mydata.mdb". But I want to take the file from ""C:\MyProject\v1.1\Database\Mydata.mdb" . hw it happen? here v1.0 and v1.1 aer 2 different folders right?
My small attempt...
|
|
|
|
|
You can also try this yourself....
This is happening because .NET setup project used the hard coded path.
I have to change it in each release.
How can I make it dynamic...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
what is the difference between observer pattern? Aren't they both the same thing
|
|
|
|