|
bashiwala wrote: Is it safe to develop windows application with MS Access Database now as I am thinking, Windows Vista and other future versions may not support MS Access ?
Can't think why not. What has lead you to think this?
bashiwala wrote: If I develop MS Access based windows application and I have Office 2003 installed in my machine, do my customers need Office 2003 to run my ACCESS based windows application or they can have any office version installed like MS office 2007 or do they need to have office at all ?
Assuming that you are developing your Windows application in .NET and only using Access as a data store, your users don't need Office installed on their PCs.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi,
thanks for your reply. Actually I read an article and it was said that, using MS Access for data storage by applications is discouraged by Microsoft, rather microsoft encourage to use SQL Server Express instead. But I found MS Access is more convenient because my user dont need to install SQL Server. Anyway, thanks for answering me, now I am comfortable to use ACCESS.
Moreover, it is a good news indeed that my user dont need MS office installed in order to run windows application that uses MS Access. Before I though negative.
Regards.
|
|
|
|
|
|
Hi,
I am a .NET developer and I have developed my products using C#.NET 2.0 (.NET framework 2.0). I am using Visual Studio 2005. Now, I am seeing that new Visual Studio 2008 has taken place of VS2005, .NET 3.5 is here. I am worried, do I really need to go for update my development environment for .NET 3.5 and VS 2008 in order to suit my products in my future customer's PC who are running Windows VISTA ? Moreover, If I dont update now, will I stay very backdated ? I learned .NET 2.0 and I am very much comfortable about it, but This new and new versions of VS and .NET coming up which is making me frustrated that, I will have to run and run all the time for updating myself. My question to you all Gurus, Is it very required to update or I can still stay with .NET 2.0 ?
Recently, I visited ASP.NET website and I found another new things, SilverLite, now I feel that, I will have to learn SilverLite too ? few days ago I updated my web applications with latest ASP.NET Ajax, now new and new things....
I would appreciate your response.
Regards.
|
|
|
|
|
Of course not. Vista was working with 2.0 and continues to. In fact, you can build 2.0 apps with 2008.
bashiwala wrote: Moreover, If I dont update now, will I stay very backdated
You will not learn the new language features until you update, but how important that is, is up to you.
bashiwala wrote: I will have to run and run all the time for updating myself
You must be new. The life of a software dev is always like that, get used to it.
bashiwala wrote: few days ago I updated my web applications with latest ASP.NET Ajax, now new and new things....
Just because something exists, doesn't mean you need to use it, and it sure doesn't mean your existing apps need to use it. ASP.NET AJAX is not that great, I'd prefer just to use AJAX by hand.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thank you sooo much for giving me positive hopes.
|
|
|
|
|
hi .. i am able to view picture for this
pictureBox1.Image = Image.FromFile(Application.StartupPath + @"\Picture\" + textBox1.Text);
but when i do that in wpf .. i cant write Application.StartupPath..... no such word startupPath for me to choose..
also no such pictureBox1.Image
below is c# code which last time i did.. no problem..
<br />
private void ShowPhoto()<br />
{<br />
if (!textBox1.Text.Equals(""))<br />
{<br />
try<br />
{<br />
pictureBox1.Image = Image.FromFile(Application.StartupPath + @"\Picture\" + textBox1.Text);<br />
<br />
}<br />
<br />
catch (Exception ex)<br />
{<br />
MessageBox.Show(ex.Message, "Error Loading Photo", MessageBoxButtons.OK, MessageBoxIcon.Error);<br />
}<br />
}<br />
<br />
}
modified on Saturday, January 05, 2008 10:28:56 PM
|
|
|
|
|
WPF is ridiculous ( and very buggy ). You need to use reflection to get the startup path of the application. Image.FromFile isn't going to work either, you need to use the WFP classes that represent an image.
I recommend buying a WPF book, nothing you know from WinForms is going to help you much.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi .. if i have a few textbox with value... e.g. address, postcode..
how do i click on a button and bring those value to microsoft word document...
as printed
address
postcode(new line)
country(new line)
|
|
|
|
|
|
thanks.. i followed that way.. one question here
the below with bold ..( data cannot be displayed all.. only display the last one.. it has been overwrite.. how do i display it all..
private void contact_writeletter_Click(object sender, RoutedEventArgs e)
{
object oMissing = System.Reflection.Missing.Value;
object oEndOfDoc = "\\endofdoc"; /* \endofdoc is a predefined bookmark */
//Start Word and create a new document.
Word._Application oWord;
Word._Document oDoc;
oWord = new Word.Application();
oWord.Visible = true;
oDoc = oWord.Documents.Add(ref oMissing, ref oMissing,
ref oMissing, ref oMissing);
//Insert a paragraph at the beginning of the document.
Word.Paragraph oPara1;
oPara1 = oDoc.Content.Paragraphs.Add(ref oMissing);
oPara1.Range.Text = contact_name.Text;
oPara1.Range.Text = contact_address_home.Text;
oPara1.Range.Text = contact_country.Text;
oPara1.Range.Text = contact_postcode.Text;
oPara1.Range.Text = string.Format(DateTime.Now.ToShortDateString());
oPara1.Range.Font.Bold = 1;
oPara1.Format.SpaceAfter = 24; //24 pt spacing after paragraph.
oPara1.Range.InsertParagraphAfter();
|
|
|
|
|
I'm not 100% sure about your question - what I think you're saying is only the Date is showing up.
If this is so it's because it looks like each line you have in bold is replacing Range.Text with a new value where you should be appending to it instead. What if you try something like this:
string contactInfo =
contact_name.Text + Environment.NewLine +
contact_address_home.Text + Environment.NewLine +
contact_country.Text + Environment.NewLine +
contact_postcode.Text + Environment.NewLine +
string.Format(DateTime.Now.ToShortDateString());
oPara1.Range.Text = contactInfo;
instead?
|
|
|
|
|
In Visual C++ programing, we can change the icon of the EXE file.Is it possible to change the icon of a window form program's EXE in C#? if it is then i will be grateful if anyone tell me about it...
waiting....
|
|
|
|
|
Try googling around
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Some comments on applications and icons:
1.
An application typically has two different icons:
- the application itself has an icon at the file level; it gets used by Windows Explorer;
you set it as a project property.
- any form can have an icon; it is a Form property, that you can set through Visual
Designer. It also shows up in the task bar's button (if the Form shows in task bar).
2.
an icon file can hold multiple icons (icons at different sizes), and Windows will pick
one depending on circumstances, so if they do not all look alike, you may get very
confused.
3.
I tend to create icons programmatically; the following code converts a (best small, square) image into a simple icon:
string filename=popupNode.getLongName();
try {
Bitmap bm=(Bitmap)Image.FromFile(filename);
if(bm.Width!=32 || bm.Height!=32) {
bm=new Bitmap(bm, 32, 32);
}
Icon icon=Icon.FromHandle(bm.GetHicon());
bm.Dispose();
string filename2=Path.ChangeExtension(filename, ".ico");
Stream stream=new FileStream(filename2, FileMode.Create);
icon.Save(stream);
env.output("Created icon "+filename2);
} catch(Exception exc) {
env.output("Failed to create icon from "+filename);
env.log(exc);
}
Hope this helps.
|
|
|
|
|
Thnxx for sharing this precious info!
But the fact is i ve changed the form icon as u mentioned i guess.Now i want to change that exe file icon. say in the debug there is a exe file named "dark.exe".This file has its typical exe icon.you know which is common for windows! tht window like. Now as in visual C++ we can change exe file icon to any icon file we want or can convert a bitmap to icon file like you ve posted the code for it.There is already option for tht in the IDE.
If there is an option present in C# IDE(i m using Visual Studio 2005 by the way) then i ll be glad if you tell me if u know already!
or other method ....
|
|
|
|
|
Hi,
the app's exe icon is a project property, hence right click the project in the
solution pane, choose application tab, and specify the icon file/resource there.
|
|
|
|
|
Just look in the properties pages for the project. If you want to embed multiple icons into the executable which are viewable by Windows then might I suggest taking a look at my article[^].
Shameless self-publicising but hey...
|
|
|
|
|
hi .. imanage to write my code on insert, update and delete fucntion in c#..
but why whenever i insert or update or delete the data..
it shows messagebox on this below
Operation is not valid while ItemsSource is in use. Access and modify elements with ItemsControl.ItemsSource instead.
|
|
|
|
|
If you put the error message in quotes and google it, that's the best way to solve these sort of problems. It would be wise of you to post some code if you want more specific help, I can only guess at what your code looks like.
Specifying update/insert/delete SQL direct in code is easy, but it's not the way to go if you want to write professional quality code.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have written a very basic windows application that connects to a mysql database, invoke some functions,write on the database and get a string as a result to be used in my program. This is a periodic event and I use timers to periodically invoke these functions. These program has users who needs to login and authentication is done in the database by the stored procedures and functions. I keep a track of log off times by invoking a function in the database by a timer every 30 seconds which basically updates the logout time when the proram is running so if the user loses the connection somehow, then I have a 0-30 seconds error margin for logout time.
But I think the program has some flaws. Firstly I heard that there are some programs that can actually show the code of an exe. I am worried that someone can easily see the code of my exe, get the username, password and adddess for the user and also the names of the functions and after writing a simple program like mine, can access, run and retrieve the data I want retrieve with my own program but my program only. I want to put security measures in my program but these does not make any sense if anyone can extract my exe code and alters my code to use in their own benefit.
My second question is actually regarding to the server and the database. The program has a default user for the mysql server that connects to the database (which only has execute privileges), and invokes the function. Is there a way to connect to a database with my program without actually including the database login & password & database name. Is there some way to do it like an asp page where I can just go to a webpage sending username and password for my program and that web page gives me the output string so that I can it in my program ( I can include a hidden web browser in my program).
please excuse me if my questions seem trivial but I am only a newbie and although I searched the forums and google, I could not find a straightforward answer. I have some ideas in my mind but if any of you have already been in my situation, then it would be a great help.
I will really appreciate any help
Thank you very much
andrew
|
|
|
|
|
Andrew,
Have a google for a obfuscator. Also, if you dont already, you could keep your username/passwords and any other important data encrypted, there are plenty of examples on google and here of how to do that.
Regards,
Gareth.
|
|
|
|
|
Hi,
I am basically trying to connect to a TomTom 520 and upload a new location/posistion. I have googled for stuff but whatever i google for TomTom, it just brings up places to buy it from.
Does anyone have any articles/info on if this is firstly possiable, and then how to do it.
Regards,
Gareth.
|
|
|
|
|
I'd imagine that you'd need some sort of official API from TomTom to do that, the closest thing that I could find is here[^]. If that doesn't help then your best recourse may be to email TomTom and ask them directly.
|
|
|
|
|
Hi Jimmanuel,
Thanks for the link. The SDK costs $195.00 and since this is a personal project, i think i'll just enter the locations with my fingers. Thanks for your help anyways!
Regards,
Gareth.
|
|
|
|