13117's Q&A profile
Visual Studio Advice/help needed...new to using/implementing VSS 2005
Hello, I am a newcomer to VSS 2005 and source control in general. I am trying to setup VSS 2005 to be used for my companies web apps and for client server apps (.net, classic asp, vb6, etc.). I had a few questions that I was hoping you veterans could assist me with. I am very new to this so I apologize if I am way off in my understanding. 1) The documentation states to consider using different databases if size starts to become an issue. I was wondering how you guys handled it Do you create one database (e.g. MASTER) and then import all your individual projects into it (e.g. Project1, Project2, etc.) so that all your code is in one database just in different projects Or do you create databases for each project (e.g. create a datab ...Show All
Windows Forms Can't get DrawItem event any more, in some special case
This interesting thing was found by use of DebugView to monitor the all events. Suppose that there are 2 controls, one is propertyGrid, one is myListBox, which is a subclass of ListBox. myListBox uses OwnerDrawFixed mode, so it has to draw all items manually. However, in some mysterious case, I found that when I repeatedly opened and closed the propertyGrid, myListBox may never raise any DrawItem event. I output all events to DebugView, then found that WM_PAINT was there, but didn't WM_DRAWITEM. Also it can't restore from this bad status no matter what I did (move, refresh, resize, maximize, minimize...), until I recreate another myListBox. I think WM_DRAWITEM is nowhere to be manually emitted, since it's managed by control. ...Show All
Windows Forms Generic bootstrapper roadmap?
Is there any plans to extend generic bootstrapper functionality When next version of generic bootstrapper will be released ...Show All
.NET Development incoding arabic language to hexa(important)
my application should send texts in arabic language through http protocol .. and as we know http does not support arabic language ... so I have to incode the texts into hexa ... how can I do that ... I have a source code but in VB.net can any one convert it to c#.net or can any one help me to write the incoding function .... this is the VB.net code Public Function ArabicHex( ByVal b() As Byte ) As String Dim s As String , h As String Dim i As Integer i = 0 s = "" While i <= UBound(b) h = Microsoft.VisualBasic.Right("00" & Hex(b(i)), 2) i = i + 1 h = Microsoft.VisualBasic.Right("00" & Hex(b(i)), 2) & h If h = "000D" Then h = "" ...Show All
Visual Studio 2008 (Pre-release) Making custom user control as root of xaml
i'd like to create a class that inherits from a WPF control say UserControl or Grid and then have another XAML whose code behind in turn inherits from that class. On using the name of the custom class in the Root element of the XAML, get an error saying this is an invalid root element. Is there a way to get around this There is no problem to inherit from wpf controls or any class, it may be the case that you want to use container control but isntead of container you'r using any other control, and may be that why xaml throughs error of invalid root element. if its not work please give more detail of your error. Cheers ...Show All
Visual C# library not registered error
Hello, I hope someone will have an answer to this question... Using VS. Net + C# I have a a console project called implementer that communicates with another addin project. Both are supposed to send and receive a "struct" that holds a hashtable to store/change info. I got the addin to show up right and it starts listening to the events been triggered by excel. In one of the events, the addin class, via invocation, is supposed to instantiate an instance of the struct and pass it to the running instance of the implementer class which changes and modifies the info in the hashtable of that struct. when trying to send that struct (which is a dll file by itself but added to both projects as reference) I get the error message s ...Show All
Visual C++ Reporting Visual C++ bugs to Microsoft
I have reported a number of Visual C++ 8.0 bugs to Microsoft at their bug reporting site at https://connect.microsoft.com/VisualStudio/Feedback . Currently, and for the last month and a half, I have two bugs which I have reported directly to Microsoft, after being ignored on the web address above, which still have not been resolved. Other bugs which I have reported to Microsoft at the web address above have gotten comments from Microsoft ranging from an arcane and onerous workaround, which no one can rightfully use, to "Thanks for reporting the issue! One of our team members is currently looking into it", and then the bugs are closed with evidently no acknowledgment that the bug actually exists or needs to be fixed or that anybod ...Show All
.NET Development Object expected
Note: Where the lightbulb is there is supposed to be [ i ] without blankspace. Note: Also on the first link its supposed to be a " followed by javascript: then toggle Hi, I've got some javascript code. It works perfectly in Firefox but not in Internet Explorer where I get a "Object Expected" error message on the line with the link. The funcion closes every div with the class name of "class" and opens a div with the id "id". Here is the code: Function (I've got the function getElementsByClass in my common.js): function toggle(id,class) { var a = getElementsByClass(class); for(var i=0;i<a.length;i++) { a .style.display='none'; } var b = document.getElementById(id); if(b.style.display == 'block') b.style.display = 'none'; els ...Show All
.NET Development date in the sql query
I have an access db with two short date fields and in my vb.net application I need to display in a dgw the data between two chosed values. Every time I try the "Data type mismatch in criteria expression" appears. I use two Datatimepicker formated as Short. In the database the field are also formated as Short Date. What could be the reason for that Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As OleDb.OleDbConnection = New OleDb.OleDbConnection("Provider = Microsoft.Jet.OleDb.4.0;Data Source=C:\Maint.mdb") Dim cmd As New OleDb.OleDbCommand Dim cmda As OleDb.OleDbDataAdapter Dim dset As New DataSet 'Dim cb As OleDbCom ...Show All
Visual Basic Printing areas of a form and increasing the size
I have an order form that I would like to print out on A size paper but the PrintForm only uses a small area of the page. How can I enlarge the mage to fill the whole page. Also is it possible to print only a part of a form. Thanks Hi, you can email me using the email from my profile I do not know about enlarging. To avoid black areas I used form.Show() before printing the form. About printing part of the form you can use few possibilities. First you can define the client area that you want to print (the example is from John's response to my question) Sub PrintForm() 'Set the client Size acording to needable size Dim tSize As New Size(Me.ClientSize.Width, Me.ClientSize.Height ...Show All
Visual Studio Team System Error Saving Project Plan
I am having the following irritating error when trying to save a project plan in the Development Project Plan file. Here is the scenario: - Open Team Explorer in VST2005 - Expand the Project Documents - Expand Project Management - Double-click the Development Project Plan.mpp file - Wait for a while (until the TS Icons appear ) - Add a new task to the project - Click the Publish button - Click the File > Save/Update menu function, choose the Development Project Plan from the list and click Save . it will tell you that the file is read-only would you like to overwrite the file, click Yes. The file is saved OK. - Close the Project plan and reopen it again. - Repeat the above steps. You will see tha ...Show All
SQL Server Could not load file or assembly 'ReportingServicesWebServer'
When ever I try to access my localserver i.e. http://localhost/reports I get the following Error msg Could not load file or assembly 'ReportingServicesWebServer' or one of its dependencies. The system cannot find the file specified. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'ReportingServicesWebServer' or one of its dependencies. The system cannot find the file specified. Source Error: An unhandled exception was generated during the execution of the current web request. Information ...Show All
Software Development for Windows Vista c r c d i s k . s y s
//my compuster goes to this point in the compiling process //then restarts //any ideas of a solution //(noob) //here is the file MZ yy ﹐ @ D o ’ I!﹐LI!This program cannot be run in DOS mode. $ ‘n[*O 5yO 5yO 5yO 4yo 5yoVNyD 5yoVHyO 5yoVXyU 5yoVIyO 5yoVMyO 5yRichO 5y PE L sJoD a $ e` 0 e ` < p : 8 € ` 0 °0 @ 0 .text ~ h.rdata d 0 @ H.data . @ @ EPAGE 1 P $ `INIT ` * a.rsrc p 0 @ B.reloc € 6 @ B ...Show All
Visual Studio Express Editions Delegate, Invoke/beginInvoke. How it works.
Could anybody please tell me exactly what is going on with delegates and Invoke/BeginInvoke. It is easy to make these functions work, but the explanations in the help files are so cryptically, that you may question whether the author of the help files actually knows what is going on! According to the help files, BeginInvoke executes a delegate asynchronously on the thread that the control's underlying handle was created on! I have been working with microcomputers since Intel 4004 and used multitasking when Microsoft was still in the DOS days, but this explanation is simply too cryptically. First of all, as I understand it, a delegate is a type-safe pointer, but a pointer is not executed - at least not in my terms. Subroutines are execut ...Show All
SQL Server IE7 script error when opening Infopath forms
Hi, I installed IE7 recently and it is giving me problems when I open Infopath forms to edit documents. I have a sharepoint website which contain links to these forms, when I click on the link it opens the infopath form. It was working absolutely fine when I used IE6. But now when I open the infopath form it gives me an error saying that A Runtime error has occured Line: 38 Error: Object Expected When I open it in the debugger it shows me an error at <body onLoad="onLoad()">. Could someone please advice! I appreciate a quick response. Thanks ...Show All
