Software Development Network Logo
  • SQL Server
  • Visual C#
  • Game Technologies
  • VS Team System
  • Visual Basic
  • Visual J#
  • Visual FoxPro
  • .NET Development
  • Windows Live
  • Architecture
  • Windows Forms
  • Smart Device
  • Windows Vista
  • VS Express Editions
  • Microsoft ISV

Software Development Network >> Dharmesh T's Q&A profile

Dharmesh T

Member List

MAttinNHTryAgain
CamonZ
SAinCA
Daniel Jakobsson
snavece
paso
Rakesh Jha
my display1
Saranga Amarasinghe
Novas
mehdi mousavi
Vishva
Samer Selo
mokkimhong
Bob Willer
Pete Baron
caze
GS80
Damir Dobric
Motley
Only Title

Dharmesh T's Q&A profile

  • Visual C# Accessing object in form (newbie question)

    Hi, Sorry, this is a very simple question, but I am new to c#. Here goes: I am creating a simple app, which has a class with holds a list of names (say). in my main Form I create an instance of this class: MyClass names = new MyClass(); Then, in the main form I can access this various functions associated with this class (to add or remove names from the object). If I create in my main form a new form that has a textbox to input a name into the object names, I find that in the new form (form2) that I cannot access my names object. Maybe I am going about this the wrong way Many thanks Ben hi, you ca ...Show All

  • Visual C++ Porting from VC6 to VS2005

    Hi, I am porting my project from VC6 to VS2005. There is no problem with my code; however, I am using a third party MFC extension dll. This dll was compiled on VC6, and I don't have its source code, therefore I can't recompile it. Since the MFC80 and MFC42 dll's aren't binary compatible, I can't port my project to use the new mfc dll's while continuing to use the third party dll. I'd appreciate any input that might help me solve this problem. Thank you, Tomer. Mhhhh. Only way I see: Compile the MFC 4.2 with the new compiler and use it with your code. Also you have to use the old CRT! Maybe you have to recompile it from the sources too. ...Show All

  • Visual Studio Team System Modelling SqlServer 2005 database

    My TFS project has database, what is the best way for modelling database I guess I should use "Sql Server Project" template, but how can I add and support DB diagram to this project Should I still use Visio For Entrprise Architects 2003 (I have one 11.4301.6568 version) Ideally I want to have database schema stored in the TFS and all changes are made to the schema should be reflected to physical DB and vice versa. Are there any recommendations about modelling database using TFS If I understand the question, you will need to store the schema as a text file and check it into TFS. You would then ...Show All

  • Windows Forms Graphics question

    Ok my problem is with Graphics class //------------------------------------------------------------------------------------------------ private void Form1_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; g.DrawLine(new Pen(Color.Black), new Point(30, 30), new Point(30, 100)); g.Dispose(); } you see i declare Graphics g=e.Graphics where 'e' is the PaintEventArgs and then draw a line //---------------------------------------------------------------------------------------------- private void button1_Click_1(object sender, EventArgs e) { Graphics g = CreateGraphics(); g.DrawLine ...Show All

  • Visual Studio Team System TF80071 after choosing TFS Project occured

    I receive the error within MS Project 2003 SP2 (German) TF80071: Team Foundation encountered an error while  accessing  the work item database. .. after i choose an existing TFS-Project. The connection to the server is OK, no error about wrong mappings etc. I'm using TFS Team Explorer Beta 3 and Project Server 2003 with SP2 German. The project is an Enterpriseproject stored on the server and not as an .mpp Any ideas Do you get the same error TF80071 from an .mpp file   What about from Excel   This seems like a permission sync problem with the work item database but we need more info ...Show All

  • Visual C# Printing a Text File

    I have developed an application that writes data to a text file (say test.doc), now I want to print the file(test.doc) present in the same folder, I have tried the sample in msdn but the problem is that it is not only complex but it autoaligned the print to the left of the page i,e it does not consider tabs("\t"), what I should do, can any one kindly help me or is there any other straight forward method. I'll be anxiously waiting. IFTI Thanks for suggestion, but if you kindly can paste a code smaple to illustrate System.Diagnostic.Process class and using hte verb "Print". Thanks IFTI ...Show All

  • Visual Basic creating a vb code file to hold all functions

    Hi, I want to create a visual basic code file that I can place all my functions in so that all my programs can use this one file instead of including the function in each webpage, etc...similar to a #include file for C++.  How do you do that in Visual Basic .NET You cannot do that and you don't really need to. You need to make a class library project, put your code in there and add a reference to that class library into your web projects.   ...Show All

  • .NET Development IIS And Impersonation - accessing file shares?

    hi all, i have two servers, one web server (called WS01) and a file server (FS01). I have a new drive on FS01 and i want to store my uploads to it. The problem is that the two servers are separated, they are located in the same place, and can see each other via private ip addresses but are not on a windows network together, so they dont share user accounts. I was testing the sites on our servers and discovered that i can't get into the storage on FS01 even using identity impersonate = true. I tried a workaround i found on ASP Alliance ( http://aspalliance.com/336 ) but cant get it to work i managed to create a virtual dir on ...Show All

  • Visual Studio 2008 (Pre-release) DockPanel Width Limited by Bitmap effect?

    Hi all, Ive been struggling to make a dockpanel component wider than around 900 pixels - im using one as a header on my application - it therefore needs to expand to fill the full width of the application. It seems to be limited by the application of a BitmapEffect drop shadow. For example with the followign code the dockpanel downt paint anywhere near 1700 pixels wide, but when i comment out the bitmap effect element the panel fills the width of the screen as it should. I really need the drop shadow though! I think this may be a bug in WPF. By the way - the Border is inside a Canvas.... <Border Width="1700" Margin="39, ...Show All

  • SQL Server Error loading Oracle DATE data

    Hello. I'm trying to put in an SQL server database some data extracted from Oracle Server 9i. During the load process, the "OLE DB Destination" in the task chokes up when it finds a record containing the date '0197-01-01 00:00:00' (i got this by putting the error output to a column of type varchar(50)). I can't use the Condicional Split's date functions to filter this out because they also choke on the strange date. Can anyone give a sugestion Thanks in advance, Hugo Oliveira SQL will not recognize that as a date. Valid ranges for a datetime column are January 1, 1753, through December 31, 9999. If you want to ...Show All

  • Visual Studio Express Editions starting another application with parameters

    Hi there.. i want to start an application which name and path is stored in my.settings. so i use Process.Start(My.Settings.pfadname) when i execute my program and the filename in my.settings contains any command-line-parameters, vb tells me that the file doesnt exist.. so how can i make the programm start any other app using parameters Greetings Jan "JeriC" Eric Protected Sub CreateProcess( ByRef Filespec As string, ByRef Switches As string) Dim startinfo As New System.Diagnostics.ProcessStartInfo Dim Proc As New System.Diagnostics.Process startinfo.FileName = FileSpec ...Show All

  • Windows Forms how to minimize flickering when maximizing windows (form is being redrawn)

    i have used docking and Panel controls to correctly position various controls on the form and i am using pictures as background for my form how do i minimize the flickering when the window is maximized/minimized so that white flashes donot appear when the form is being redrawn. First of all I have the same problems. While quering to the subject I discovered that removing those images (I used an image in the form background and in the dock manager background)  eliminates almost all of the flickers.   Second issue, you should examine, is data loading, do not load data in the load event of a form even though al ...Show All

  • SQL Server Query:Source from multiple tables to a Fact table

    Greetings, Iam new to SQLl2005. Iam using DTS to transfer data from my source to the warehouse. I have a couple of tables in my source whein I have to join these to tables fields and insert the same in teh warehouse fact table. I have used a Join query in my Oledb source component, What other component needs to be used to insert the data into the fact table. I also need to extract same data with aggregation and insert the same into an another Fact table. Kindly help. I recheked and the columns are mapped correctly with corresponding datatypes. About 70,000 rows are going to oledb command, out of which only ...Show All

  • Visual Basic User session logon time!

    I am inquiring about information on whether it is possible to determine how long a user has been logged on for. What I hope to accomplish is to determine if a user has been logged on for more than an 24 hours and if so, display a splash screen of some type to tell them to log off. I don't want to log them off, politics involved. Every where I look I haven't been able to come up with a solution. I did find a sample script to check event logs, but how do you calculate the time the event was written and the actual time to determine if it is more than 24 hrs. Can anyone offer any help. You might be able ...Show All

  • Visual C# Changing File Permissions

    I have a file that I want to copy to a different location. Sometimes the files will be marked as ReadOnly. I want to change the permission to not read only and then copy the file and change the permission back. Is there any way to handle this Here is how I detect the attribute: string file = @"C:\File.jpg"; FileInfo info = new FileInfo( file ); if ( (info.Attributes & FileAttributes.ReadOnly) != 0 ) Console.WriteLine( "Read Only" ); else Console.WriteLine( "Nope" ); Something like this: FileInfo sourceInfo = new FileInfo("source. ...Show All

©2008 Software Development Network