R8VI's Q&A profile
SQL Server Add spaces to a string value in a cell
Hi, I am trying to add spaces to a string value in a cell but when I run the report the value is trimmed. Any ideas Here is the expression I am using: = Fields!strVal.Value & " " Thanks, Igor Igor, Can you wrap a LEN around your expression I used this to verify that the spaces where actually there. If the spaces are there then you made have some other issue. Ham ...Show All
Windows Forms Warning in the .net 2005 designer
Hi I am developing a win form application. my FormMain looks like the following() public FormMain() { m_Console = CreateConsole(); if (m_Console != null ) { InitializeComponent(); } the CreateConsole() method creates an instance of a class and returns the reference to it to m_Console in the InitializeComponent() method i signed the controls to get events. the call back functions i put there are call back function that are in the class that m_Console is referencing. for instance, this .ultraToolbarsManager1.ToolValueChanged += new Infragistics.Win.UltraWinToolbars. ToolEventHandler ( this .m_Console.Combo_ToolValueChanged); the code compiles and runs perfectly well. the problem is ...Show All
Windows Forms Best way to handle shortcuts ?
Hi, I was wondering if there is a good OO-way to handle keyboard shortcuts. Atm my shortcut handling code consists of a big list of if else if else statements containing switch statements (if/else to detect the modifiers, the switch statement to handle the keys) As you might have guessed, this is ugly and not very clean. I tried using a Dictionary of Keys to Action (a simple void delegate) mapping. but the problem here is that the keys pressed never match those in the dictionary because extra modifiers and flags are present. I was wondering if anyone has any suggestions how to make a decent key to action mapping. Thanks, Ben. Why did you comment out the assignments to ToolStripMenuIt ...Show All
SQL Server how to add/replace a guid column?
I've searched through this forum, and am extremely disappointed that something as simple as this can't be done without resorting to a script component (which I refuse to do): I have a Lookup transformation that returns a GUID value -- or not, so I've configured its error output to ignore failure. That should leave a NULL in the output column, and I should be able to chain a Derived Column transformation that replaces the Lookup output column (e.g. foo) with an expression like: isnull(foo) newid() : foo But there's no newid() function! Who was the genius that decided SSIS should implement different expressions than Transact SQL Is there a workaround, like (DT_GUID)GETDATE() Or do I have to craft a SQL statement in the Lookup t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. More questions about multisampling
I'm quite confused on how multisampling works. From what I understand, 1/ multisample is usefull only when a texture is binded to the Output Merger (as RenderTarget or DepthStencil), and useless when used only as an input (but multisampled resources can be read in a shader). 2/ multisample is activated only when the rasterizer state MultisampleEnable is true, and number of samples used is the one precised in the RenderTargetView/DepthStencilView (which must be all be equal). 3/ when a resource is declared with multisample, its size is the size of the same resource without multisample times the number of samples. This leads me to some questions: a/ how and where the final result is build (resolved) (RenderTarget by averaging in sample ...Show All
Windows Forms ContextMenuStrip Display Capability
Hello: VB.Net(2005) Here is the situation: A ContextMenuStrip drop down menu is displayed when a TextBox control is entered. There are two items available in the drop down menu. The display makes it difficult to distinguish which item is hi-lited and which item is not hi-lited due the color selections made. The up/down arrow keys toggle between the items but it is not obvious which item will be selected when the enter key is pressed. Question: Is there a way to change the ContextMenuStripItem.Text as the item in the drop down menu is selected with the up/down arrow keys Many thanks for suggestions... jes I have found a solution: I looked at: KeyDown, KeyPress, and PreviewKeyDow ...Show All
Audio and Video Development Scaling with DXVA2.0
Hi, I’m currently studying the DXVA2.0 device management and video processing and I wonder if you could help me with the following trouble: I’m want to build a MFT who doe’s video processing on video source, one of the features I want to offer is the ability to use the hardware scaling capabilities instead of my software algorithms. Therefore, I came up with some basic questions: 1. When setting the video position by the IMFVideoDisplayControl interface to a larger destination rectangle then the source rectangle – how can I ensure that the resizing is done by the hardware and not software 2. Is there a way to implement scaling using the IDirectXVideoProcessor::Video ProcessBlt in my MFT so I could actually ...Show All
Visual Basic YOU ARE A GENIEUS--Reed Kimble --THANK YOU SO MUCH Just a Minor Ajustment to make it work MAKE E.CANCEL = FALSE ---
I have this code whre I want to open a new window within browser1 of my form8 Instead I loose control of the browser and by loosing my session Private Sub WebBrowser1_NewWindow( ByVal sender As Object , ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow e.Cancel = True Form8.Show() 'Form8.WebBrowser1.Name = what goes here I am not sure what to do here 'Here I am forcing the opening of this specific website/I want to open whatever url is clicked Form8.WebBrowser1.Navigate( http://www.accountingonline.us/invoice/index.php page=open ) ' Form8.WebBrowser1.Navigate(sender) this did not work End Sub Thank you so much for your help !!! Reed Kimble - http ...Show All
Visual Studio 2008 (Pre-release) Constrain WPF overall application window to fixed aspect ratio?
Hi, Is there some simple way to allow a WPF application Window to be resizable but maintain a constant aspect ratio I tried doing this in code in the Window_SizeChanged event handler, but the result is unusably jerky (at least the way I currently have it coded). Thanks, Alex My first attempt would be to set a binding between height and width with a value converter to enforce the ratio. That way which ever one changes the other will be constrained. It might not work, but I would try that as the preferred strategy. ...Show All
Windows Forms Windows Themes and Appearance settings are causing Forms appearance to behave abnormally.
hi I have written a form in C#, The problem we are facing is that whenever the XP theme is set to Silver etc.. it changes the appearance of the form. I would like the form to not be affected by theme settings. Is there an easy way to do this Thanks. Dwight Hi, Dwight Here is the link: http://www.codeproject.com/useritems/XP_theme.asp df=100&forumid=216926&exp=0&select=1235783 Hope it helps. ...Show All
.NET Development How to regex everything before start of a specific string
How can I regex all chars starting from Substring(1, ...) to ... where ... is the start of the first occurance of html tag "<br>" in the incoming string In other words, strip everything after the first encountered <br> in the string ...Show All
Visual C++ A bug in C++ compiler? (full constructor definition is required before it can be called)
Hi, The following code sample does not compile in VS .NET 2005: class Base { public: Base (int i) : b (i) {} private: int b; Base (); // private default ctor }; class Derived : virtual public Base { public: Derived (int i); private: Derived (); // private default ctor }; void main () { Derived d (5); } Derived::Derived (int i) : Base (i) {} The compiler complains about inability to access Base::Base() (default constructor). But why does it need to access this constructor A way to compile it is to put definition of Derived's constructor (the last line) either into class declaration (inlined), or before main(). Also the problem goes away if I get rid of virtual inheritance. This code sample compiles just fine on Sun. Any ideas ...Show All
Visual Studio Express Editions Webbrowser icon problems
how can i make the icon of my form turn into the favicon from a site that gets navigated to That's what a web browser does: each time you access the page, it reads the information in the header and downloads the file, if necessary. Some web browsers are better at it than others. ...Show All
Visual C# Convert Java To C#
Hello Can anybody help me to convert this java code to c # private static int chooseOption(int min, int max) throws Exception { Scanner sc = new Scanner(System.in); while (true) { System.out.print("Enter a number: "); int option = sc.nextInt(); if (option < min || option > max) { System.out.println("Invalid number, you must enter a value between " + String.valueOf(min) + " and " + String.valueOf(max) + "!"); } else { return option; } } } private static int chooseOption(int min, int max) { Scanner sc = new Scanner(Console.In); while (true) { Console ...Show All
SQL Server External access to SQL Server
Hello, I'm not sure whether this is right section to post this. It seems the most relevant one to me. (Please point me in the right direction if it is not). I am a programmer/web developer for a medium sized organisation in the financial industry (in Australia). Obviously being in the finance industry, we have very strict guidelines and access when it comes to security. We are currently in the process of converting our website to use a SQL Server database (instead of MS Access which we have been using for years). In the past, we have accessed our web database via SFTP as it was only an Access file. Now that we are converting to SQL Server, we will still need access to our database (which is on a server hosted externally). It seems a ...Show All
