|
Replace WindowsApplication7.Form1.resx with WindowsApplication7.Form1.resources . This should work.
Alexandre Kojevnikov
MCAD charter member
Leuven, Belgium
|
|
|
|
|
It now works!
Thanks a Trillion!! You have learned twice!!
"To teach is to learn twice"
|
|
|
|
|
daljv wrote:
You have learned twice
Indeed
Alexandre Kojevnikov
MCAD charter member
Leuven, Belgium
|
|
|
|
|
When I go to 'About' in Visual Studio it says I have 1.0.3750...
I have the 1.1 installed on my computer... How do I get visual studio to use it?
/\ |_ E X E GG
|
|
|
|
|
You install VS.NET 2003.
VS.NET is tied to the version of the framework it shipped with, VS.NET 2003 is the same way but it has an added feature to generate a .config file so your application can use version 1.0 at runtime.
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|
|
This is horrible... I was afraid someone was gonna say somthing like that...
I can't get the visual styles to work in my application to work for the life of me...
/\ |_ E X E GG
|
|
|
|
|
Just to check a few things:
Do you have a "myapplication.exe.manifest" file in your application's directory? Or have you followed one of the article's here on CodeProject where you embed the manifest, and have you remembered to redo the embedding each time you rebuild your application?
For the controls that support it, do you have the FlatStyle property set to "System"?
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|
|
If your application is called blah.exe, create a manifest file:
blah.exe.manifest
in the directory in which your executable is located. Check MSDN for the manifest file layout. In there, modify the required version to the version of the runtime you want to use.
|
|
|
|
|
I want to get the list of printers installed. Below is the codes I copied from the .NET help file under "InstalledPrinters Property".
private void PopulateInstalledPrintersCombo()
{
string pkInstalledPrinters;
foreach(pkInstalledPrinters in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
printerName.Items.Add(New ListItem(pkInstalledPrinters, pkInstalledPrinters));
}
where printerName is a listbox
The first few times this function was used, it was fine, but later it cannot seem to find the printers ie. System.Drawing.Printing.PrinterSettings.InstalledPrinters.Count returned 0
Any ideas what's wrong?
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
I was typing the code on memory and not pasting it, so i think I got the syntax wrong.
Anyway,it does work for me too, but only the first few times(10+), but after that it stopped working.
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
Remind not to call you for tech support!
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
When I go to 'About' in Visual Studio it says I have 1.0.3750 framwork...
I have the 1.1 installed on my computer... How do I get visual studio to use it?
I wanted to do the enable visual styles thing...
/\ |_ E X E GG
|
|
|
|
|
Visual Studio 2002 only targets NET 1.0 .You can not use the .NET 1.1 from within Visual Studio 2002.
To build a .NET 1.1 App you have two options:
1. Use Visual Studio to write and organize your files and then use the command line compiler on the 1.1 SDK folder to build your app (but remember that NET 1.1 introduces some code-breaking changes to NET 1.0)
2. Upgrade to Visual Studio 2003
As for the visual styles, I wouldn't be too eager to use the NET 1.1 EnableVisualStyles method since there have been multiple reports of instability and inconsistent behavior of this method. Implementing visual styles through yourappname.exe.manifest (a manifest file) is still the safest bet.
|
|
|
|
|
please help me, how to set tab size in richtextbox control?? I can't find this proprety in this.
Thanks!!!
Nho'c Ti`
|
|
|
|
|
3 choices
1) its the only control on the form
2) set all controls tab stops
Of course we should slap anyone's hand for doing that
3) Implement the KeyDown function and just add spaces and and set the handled property to true
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I am trying to make my code take the path of a directoru A, and then iterate through all files, sub-directories, and all the sub-directories files, until i get to the end.
I thought I had it, but I don't;) Having trouble with the logic...
Thanks
Steve McLenithan"When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl." ("When cryptography is outlawed only outlaws will have privacy")
|
|
|
|
|
|
Thanks that will give me somethign to work with;)
Steve McLenithan"When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl." ("When cryptography is outlawed only outlaws will have privacy")
|
|
|
|
|
Hi!
I am using a dial up modem for my internet connection.
and I want to make a program that monitors how long ive been
connected to the internet so that i'll be able to keep track.
How do i do this is C#? I'm using a windows 2000 professional
for my OS.
Thanks a lot!
"To teach is to learn twice"
|
|
|
|
|
|
I want to get the text from the textbox in the other application;i tried "getwindowtext",it can only get the informaion of label,checkbox,form(the caption),but failed to get the information of the textbox.The msdn says that "GetWindowText cannot retrieve the text of a control in another application."
Which other API should I use?
Thanks
|
|
|
|
|
If the other application is another C# app you created, you can
use get property.
"To teach is to learn twice"
|
|
|
|
|
|
I have a function that does the following
fills a dataadapter with items belonging to user1
then Creates a dataset object and fills it with data using data adapter's Fill method
set my dataview = Nothing
then I fill a dataview with this dataset
lastly I bind a datagrid to this dataview
this works but next time I call my function for user2
the grid displays items belonging to both user1 and user2 instead of just user2
I am .Net Windows Application
How do I successfully clear the datagrid of user1 data before loading user2
some sample code would help since I am pretty new to .Net
|
|
|
|
|
can you show sample code of what your doing. It sounds like its pointing to the binding context of user1 or your not pointing to user2's table.
Is this on the same form?
Have you used debug->locals and viewed which dataset and table its tied to?
Have you reset the datasource?
DataGrid1.DataSource = DataSet.Table["myuser2table"].DefualtView;
hmmm
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|