nabendu's Q&A profile
Visual C# VS 2003 C# and M Access Database using together
Hi, maybe someone can help me to understand what advantages and disadvantages gives VS 2003 C# and M Access Database using together Are these tools good 'partners' Maybe someone knows where I can read about it. What would be a better solution I'm making an app that'll be offline, so no mysql or sql. Does VC# have a local DB with it like Java ...Show All
SQL Server SQL Squry Error
Thanks in advance. I got an error on following SQL query. Maybe compile time (syntax) error, because of @Code is not valid field I wanted to use several @Code1, @Code2,.... for recalculating SQL query, using a loop later. Or better ideas Please, help for new comer ! ---This is visual scrip---- DECLARE @Code Char(50); Set @Code = '(Job_Code = ''A1'' Or Job_Code = ''A2'' )'; SELECT * FROM Mytable Where @Code do a PRINT of your SELECT statement to see how its building up. Then you can either modify your SELECT or your @variable to get the right syntax. Also try using varchar instead of char. char pads extra spaces at the end if the string is shorter than the allowed leng ...Show All
Windows Forms Remove blank lines from a textbox
Blank lines in a textbox can be: A series of spaces followed by a carriage return OR A carriage return OR A line filled with tabs How can I remove all blank lines from the text entered in my textbox not quite. I guess you could go through each line, see if there is a new line and replace all newlines in that line with just 1 newline for (int counter = 0; counter < theTextBox.Lines.Length - 1; counter++) { if (theTextBox.Lines[counter].Contains(Environment.NewLine)) { theTextBox.Lines[counter] = theTextBox.Lines[counter].Replace(Environment.NewLine, Environment.NewLine); //replace all newlines in this current line with just a singular newline } } something l ...Show All
Visual C# Mouse Wheel Won't Scroll
I have a Microsoft Comfort Optical Mouse 3000 which works great with every application except Visual Studio 2005. I have to spin the mouse wheel at a very high rate to get any scrolling at all in VS2005. I have the latest Vista drivers installed. There are some known issues with the Microsoft Comfort Optical Mouse 3000 in Windows Vista, an unofficial workaround you can try is the following: Install the Vista IntelliPoint software: http://www.microsoft.com/hardware/windowsvista/support/intellipoint.mspx or Click on the Start Button Start typing Device Manager Open Device Manager Disable the HID Compliant Consumer Control Device ...Show All
Audio and Video Development Pause\Play on 1 button on my popup menu
I have a popup that I want to have 1 button that is "pause" when he movie is playing but after pressed it turns into a play button...I know how to animate its state so that it shows "play\pause" graphics but in my script I need to know a good if\then command for this button. Case "menu_1" player.playlist.pause(); thats what it is right now and it pauses the video and switches to the "play" graphic for the button...just need a good if\then script for Case "menu_1" Thanx in advance! < cue begin = " ($playState=1) " end = " ($playState!=1) " select = " id('playPauseButton') " > < set style:backgroundColor = " blue " /&g ...Show All
SQL Server Parameterized filters on publication???
Does anyone know if you can use any other parameters in the row filters for merge replication besides the functions SUSER_NAME() and HOST_NAME() I would like to create a publication for a couple thousand mobile databases to replicate with one SQL Database but filter what data they get based on some parameters. Do I have to hard code WHERE statements into static filters and create a publication for every user (seems a little ridiculous) Is there a proper way to do this using the SUSER_NAME and give each user a different connection name that will filter data properly Thanks, Patrick Kafka You can achieve what you wish using the SUSER_SNAME filter. Lets say you have a table: customers ...Show All
Community Chat DirectX in Internet Explorer
I think it would be really cool if we could use Managed DirectX on a web page. Being able to leverage our skillset in DirectX on a web page seems like a logical next step. Anyone else agree Look into the Windows Presentation Foundation. Its not quite the same as what you're looking for, but its along the same lines. It allows you to develop much richer graphical apps that can run in the browser as well as on the client. -Reza ...Show All
Windows Live Developer Forums IM
What is the MsnError:800? And What is the newest Msn IM Api? ...Show All
.NET Development ADSI connection string and more stuff
Hi everyone, Primary platform is Framework 2.0. My goal is try to achieve the full list of workstations allocated in a specific Active Directory. I'm trying this unsucessfully: Dim objConnection As New SqlConnection() Dim objCommand As New SqlCommand objConnection.ConnectionString = "Provider=ADSDSOObject;User Id=40990880@redcam.es;Password=4099" objConnection.Open() --HERE FAILS COMPLAINING ABOUT 'PROVIDER' WORD objCommand.Connection = objConnection objCommand.CommandText = "SELECT * FROM " _ & " ' LDAP://redcam/CN=Computers,DC=redcam,DC=es ' WHERE objectClass= 'I haven't idea what is needed here Dim oReader ...Show All
Visual Studio Team System Search and delete
In Source Safe I made a wildcard search for files that I want do delete. I can't find any "search" function in the Source Control Explorer...does it exists Hi: You are correct that version1 of our product does not provide any content search functionality. We are however looking at this very heaviliy for our next version. Thanks, mario ...Show All
Windows Forms Control.Leave() is not called when a user selects a ToolStripItem.
I have a form that contains TextBox controls that the user enters data into. In the TextBox.Validating() and TextBox.Leave() methods, I validate the data that the user entered. This works fine when selecting other TextBoxes on the form. The problem I am having is a user enters data into a TextBox and clicks on a Save button in the ToolStrip or a Save menu item in the MenuStrip. The TextBox.Leave() and the TextBox.Validating() methods do not get called when the focus is given to the ToolStripItem. According to the MSDN documentation on the Control.Leave() method, these calls should happen when the focus goes to the ToolStripItem. Can someone please explain why this does not happen, and if there is a workaround Thanks, Doug ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do you pronounce XNA?
Is it X-N-A or is it Xee-na I think the answer depends on how badly one wants to get punched in the head by his or her fellow developers... :P Since I value my cranium, I tend to stick with X-N-A. But if you're looking to raise the ire of your buddies, don't hesitate to go with Xena occasionally. :) ...Show All
Visual Studio Express Editions Drawing Ellipses at a specified angle (not aligned to the x or y axis)
I am trying to draw an ellipse at the centre of a panel such that the semi major axis of the ellipse is rotated at a user specified angle ie. rotated ellipse. I have no problem drawing an ellipse at the centre of a panel provided there is no rotation applied, but as soon as I try to rotate the ellipse I fail to achieve the desired result. The method I have tried is to use the Graphics.RotateTransform and graphics.TranslateTransform methods. The Graphics.RotateTransform method seems to rotate about the origin (0,0) point of the panel, so I have tried the following: First draw the ellipse centred at (0,0) Rotate the ellipse using the Graphics.RotateTransform method Translate the elipse to the centre of ...Show All
Visual Basic how to call fun in console
hi we are declaring and creating function in windows application in vb.net how to call that funcation in console applicaiton If they are in the same solution: WindowsApp1... Class Class1 Public Function1() Return True End Function End CLass now from the sub main of ConsoleApp: Public Sub Main Dim c as New WindowsApp1.Class1 If c.Function1 then dosomething end if if they are not in the same solution the same prinicple applies you just have to make a project level reference to the windows application...(Project menu "Add reference") ...Show All
Visual Studio Tools for Office starting word
hi, i need a short stand alone application, that starts word, if it isn't started. please, could anybody help me This forum is dedicated to the VSTO technology, which doesn't support standalone applications. Please direct this question to the office.developer.automation newsgroup. Be sure to state which programming environment you're using and which version of Office you're targeting. ...Show All
