Naximus's Q&A profile
Visual Studio 2008 (Pre-release) Use custom controls in loose XAML
Is it possible to use custom controls in loose XAML The custom controls are defined in a separate DLL. I have tried to used it, but an error is raised - I don't know if this feature is not supported or I am doind something wrong. Thank you, Valentin The only way I can think of is if your custom control resides in an AllowPartiallyTrustedCallersAttribute (APTCA)-qualified assembly in the GAC. But I wouldn't recommend that approach unless you ...Show All
Visual Basic Reading Files in a Folder
I have 'combobox1 inside my 'groupbox1' I also have a couple of documents in a folder on my desktop called 'docs' What code do i put in so the combobox lists all the docs that are in the 'docs' folder Imports System.IO Dim desktopDir As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) Dim dirName As String = Path.Combine(desktopDir, "docs") Dim dir As New DirectoryInfo(dirName) For Each file As FileInfo In di ...Show All
SQL Server DTS zipping a file
Hello there. I have this DTS that creates 5 files. The last step on the DTS is anActiveX task that moves the files to a certain folder. Bun!t now what I really need to do is zip the file and leave it on the server. This DTS is executed by a job on the SQL Server, and the files are created on a network share with access to the SQLServer user that executes the job. I've been trying to find out information on how to zip the folder and I ...Show All
Visual Basic Set Starting size for a child form
Is there any way to set the starting size for a child window in a mdi form. Whenever I open the child form it sizes it based on the size of the parent form, instead of using the size I set for it in the designer. I use Form2.Size = New Size(640, 480) . Is there another way An MDI (Multiple Document Interface) child form can be programmatically sized. After you assign the MDIParent property to it, just prior to "show"ing it, se ...Show All
SQL Server How to set a ReportParameter to the value NULL?
Hi, how can I set a ReportParameter in C# to NULL My code is as follows ReportParameter [] param = new ReportParameter [1]; param[0] = new ReportParameter ( "LanguageID" , "1" ); param[1] = new ReportParameter ( "TopCount" , "30" ); this .ReportViewer1.ServerReport.SetParameters(param); Sometimes I want to pass the value NULL for the parameter TopCount so my stored proc can handle a special case. I tried param[1] = new ReportPar ...Show All
Visual Studio 2008 (Pre-release) Accessibility of Window components
hi all, i have a window 'mainwindow', with its components in its xaml file. this window contains a textbox, which i want to access from another class. 'mainwindow' is initialized at program start, so i think there has to be an object of this class available for another class. but if i try to do something like this: mainwindow_textboxname.Text = "sometext"; i get the following error msg.: 'An object reference is required for ...Show All
Visual Studio Team System Difference between sal.h and SourceAnnotations.h
Does anybody know the difference between sal.h and SourceAnnotations.h. The documentation documents both options as a way to add info to a function prototypes that will improve static code analysis. sal.h is based on preprocessor macros and SourceAnnotations.h uses attributes. Is one method better then the other The attributes defined in SourceAnnotations.h are the supported way for you to annotate your code ...Show All
Visual Studio Express Editions Could someone recommend a good book for VB 2005?
I'm new to programming and this is the language I've choosen to start with. Could someone suggest a good book to begin with Myself I can not image anyone Learning this trade without First taking a few Formal Courses in this Area.... But if You are Really Smart(Cgraus) you can Do It..... These are Free Movies Not Books... http://msdn.microsoft.com/vstudio/express/vb/learning/default.aspx http://msdn.microsoft.com/vstudio/express/visu ...Show All
Windows Forms Receiving Error Using No Touch Deployment
I am receiving the following error on client machines using no touch deployment. "Application has generated an exception that could not be handled." The app is a win forms app that uses a strong named key. I have verified the security policy&n ...Show All
SQL Server Problem with Incrementing variable
I want create a Incrementing row through a variable in Derived Column Transmition,For that i created a variable called 'Increment'..in the derived column iam creating a new column with this expression @[User::INCREMENT] == @[User::INCREMENT] + 1 Is anything wrong with this statement..bcoz iam getting 0 or the value which i assigned (1000)to all the rows. Can you pls suggest some solution Niru Yeah, that wo ...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 F ...Show All
Visual Basic using VB.NET to insert hyperlink into excel spreadsheet
Howdy, I have a program that saves errors by category to Excel. Each category has it's own worksheet, and sheet1 is a list of the categories and the total errors per category. What I'd like to do is link the category to the worksheet, so that the end user can click on the category name and have the worksheet displayed. The code I tried and didnt' work: For q As Integer = wb.Worksheets.Count To 2 Step -1 'count errors p ...Show All
Visual Studio Tools for Office "Office document customization is not available" error
This error happens very frequently when an Excel VSTO project is built and run within VS. The Excel file will open, but this error will occur. The way I deal with it is to close the Excel file and restart it within VS again, or and again, or and again, or and again, .... The error usually will disappear after rerunning the application once, or twice, or thrice, ... Sometimes, I do have to close VS and restart the whole thing. Could anyone ...Show All
Visual Basic How do you seperate the 2 ENTER/RETURN key in Enchanced U.S keyboard
In VB 2005, using "Keydown","Keypress" or "Keyup" command to capture the output code of the 2 Enter key. I get output code of 13 in keypress and key release. the same output. how do you determine which one you press I believe one of them is 2 byte which i cannot see in the command i use Any recommendation how to capture it how do you capture 2 bytes or more than 2 bytes keyboard output. your help is well ap ...Show All
SQL Server How to get the value of script of various SQLDMO(version 8.0) objects
Hello, I am working on a project where I want to access and modify some objects of Microsoft SQL 2000 database. Would someone help me how to do this I need following informations; - Script of the checks of a table - Script of the Indexes of a table - Script of Key object(Primary or Forign key) - Script of Permissions of View and Stored procedure The following code returns no result; MyTabelClass mytabelClass = new MyTabelClass(); mytabelClas ...Show All
