|
Hi all
I created a simple system
But there is a problem in the system is that when I am calling sub-screen from the Home screen the screen behind the main screen .
Thaer
|
|
|
|
|
You'll need to set the parent of the new screen to your home-form;
SubScreenForm myForm = new SubScreenForm();
SubScreenForm.ShowDialog(this);
I are Troll
|
|
|
|
|
Thanks Mr Eddy Vluggen
Good Ans
Thaer
|
|
|
|
|
Hi,
Please if you can advise on following questions on integration with QuickBooks.
1. I need to connect to QuickBooks database. How can I connect and retrieve data from QuickBooks?
2. What type of connection do you use to connect to database?
3. Is there some tool that makes it easier?
Please answer on any questions of this, if you have programmed with QuickBooks.
Note: I am developing in C#
Thanks in advance
John T.
|
|
|
|
|
You need to do some research [^]for this type of question, you are not the first....
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
what connection webcam in c#
|
|
|
|
|
First of all the only guess I could make of this question is that you want to connect to Webcam using C# right?
But, you need to tell us what the problem is and how far you you have done.
Anyways, Google [^]might me helpfull to you.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
i have a problem in comparing two dates
string x = textbox1.text
where textbox1.text is in the format of "dd MMMM yy"
i when i'm trying to parse that text to date error message appearse telling me that it's not valid
what i need is to compare this date to another date from another textbox
what should i do?
thanks in advance
|
|
|
|
|
Use
DateTime.ParseExact("datestring", "formatstring", new CultureInfo("en-US"));
I think this will do the trick.
|
|
|
|
|
- use one of the Parse methods in DateTime class to create a DateTime instance; I use TryParse quite a lot.
- compare two DateTimes, don't work with strings for this
|
|
|
|
|
thanks Guys it works
|
|
|
|
|
hi,
I will give an example to what i want.
I made a VB project named Project1, inside it i have Module1 and inside it a function named Fnc_xxx.
if i put this project into a solution together with C# project
how can i make a button in the C# form call the Fnc_xxx from the VB project.
thanks in advance.
|
|
|
|
|
In your C# project, add a reference to your VBProject (Right click "References", "Add Reference..." then select the "Projects" tab and pick "VBProj" or whatever your VB project is called).
Then:
VBProj.Form1 f1 = new VBProj.Form1();
string s = f1.FNC_xxx();
The "Using" statement will work here, too.
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
|
|
|
|
|
It is workin great, thank you.
can you tell me few more things:
1) how can I make it press a button ? (it seems i can only call functions).
2) how can I make it call a function from a Module in the vb project.
3) whats the full syntax for the "Using" statment ?
forgive my ignorance.
thanks in advance .
|
|
|
|
|
Lets deal with these in reverse order:
3) Look at the top of your C# source file. See the top five or more lines, all starting "Using"? Those are the using statements, predictably enough! All they do is stop you having to use the full name of an item when you use it. So, the "Using System.IO" statement means that you can write
string[] lines = File.ReadAllLines(@"C:\temp.txt"); instead of
string[] lines = System.IO.File.ReadAllLines(@"C:\temp.txt");
In the previous example, "Using VBProj" means you can say
Form1 f1 = new Form1(); instead of
VBProj.Form1 f1 = new VBProj.Form1();
2) See the example I gave you, which called a function from a module in VB?
1) You can't make it press a button. The user presses the buttons. What I think you mean is, "how do I get the notification that the user has pressed a button?" which is simple, just hook into the handler as normal:
butOK.Click += new EventHandler(butOKEndEdit_Click);
Anything you could do in VB, talking to a VB module, you can do in C#, talking to a VB module. .NET doesn't care what language you wrote the .NET code in, it all works seamlessly.
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
|
|
|
|
|
Sorry for the delay in replying, BTW, but my phone line was down so no internet.
All fixed now.
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
|
|
|
|
|
Thanks again,
I managed using the Module throgh the VBproject as reference.
Is there a way to Create a C# project (w/o any VBproject reference in it)
and add a vb Module to it ?
I tryed but failed.
Thanks.
modified on Tuesday, September 8, 2009 1:52 AM
|
|
|
|
|
I you mean "Can I have a project with a C# source file and a VB source file in it?" then no. You can have a solution with a C# project, and a VB project though.
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
|
|
|
|
|
i'm using 1.1 framework and my customer using 2.00 framework.
he is saveing a Serialized file that have MemoryStream.
when i'm trying to Deserialize the file i get an Exception.
(if i try to Deserialize in 2.00 framework it's ok)
how can i Deserialize in 1.1 framework ?
|
|
|
|
|
Which serializer are you using? If it is XML, then you stand a chance of reading different framework versions, but Binary is very unlikely to work. This is an unusual situation, the normal way round is for the customer to have the more outdated software!
There are two ways I can think of:
1) Install framework 2.0 - this would be the better long term solution. In fact, go the whole hog and go for the latest version!
2) Create a 2.0 version of your app, deserialize. Manually write all the important data to a separate file. Create a special version of your 1.1 app, which can read the separate file. Serialize. Do not loose the two intermediate programs as you will need them again if you do. Create copious notes on what to do, how, and why.
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
|
|
|
|
|
the file is Binary.
the problem is that my program is distribute to a lot of people,
and i have a problem when tomorrow microsoft develop 4.00 or 5.00 or 6.00 framework version,
and i can't compatible my old version to the new one.
|
|
|
|
|
Then you realy have no choice but to create intermediate programs to use to solve the problem each time it occurs.
I would strongly suggest you look at moving to XML serialization for the next version, with a conversion program to update older data files from 1.1 (or 2.0) to the latest version.
Not that it's a lot of help to you, but I do generaly try to avoid serialization for just this reason - it's not always avoidable, so use the most portable version you can!
Good luck!
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
|
|
|
|
|
Take a look at Custom Serialization - MSDN[^] to see if it is of any help.
From the page.
By controlling serialization, it is possible to ensure serialization compatibility, which is the ability to serialize and deserialize between versions of a type without breaking the core functionality of the type.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
When I open crystal report(In Visual Studio 2005 project) and then go in field explorer.right click
on 'Database fields'>then choose 'database expert'
>Then create new connection>then choose 'OLE DB(ADO)' >Then Choose 'Microsoft OLE DB Provider for SQL' from List > Then Click next ........
Then system ask for Server name,username,password,
Database name and Integrated security.
I give all info correct but following error occur
Logon Failed.
Details: ADO Error code: 0x
Source: Microsoft OLE DB Provider For SQL Server
Description: [DBNETLIB][Connection Open (Connect()).] SQL Server does not exist for access denied.
SQL State: 08001
Native error:
There is only Problem in report not project.
project is running fine. it connects database,fetch and insert data without any error
Thankz in advance
Regards
Kashif
modified on Wednesday, September 9, 2009 5:19 AM
|
|
|
|
|
Dear All,
I am trying to establish setup using Click Once Deployment. I have following questions.
1. My Application for sure uses .Net framework 2.0, can we integerate .Net Framework into my setup project which should be installed prior to application setup?
2. My Application also requires Adobe Acrobat Plugin to read PDF Files, can we integrate PDF Reader or any other resoures "DLLs of Adoble Only" into My Application which should be installed prior to My Application setup?
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|