Abhishekbhadouria's Q&A profile
Visual Basic Is there a way to call information thats in a database
Is there a way to call information from a database and place it in a rich text box With a loop type of thing Or would i have to make some...wierd query and place each value into a text box 1 by 1...or... i dont know help would be nice...thanks I'll try my best in trying to refactor the code or something similar to this, please do post back if it does not work and make sure that you adjust it to your needs and correct any variable names etc... It's still unclear what exactly you want but I will post code which will go through each row and each column, is this what you want so you get a row of data, like the way it is in your small diagram Dim theRowString as String = String.Empty for currentRow as Integer ...Show All
Windows Forms How to display multiple fonts within single line in custom paint event
Hi, I have four data items (due date, title, author isbn) that I wish to display in a ownerdraw listbox and I which to display just the title in bold. I know how to do this if I put title on a line by itself, but I'm trying to mimic a book citation format: ---------------------------------------------------- Due: 1/1/2007 History of the Decline and Fall of the Roman Empire , Edward Gibbon ISBN: 12-23456-89 ----------------------------------------------------- Can someone describe how to do this Do I have to chop up the text myself I've looked at DrawString and TextRenderer. If there a function that tells me where wordwrap would occur in pixels Hi Scott Yes, you have to cho ...Show All
Visual Studio Express Editions Remove Collapsible Scope?
Is it possible to remove the collapsible options from the editor example, the [-] or [+] for that matter in a situation like this: [-] int Glue::getStickiness() { } GSpangler wrote: Is it possible to remove the collapsible options from the editor For some reason, it's called "outlining." I thought of it as a kind of tree view, but that just shows how far I am from ordinary daily life . Try clicking the VC++ Tools | Options | Text Editor | C/C++ | Formatting and then choose your poison. - Dennis ...Show All
Windows Live Developer Forums Question
My actual site warm2007.blogspot.com can be moved to a live space with the same template i think that it will be more confortable.. ...Show All
Audio and Video Development Mixing rate sink and rateless sink on a tee node
I modified the WavSinkSample and inserted a tee node so I could also add an Audio Renderer output node. When I do this, the topology starts playing just fine. But it ends as soon as the WavSink finishes writing the wave file. Is this the intended behavior I would have expected the topology to stop when all output nodes are done processing samples. I tried a bunch of workarounds: - Changing the order in which I connect the nodes. - Set MF_TOPONODE_RATELESS to 0 on the WavSink output node. - Set MF_TOPONODE_PRIMARYOUTPUT to 0 (index of the audio renderer) on the tee node. - Set MF_TOPONODE_DISCARDABLE on the tee node for all secondary node. But none of these worked. Is there any ways to accomplish when I want or is this a bug Also, I tri ...Show All
SQL Server Deadlock at trigger
a trigger need to insert or update record at the other table in high traffic environments however, the deadlock happens; ie, a trigger running twice at the same time want to need to insert record at the table. i trid to change isolation as SERIALIZABLE or REPEATABLE , but i cannot solve the problem. i guess the "while loop" affects the result because i try to cancel the loop and execute smoothly. How to solve the deadlock Thx ----------------------------- i used the following commands to change isolation level: SET TRANSACTION ISOLATION LEVEL SERIALIZABLE begin transaction commit transaction ----------------------------- the code are as follows: declare setskuCursor cursor local static for select item, qua ...Show All
Visual Studio Team System IIS constraints
If I deploy a web application to an IIS server and I want the app to use forms authentication, I have to set the AuthFlags value to "anonymous" in the applications "Settings and Contstraints..Application Settings..Web Application" setting not in the settings and constraints for the IIS server in the LDD. This seems odd to me. I would have thought that I would need to set Anonymous on the IIS endpoint, not on the ASP appliction. What am I missing Hi Kevin, We investigated this scenario and wanted to verify our results with the product team. They have some additional information to add, which we will post as soon as we can. Thank you for your patience. ...Show All
Commerce Server shipping methdos associate to a specific catalog
Hello Is it possible to associate a shipping metho to a specific Catalog I want to use the commerce server as a basis for many diffrent shops (each has its own catalog and shipping method) Thanks arik ...Show All
Visual Studio Team System Different deploy requirements for differrent environments
Hi, I have an unanswered thread here: https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=912956&SiteID=1 about how we manage differrent requirements for different environments. Here's an example of a problem I'm having. Our developers are all grouped together in an AD group called SomeDomain\Developers. That group has various permissions assigned in our dev environment. We also have those same permissions setup in our DBPro project. However, we don't want that group to have the same permissions on our other environments. In fact, when we go into our live environment we don't want this group to have any permissions at all. If we use DBPro to do all of our deployments then, unless we change something, that group will ...Show All
Windows Forms textbox.text error
I have the following code for a dialogue with a combobox and I defined public variable SiteName as string in a module. When calling the SiteName variable on a main form and display in a textbox, I get an error that says "Error 1 Value of type 'System.Windows.Forms.TextBox' cannot be converted to 'String'." How could I modify it so i can get rid of this error .. Private Sub OK_Button_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click If Me .DialogResult = System.Windows.Forms.DialogResult.OK Then SiteName = siteList.SelectedText() End If Me .Close() End Sub ------------------- This code below is in the main form ------------------------ ...Show All
SQL Server Unexpected end-of-file (EOF) SQL DTS
when i am running bulk insert from codebehind but have a error = " Unexpected end-of-file (EOF) encountered in data file. OLE DB provider 'STREAM' reported an error. The provider did not give any information about the error. OLE DB error trace [OLE/DB Provider 'STREAM' IRowset::GetNextRows returned 0x80004005: The provider did not give any information about the error.]. The statement has been terminated." can i do Sounds like the source provider is expecting data when none was given... Or you've got an EOF character in the file that's causing issues. Ensure your data is clean and mapped appropriately. ...Show All
Visual Studio Express Editions How to use wild card in Select LIKE
I am trying to search the database for a Name using the first few letters of the LastName and First Name type in a textbox The columns in my database are IDNumber and NAME and i want to display record in a listbox using the Name. I don't know the correct syntax for (SELECT * FROM tblResults WHERE Name LIKE '*" & gsFullName & "'") Here is a portion of my codes below: Private Sub SearchRecordsByNAME() Me.Cursor = Cursors.WaitCursor Dim sLastName As String Dim sFirstName As String Dim sMiddleName As String sLastName = "" sFirstName = "" sMiddleName = "" sLastName = LastNAMETextbox.Text sFirstName = FirstNAMETextbox.Text sMiddleName = MiddleNAMETextbo ...Show All
Windows Forms Values dont change but.....
I have properites set up in my classes like this private bool _IsDirty = false; public int SomeProperty { get { return _SomeProperty set { if(_SomeProperty != value) { _SomeProperty = value _IsDirty = true // which mean the value has changed } } } now i have this in my form closing event because if the user changes information but tries to close the form before he clicks the save button it goes here....When the form loads it shows all the information pertaining to an object...the object properties are all binded to controls on the form so thats where the _IsDirty checks to see which ones have changed.... LoadFormToObject();// this is the binding of contro ...Show All
Smart Device Development Hiding the taskbar...?
Hello, I want my program to run as a fullscreen program.I mean the user shouldn't be able to access the task bar.I have a sample to hide it,but it uses user32.dll but CF.NET complaint about this .dll. so what's the way to do this I want the user to only use my application.he/she mustn't be able to switch another application.I thought hiding the taskbar is the solution for this.is there another way Thanks in advance hi, there is no more details that this, it is pretty simple. you can hide the bar at the bottom, which contains the "new" button, by removing the mainmenu1 control found by default in any new form. you can hide the bar at the top, which contains the start menu button, by changing the Wi ...Show All
SQL Server Does not Work --ETL Package Tutorial (Lesson 1: Creating the Project and Basic Package )
Hi, I am new to SSIS. I followed the direction of the tutorial Creating Simple ETL Tutorial package in BooksOnline. I have tried more than five times and have done exactly as suggested in the tutorial but it does not work. The URL is: http://msdn2.microsoft.com/en-us/library/ms169917.aspx I get these warnings and finally fails: 1)[Lookup [30]] Error: Row yielded no match during lookup. 2) [Lookup [30]] Error: The "component "Lookup" (30)" failed because error code 0xC020901E occurred, and the error row disposition on "output "Lookup Output" (32)" specifies failure on error. An error occurred on the specified object of the specified component. 3) [DTS.Pipeline] Error: The ProcessI ...Show All
