|
DON'T CROSS POST
only two letters away from being an asset
|
|
|
|
|
I migrated my project from dot net 2003 to dot net 2005.
I added the project in visual source safe. at the beginning it was working file in 2 machines but the next day I found that in other machines I am not able to log in in the source control.
one more problem I am getting is :
Due to some problem I uninstalled visual source safe in one of the machine. Then when I installed the same iit is not working properly in both .net 2003 and 2005.
I tried by un installing all the visual studio and installed first the visual studio6.0 with source safe and then installed .net2005. till then I am not getting the source control menu in .net.
any help in this regard is appreciated.
Rabindra Patra
(0)9322340492
Niche Softek Pvt Ltd
|
|
|
|
|
Hello everybody, I am writing a program in c# for logging/analyzing purposes and am trying to access the information located in another applications datagrid. I figured out how to use the winapi and sendmessage to get text from textboxes, comboboxes, listboxes, etc... but cannot seem to find anything about getting text from a datagrid. Is it even possible? I searched msdn for datagrid SendMessage information and nothing of significance was available.
Thanks.
|
|
|
|
|
Hi All,
am working on .net windows application.as my application takes more time to run,a problem is getting known:ContextSwitchDeadlock
how to solve the problem and where to include the code in my application to solve it.if any of u find, plz reply me as early as possible.
Thanks in advance.
Regards,
cnr.
|
|
|
|
|
Dear All,
I am creating a Image Library and want to know what can the best and standard procedure to do this.
Concept is to have all the images needed by all projects (dlls and exes) in the product at a central place (in a single DLL) making it easy to distribute and maintain.
There are 2 ways of doing this.
1) Creating a new project, add all the images to it using "Add Existing Item" and set Build Action=Embeded Resource for each image.
OR
2) Creating a new project>Add new Item>Resources File and then adding all the images to it and setting Build Action=Embeded Resource for each image. Doing this will provide me a strongly typed DLL which will provide a property like access to all images. But .resx are mainly for localization. And here I am not localizing images.
My question is what is the standard way of doing this?
Do you guys know pros or cons of any of these methods?
Is anybody there knowing how Microsoft do it??? (When they need to create an image library)
Any links or articles for this?
Most important is, will the second (2) way will have any negative effect on start up time?
Regards,
----------------------------------------------------------------------------------
Jayvardhan Patil.
|
|
|
|
|
Hi All,
In .net,I have to convert a string into date in a format 'dd/MM/yyyy'.
My Code is
System::DateTime ^dt=Convert::ToDateTime(this->txtModifiedDt->Text);
try
{
String ^str=String::Format("{0,9:dd/MM/yyyy}",dt);
MessageBox::Show(str);
}
catch(Exception ^e1)
{
MessageBox::Show(e1->Message);
}
its working fine when I type in the order of dd/mm/yyyy format
But when i type for example:
08/13/2006.it is giving error that exception has occurred.
But what i need ,it should automatically convert date as 13,month as 08 .
ie like 13/08/2006
Is there any way to do like that
Thanks in advance
Nagaraju
|
|
|
|
|
Hello Nagaraju
I think there is no way to automatically do this. You could check the input manually, but you will have to choose a standard way of interpreting, because if the user enters 09/08/2006 it could be interpreted both ways.
Kind Regards,
John Petersen
|
|
|
|
|
Use DateTime::Parse or DateTime::TryParse in .NET 2.0 to get more control than Convert::ToDateTime offers.
|
|
|
|
|
Use the DateTime.ParseExact method to specify the format that you are accepting.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
Im using compact framework on VS 2005, Im binding a combobox alright, but I want to insert a new item at zero index, like on windows I used to: ComoBox1.Items.Insert(0,new ListItem("0","Select"));
but there is no ListItem in compact framework.
I am not able to insert that new item at an index, when I do a Combobox.Items.Insert(..... Vs gives me (int index,object obj).
How do I insert that 0 index in compact framework???
please help.
_____________________________________________________
Yea! I could be wrong...
|
|
|
|
|
Hi saud_a_k,
Object means it may be any thing like string,int,char,class........
If u want insert an string at o index in combobox
just use insert method:
combobox1.Items.Insert(0,"Select")
Use this it will works
Nagaraju
|
|
|
|
|
DataSet ds = new DataSet();
ds = getDataSet;
if (ds.Tables[0].Rows.Count > 0)
{
c.ValueMember = "cpt_icd_mapping";
c.DisplayMember = "icd_code";
c.DataSource = ds.Tables[0].DefaultView;
c.Items.Insert(0,"ICD");
}
I did as I usually do in windows but it gave me the error: value does not fall within the expected range
_____________________________________________________
Yea! I could be wrong...
|
|
|
|
|
I am trying to edit a globalized resource file, by creating a new resource file and overwriting the old one. But I get an error:
<--Error-->
"An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The process cannot access the file "Resources\resource.en-US.resources" because it is being used by another process."
<--End Error-->
I understand I am using the current file, but I try to release the resources first. Here is my code: Thanks for any help!!
if(File.Exists("Resources\\resource." + langID + ".resources");)
{
rm.ReleaseAllResources();
//bombs out here after I added this delete line
File.Delete("Resources\\resource." + langID + ".resources");
}
while(File.Exists("Resources\\resource." + langID + ".resources"))
{
}
//Used to bomb out here anyway with the same error
IResourceWriter writer = new ResourceWriter("Resources\\resource." + langID + ".resources");
RABB17
"Nothing fancy needed, please just solve all our problems as quickly as possible."
|
|
|
|
|
Hello everyone.
I'm currently developing a winforms application in C# which adds
multiple users to an OranizationalUnit with one mouse click. Also the
homedirectory is set using the System.directoryservices namespace.
Everything works fine.
Now i need to enter the Terminal Server User Profile Path and Local
Path. I've been surfing around the web for a while and found one
article from a user named SG.
This is what I made of it:
private TSUSEREXLib.IADsTSUserEx m_TsUser; <br />
private DirectoryEntry m_DirectoryEntry; <br />
<br />
<br />
ActiveDs.IADsUser iADsUser = (ActiveDs.IADsUser) m_DirectoryEntry.NativeADObject; <br />
m_TsUser = (TSUSEREXLib.IADsTSUserEx) iADsUser;
On the last line, it throws an exeption: "specified cast is not valid".
The DirectoryEntry, m_DirectoryEntry, is created this way:
objUser = objOU.Children.Add(strUser, "user"); <br />
objUser.Properties["displayName"].Add(strDisplayName); <br />
objUser.Properties["userPrincipalName"].Add(strUserPrincipalName); <br />
objUser.Properties["givenName"].Add(FirstName); <br />
objUser.Properties["sn"].Add(Lastname); <br />
objUser.Properties["sAMAccountName"].Add(Username); <br />
objUser.Properties["homeDirectory"].Add(@"c:\test"); <br />
objUser.Properties["homeDrive"].Add(@"y:"); <br />
<br />
objUser.CommitChanges();
objUser is then used to bind to TSUSEREXLib.IADsTSUserEx. Can some one
explain to me why I get the exception thrown? Or even better, does
someone have a better example of how to use IADsTSUserEx in C#/VB.net?
Many thanks
|
|
|
|
|
I Installed visual studio .net on window 2003 enterprise version . it is not
work properly ,a error is occured .version missmatch.
any body sugest me about this.
nilesh
|
|
|
|
|
Hi,
Did you installed the framework which comes with the studio ? If no then the studio might not be compatible with the framework.
<marquee>"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
yes I installed frame work , but problem is not solved .
nilesh
|
|
|
|
|
Hi,
If you have multiple frameworks installed, then also such kind of errors come. BTW which type of Application you are facing problem in ? I guess ASP .Net. If yes please check which version of ASP.Net engine is currently active on the IIS.
use aspnet_regiis.exe for this. but please read all the options available in the same command before running it. you might uninstall the wrong version increasing your problems.
<marquee>"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
Hi anybody know Which Platforms supported by Dot Net ?
Whether it will support linux?
Thanks in advance
|
|
|
|
|
The .NET framwork can be supported by any platform that has an implementation.
For Linux, you have the MONO implementation.
---
b { font-weight: normal; }
|
|
|
|
|
The .NET Framework is Windows only. It is the name of Microsoft's implementation of the Common Language Infrastructure. You can find more on it here[^].
Mono is a seperate implementation for Linux.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I tried this code; it works
TextBox obj=new TextBox();
propgrid.SelectedObject=obj;
But when i declare array of object then then try to pass its element to SelectedObject property, the grid don't show anything(like pointed to null)
TextBox []obj=new TextBox[2];
propgrid.SelectedObject=obj[0];
Plz help me what goes wrong int his case.. why its not taking element of object.
|
|
|
|
|
Hi,
Can I get text from office word document window which has class name = _WwG. I can’t use VBA for this. I want to use windows API for this. And I am using VC++.NET for programming.
Thanks
Priyank
|
|
|
|
|
THIS IS WHAT I USED IN WIX FILE.
<property id="FRAMEWORK11">
<registrysearch id="Framework11Registry" type="registry"
="" root="HKLM" key="Software\Microsoft\.NETFramework\policy\v1.1" name="4322">
<condition message="[FRAMEWORK11]">FRAMEWORK11="3706-4322"
BUT NO MATTER WHAT I DO IT ALWAYS PRINTS "1.02"
|
|
|
|
|
Hi,
I'm using .NET framework 2. I have a config which uses the file attribute like so:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings
file="External.config" >
</appSettings>
</configuration>
and External.config contains all my app settings. When I update some settings and write them back using the Configuration.Save method, all the settings get written to the app.config and not the External.config. Is this by design or is there an option I've missed?
thanks,
John
-- modified at 17:06 Monday 28th August, 2006
|
|
|
|