pcompassion's Q&A profile
Visual Studio Express Editions Database Project in VB2005EE
I am building a small database app. I have a question about displaying data from the DB on a form. I have a form with a listbox and several textboxes. In the listbox I have a list of items from the database (Table A) and when I click on an item in the list the textboxes populate with appropriate data from the database (Table A) applicable to said item. To this point all works well. Now I want the listbox list to be sorted alphabetically. I change the Sorted property of the listbox to true and the list now displays alphabetically but selecting an item in the list now displays the wrong info in the textboxes. I must have to change a setting or Cam This is my code at this point with er ...Show All
.NET Development NET Framework written in C++?
Hello there, the thing I want know is: In which language is .NET written. I am sure .NET supports so much prog languages, but in which language the .NET Framework was written (I mean the IDEs, the libs like System.dll, the interpreter). Another question: What about C# Is this language written in Assembler or was it created trough C++ like lots of other langs I am looking forward to hearing from you! Best regards Ian Peter is right, the vast majority of the framework is coded in C#. The C++ methods are fairly easy to spot if you look through the classes with a tool like Lutz Roeder's Reflector as they are decorated with [MethodImpl(MethodImplOptions.InternalCall)]. There are no 'pure' assembly methods as far as I kno ...Show All
Visual C# Q: Creating a simple keylogger
Hello everybody, is there a way to create a simple keylogger in c#. This means to record every key pressed and write them down in a file....More or less that's it! Any ideas. With all the respect, chire Thank you very much guys. Appreciate the help. I ain't no script kiddie, but hey, I ain't gonna lie to ya...I am going to need this to record everything, even usernames and passwords. Do not get me wrong...someone smart has said: Get to know your enemy... peace out brothers, chire ...Show All
Visual C# .Net Certification guidence
I had java knowledge(Sun Certified Java Programmer and web developer),studying final year of BS . Iam new to .Net, still intrested in getting Microsoft Certification.., so please advice me 1)MCTS/MCAD which one is easier for a student (I'm not a developer,no real coding experience) and is it worth to go for MCAD after releasing of .Net 3.0 framework. 2) which .net language to choose,either VB or C sharp , I heard C# is much familiar to JAVA than VB ,but i got some AppDev and LearnVisualStudio.net courses for VB. As Iam a Student,I don't know much about Present Demands and Trends. So please Suggest me,so that i'll be in right track. and tell some required study for a newbie like me Thanks in advance,(pls don't say y did u wanted ...Show All
Visual Studio Express Editions Weird warning
Hi everyone, I get weird warning when I try to take the length of the string in below: for(signed int a = exp.length()-1; a >= 0; a--) the warning is: c:\documents and settings\xxx\belgelerim\visual studio 2005\projects\hw4\hw4\algebraicexpression.cpp(21) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data How can fix this Would you please help me Thanks Use: for(size_t a = exp.length()-1; a >= 0; a--) ...Show All
Visual Basic My.Computer.FileSystem.GetTempFileName
If I create a temp file using My.Computer.FileSystem.GetTempFileName, what determines how, when or if this file is deleted by the operating system Can something be done to control this It does the creating and returns the path to that file...any other manipulation of the file must be done by your app.... Dim ThePath As String = My . Computer . FileSystem . GetTempFileName () System . IO . File . Delete ( ThePath ) ...Show All
Visual C# I would like to display the same ListView control on all the tabs in TabControl
How do I display the same ListView control on all the tabs in TabControl without duplicating codes Hi, you can use this code to move your ListView control to the newly selected tab whenever active tab page changes: private void tabControl1_SelectedIndexChanged( object sender, EventArgs e) { tabControl1.SelectedTab.Controls.Add(listView1); } Andrej ...Show All
Software Development for Windows Vista card import error
Hello I have problem with import of managed card. I tried to create this card with my card writer and with sample card writer from samples and creation of card will succeed. But, when i try to import this card i get this error (copied from my event viewer) The data present in a card could not be validated. Imported card has URI's in invalid format. Inner Exception: Invalid URI: The format of the URI could not be determined. Additional Information: Microsoft.InfoCards.InvalidCardException: Imported card has URI's in invalid format. ---> System.UriFormatException: Invalid URI: The format of the URI could not be determined. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriK ...Show All
Visual Basic null TextBoxes in Database Entry Form
Hello, 1. The Form has TextBoxes c1,c2,c3 receiving currency and c4 which shows the totals: c4=c1+c2+c3 As it is now, an "Add New" Button_Click event initialize all the TextBoxes to "0.0". While this works, it places a burden on the user when entering data (he has to erase the "0.0" or might make a mistake say typing "1" without erasing "0.0" turning it into "10.0"). 2. How could the c4 always show some result, starting from the initial 0.0 to c4=c1 then c4=c2 c4=c3 or c4=c1+c2 or c4=c1+c3 or c4=c1+c2+c3 Thanks, Hi Spotty, Thanks for your time. The EntryForm is the front-end to a Database and a somewhat more complicated that it was posted originally. (It h ...Show All
.NET Development DataTable.Load() Generates InvalidOperationException
Hello All: I am having a problem with the following code generating a "InvalidOperationException". The exception is thrown sometime, but not all the times. Does anyone have any idea why this code may be causing DataTable.Load() to throw that exception Thank you kindly. Jerry... p.s. Please forgive the cross-post. I must have inadvertantly posted this to WindowsForms. ***** Start Here ***** public partial class CollectionDetailStatusDataTable { public event TableFillingEvent TableFilling = null; private EventWaitHandle tableFilledWaitHandle = new ManualResetEvent(false); private CollectionDetailStatusTableAdapter tableAdapter = null; public CollectionDetailStatusTableAdapter Adapter { get { if (tableAdapter == nu ...Show All
Visual Studio Team System History information doesn't show up after branch?
I recently performed a branch operation. It seems that after the branch my history information doesn't show up. It shows up for the source of the branch, but not for the newly branched items. I need the history information to show up in both places. How can I accomplish this You may want to look into the CodePlex project codenamed "Vertigo" ( http://codeplex.com/Wiki/View.aspx ProjectName=TFSVTreeBrowse ). I believe that this will do what you are asking when complete. - Steve ...Show All
Visual Studio Team System deploy/schema compare scripts - Option for checking IF EXISTS
My scripts need to check for existence of tables, columns, etc. before creating or altering. My procs and functions need to check existence and drop if they do already exist then create. Is there any way to control script preferences to accomplish this Hi, just an idea (not sure of the feasability). I am assuming that your customers that you can not "connect" to are NOT manually modifying their copies of the DB schema themselves. Couldn't you deploy copies of the DB Schema for each customer DB (without data ) in your environment Then the build would have access to the customer schema and you could have the different status reflected each of the build scripts. Of course you would have to ...Show All
Visual J# permission question
I have a J# class BeanResult which inherits from Object (ie no declared parent class) and it does not have a ToString method so that inherits from Object. PermCalc gives the following listing which shows a permission request from ToString which means that every class will then require UnmanagedCode as every class eventually inherits from Object. What is going on here <Type Name="BeanResult"> <Method Sig="instance void .ctor(string )" /> <Method Sig="instance void setColor(class Color )" /> <Method Sig="instance object MemberwiseClone()" /> <Method Sig="instance string ToString()"> <Demand> <PermissionSet ve ...Show All
SQL Server Grant Database Access
I am setting up report services after I installed the report server add-ins on sharepoint 2007. at first step, Reporting services integration, I put report server web service URL -- http://ssrsdev1/reportserver authentication mode -- windows authentication it went OK. at second step, Grant Database Access, I put ssrsdev1 for server name (default instance) and then click OK and then I put the user name (a member of local admin group on ssrsdev1) and password, but I always got errors says: Unable to log on with the given username and password. what wrong here what should I check I am sure the user and password is right and I can log on to ssrsdev1 physically with admin right without any problem. thanks for any thought on this. zwp ...Show All
SQL Server Excel pivot table
Hi, I have several pivot tables in Excel that access data to a SQL 2000. We install SQL 2005, we change the ODBC from the 2000 server to the 2005 server. Now when we try to run the pivot tables I've got the following message: "User 'public' does not have permission to run DBCC TRACEON" Any idea on how to fix this problem Thanks, Arty Could you also look in Profiler and see what are the differences between the contexts that are executing the DBCC TRACEON command on SQL Server 2000 and SQL Server 2005. Make sure to select 'Show all columns' for the trace, so that you can see all information available for the DBCC event. I'm interested in columns like NTUserName, LoginName, DBUserName, ...Show All
