Software Development Network Logo
  • Windows Vista
  • Visual FoxPro
  • Microsoft ISV
  • Game Technologies
  • Visual Studio
  • Visual C#
  • Windows Forms
  • Visual C++
  • IE Development
  • VS Team System
  • Audio and Video
  • Visual Basic
  • SQL Server
  • .NET Development
  • SharePoint Products

Software Development Network >> RHunter1's Q&A profile

RHunter1

Member List

darknessangel
Carver42
LotusExigeS1
Luis Esteban Valencia Muñoz
Mitesh Shah923
ralph.
GTrz
GetCode
SoopahMan
ThisSummer
Leon Mayne
Jakob Dahl
Carl Peto
Tejas34
Babalicious
Rav3n
Ultrawhack
Anarchy
Bonebreak
MikePHall
Only Title

RHunter1's Q&A profile

  • Visual Studio Rendering Server Report To Printer

    Having just tested my applications print function with an actual printer and not the Document Imager, I have discovered that using the reportviewer.printdialog provides printouts once in a while when it feels like it, having just posted asking how to suppress the dialog box it seems somewhat ironic that the only way I can actually get the report to the printer is to display it twice per report :) I can render an image to the printer directly and it comes out every time however I am unable to print any pages after the first page. I started by taking the following article and attempting to send a server report. This seems OK however the code sample creates a stream per page, when I render I create 1 stream. Is there an easier way to do ...Show All

  • Visual Studio 2008 (Pre-release) Subscribing to a PageFunction's Return event from another Window

    I have a series of PageFunctions and two Windows. One window is the main window for my application, and the other is a window that just contains a Frame. From the main window, I launch the second window, and pass a PageFunction to it that it navigates to. Before creating the window I subscribe to the PageFunction's Return event. The PageFunctions work and allow me to navigate through each one. When I reach the end I call OnReturn(), and it calls OnReturn for each PageFunction along the way recursively, exactly like the sample code. However, the Return event that I subscribed to from the Main Window is not called - I cannot comprehend why. Am I right in assuming the Return event has something to do with a NavigationService that my Mai ...Show All

  • Visual Basic ComClass and backward compatibility

    Can anybody tell me the recommended way to expose VB.NET classes to COM if we expect the interfaces to change The Microsoft documentation recommends using the ComClass attribute (or template) for classes that need to be exposed to COM, but ComClass doesn't seem to have any provision for backward compatibility when I later add properties or methods to the class. If I just add public members to the VB.NET class, I get a COM interface with the same IID but with additional members. This violates the COM rule which states that COM interfaces must be immutable. Clearly I need to assign a new InterfaceID to the VB.NET class, while still implementing the old interface, and I am struggling to find any documentation on how to do this in a VB.N ...Show All

  • Visual C# events response time?

    this problem faces me alot which is some of the events didn't execute the code that it responsible to execute until i put a messagebox in the beggining of the execution block,take this as an example which is a event from a combebox events "SelectedIndexChanged" private void CB_SelectGroup_SelectedIndexChanged(object sender, EventArgs e) { //System.Threading.Thread.Sleep(2000); MessageBox.Show("kk");// <----------------1 int counter = editDataset.Tables[1].Rows.Count; for (int i = 0; i < counter; i++) { if (editDataset.Tables[1].Rows .ToString() == CB_SelectGroup.SelectedText && selectedTextInfo[CB_SelectGroup.SelectedIndex, 1] == editDataset.Tables[1].Rows [1 ...Show All

  • Visual Basic compile both dll and exe

    how can i set up vb.net to create both a dll AND exe on the same compile and then also have the install project recognize both dll and exe and register (with COM) the dll on install at the users computer not only is it a pain to continually switch between the two types of projects for each update, but also a pain to maintain two install packages. thanks thank you so much for your reply. what i would like to do is have is ONE project compiled to both dll and exe at the same time. then the distribution project within the same solution should install both the exe and dll at the same time, and register (with COM) the dll. this way i would only need to have one copy of my source code, and one distribu ...Show All

  • Visual Basic show the particular record when click on a DataGridView control

    Hi, I want to show the particular record when I click on a DataGridView control. I have the ID of the record which works, but I can not figure out how to show the form for that record (the Details.Show line). I tried 'Details("ID") .Show' but I got an error "can not index because there is no defualt property". Thanks in advance for your help. Private Sub PropDataGridView_CellDoubleClick( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles PropDataGridView.CellDoubleClick Dim Row As DataGridViewRow = PropDataGridView.SelectedRows(0) Dim ID As Integer = CInt (Row.Cells( "ID" ).Value) Details("ID").Show() End Sub hmm ...Show All

  • SQL Server Error converting data type varchar to float.

    Hi, I am experencing a data type cast issue in T-SQL, basically our application comtains both numeric and non-numeric data in the same column, I want to retrieve the numeric data only. Assuming a table has one column create table TT(c1 varchar(20) ) and insert 2 rows into the table insert into TT values('100') insert into TT values('test') Now if I want to do numeric comparison on column c1, I will get an error, e.g. select * from TT where c1 >100 because SQL server trying to convert 'test' to a number impcilitly. I tried to create an UDF to handle the non-numeric data conversion, e.g. if the data is numeric then return the number, if the data is non-numeric, then return a NULL. create function numcas ...Show All

  • SQL Server User is not associated with a trusted SQL Server connection

    I set up SQL Express and Visual Studio Team System for the first time yesterday. I created a web service (on my localhost IIS) and added an MDF file to my App_Data folder. I added a table with five fields. I'm trying to connect to the database in my web service, but when my web service gets to the connection line it returns the error System.Data.SqlClient.SqlException: Login failed for user ''. The user is not associated with a trusted SQL Server connection. When I add in my domain name and password to the connection string I get the error System.Data.SqlClient.SqlException: Login failed for user 'redmond\danmor'. The user is not associated with a trusted SQL Server connection. I've queried these SQL forums, and the advice is u ...Show All

  • Visual C# generic contraint for nullable objects

    I have a generic method with a single parameter that must be nullable - a nullable type (int etc.) or a reference type. private static void SomeMethod<T>(T value) where T : Nullable Doing a search brought up this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=60915&SiteID=1 which mentions using INullableValue, but this seems to have been removed now. Is this possible There is no single constraint that does this, but you can easily achieve the same effect like so: private static void SomeMethod<T>(T value) where T : struct { ... } This will ensure that SomeMethod can only be called with a nullable type. int a = 5; SomeMethod< int >(a); The sa ...Show All

  • SQL Server decryptbykey multiple session issue

    Hi I'm having some issues using the decryptbykey method via multiple connections. When I run the below test script simultaneously on two machines the sum function is always less then the known amount (ie 14945490 and 36382777). Does anyone know of any locking method or alternative way to sum an encrypted column Thanks in advance Waz open symmetric key HR01 decryption by password = 'yes' DECLARE @Bonus decimal DECLARE @Salary decimal DECLARE @Errors int DECLARE @Success int DECLARE @LoopCount int SET @Errors = 0 SET @Success = 0 SET @LoopCount = 0 WHILE ( @LoopCount < 40 ) BEGIN SELECT @Bonus = SUM ( convert ( float , convert ( varchar ( 80 ), decryptby ...Show All

  • Visual Studio Express Editions Old code using <iostream.h>

    Hello everybody. I’ve got a discrete-event simulation library and I’m trying to compile it in VC 2005 express, but it uses <iostream.h>. Is there any way to get around this problem I’ve tried to replace <iostream.h> with <iostream>, but this would require me to add "using namespace std" in all cpp files which inclue <iostream>. Is there a reasonable way to do that other than manually replacing in any cpp file Although I have replaced <iostream.h> for <iostream>, I still have a file named "Error.n" calling "iostream.h". I’ll be grateful for your suggestions. :) My recommendation is since everything is already including iostream.h which no lo ...Show All

  • SQL Server Problem with multi-level dimensions

    I built a multi level dimension with the levels Year->Quarter->Month->Week->Date. These levels are based on one flat date table that holds a record for each date. The dimension works fine but when I drill down in the hierarchy and I open the date field I don't see only the dates that only belongs to that (year, qtr, month, week), instead I see all the date values in the table. please tell me what I am missing. Thanks in advance, Aref Aref, I suspect the issue you are running into is related to either a lack of "attribute relationships" or incorrectly defined "attribute relationships". A good whitepaper that covers this topic is "Project REAL: Analysis Services Technical Drilldow ...Show All

  • Visual Studio Tools for Office Display HTML text in Word (with VSTO)

    Hi, I would like to tell Word to interpret some text in HTML form and display only the resulting text well-formated. Here some code: Word.Range range = Range(ref missing, ref missing); range.Text = "Some normal text"; range.Bold = 1; range.InsertAfter("\n\n"); range.Collapse(ref collapseEnd); // now the html part range.Text = "<span class="A21">This is some html content</span>" ; range.InsertAfter("\n\n"); The second part of the code displays the HTML tags instaed of interpreting it as html. Any idea how I can fix this Thanks a lot for any help. Claudia ClaudiaHelpOnVSTO wrote: Hi, The second part of the code displays the HTML tags insta ...Show All

  • Software Development for Windows Vista WinPE 2.0 and WinLoad.exe errors

    I could use some help understanding what is going on with WinPE 2.0. I used the WinPE.wim in the AIK folder and followed the build document and everytime I try to boot WinPE on a CD I get a warning "|windows\System32\WinLoad.exe is missing or corrupted". I used the BCDedit.exe to view the BootMgr and the path=\windows\system32\Winload.exe and I checked three times that the file is present. Does anyone have any ideas on how to get around this I have built and used WinPE for years and I need this tool for our Vista testing. Is there a better way to build a bootable CD with WinPE and a RAMDisk On WinPE 1.x I used Z: as my ramdisk and put the commands in the Startnet.cmd. Ideas You need to use another oscdimg's format, ...Show All

  • .NET Development Why can't i call jscript in aspx page?

    My code doesn't work in aspx page. My code as follow <SCRIPT type=text/javascript> shell = new ActiveXObject("WScript.Shell"); shell.Run("cmd", 1, false); </SCRIPT> I can't call dos shell in my html page. Please tell me the way to call another program from a html page. I don't think that this is well supported because it constitutes a security risk. When you call a script on someones hard drive from a web page it could launch a virus and that is risky. If you just want to do this on your own computer, I think that all you have to do is save the page with an .hta extension instead of an .htm extension. ...Show All

©2008 Software Development Network