Visual C# Novice's Q&A profile
Visual Basic Displaying Windows screen while program is not stopped.
I have a vb.net program (v2003) that needs to display a windows screen and pause x number of seconds before refreshing it again. However, I cannot get the screen to display unless my program stops. I have tried the Timer class as well as my own pause, but the screen will not display until I stop, not pause, the program. Any help please Thanks, Donald Not sure if I understand the problem, but try throwing in some code like below, at the point you want the 'window' updated: Me .Invalidate() ' or ControlNameWhatever.Invalidate Application.DoEvents() ...Show All
SQL Server use exists in join
Hello, Can i somehow use exists() function in JOIN ON clause for example SELECT * FROM Table1 INNER JOIN ON Table1.Col1 = Table2.Col1 AND EXISTS(SELECT * FROM Table2 WHERE Table2.Col2 = Table1.Col2) It doesn't work on my query. So, basically i want to do an inner join so that Table1 gets filtered. Then I make sure that every entry in the filtered Table1 has an existing related entry in Table2. i need to do exists because there could be more than one relation in Table2 for each entry in Table1, but i don't want multiple repetition of entries in the filtered Table1. (Not sure if i am making it clear!) I need distict selection, but i am adding NEWID() at the beginning of my query so distinct doesn't work for the rows. with my current query, i ...Show All
Visual Basic i need help! please someone help!!
hey guys, i'm doing a project that requires me to build an application with a database. i need to gather information from the database to use with the applicaiton. for eg.. a login page. and the application will look for the appropriate userId and passWord from the database. can someone give me some starters as to how to do it. it has been a frustrating 2 weeks trying to do sumthing. i've tried table adapters, functions and everything but i just can't get it to work. THANK YOU VERY VERY MUCH!! mel well, Dim cnn As SqlClient.SqlConnection = New SqlClient.SqlConnection() cnn.ConnectionString = "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\winApp\winApp\winAppDB.m ...Show All
Visual Studio svchost.exe- Application Error
When booting up, during the log on screen, I get the following error message; svchost.exe- Application Error X- The instruction at"0x7c918fea" refferenced memory at "0x00000010". The memory could not be "written". Click on OK to terminate the program. Click on cancel to debug. I have tried many times both options but nothing helps. Does anyone have any thoughts on the subject how to fix this Forum: Visual Studio Debugger Posted: : Sunday, October 22, 2006 11:10 AM Post Subject: : svchost.exe- Application Error dube_1969 wrote: When booting up, during the log on screen, I get the following error message; svchost.exe- App ...Show All
.NET Development strange problem about the email encoding
i got a web application. if you register there, system will sent a mail to your email. i use Jmail to complete my email function, and it works well. but sometimes, some user will report me that they recieved clobber mail. i checked these mail and found that there is Base64 encoding. so i cannot locate the problem, the error of my Application or JMail, or SMTP server. or email client please help me thanks and best regards Hi, Your thread seems to be more appropriate here and hope you find satisfactory answers. Thank you for understanding ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Draw() called before Update()
I noticed Game.Draw() is being called before Game.Update(), which doesn't (seem to) make sense. Is there any suggested way of dealing with this If Update() is supposed to, umm, update the state of the application to a certain local time, before the first Draw() there is no state ready to be painted to speak of. Well, the forum kind of does have a known issues sticky. It's jut over at Connect. You can review all the previously reported issues and suggestions there. No real point in having them in two places, keeps it simple that way. Also, I'm sure the FAQ will expand, the team might just be a little busy at the moment for keeping it updated and improving upon it. That's where the community comes in ...Show All
Visual C# Problem: generics, XMTA and VS SP1
After installing Visual Studio SP1 a project cannot be compiled when compiling, for example, the following code and there is an XMTA file in the project: public class Test1 <T1> where T1 : System.Windows.Forms. Control { } public class Test2 : Test1 <System.Windows.Forms. Control > { } If this worked with the RTM version of Visual Studio 2005 please report this problem here: https://connect.microsoft.com/VisualStudio ...Show All
SQL Server replacing all the ' in a table
Hi all I need to remove all the ' in a table and i am having some problems with the script, any help would be great Thanks Richard use the following replace statement, Update tableName set ColumnName = Replace(Columnname,'''','') Where Columnname Like '%''%' ...Show All
Visual Studio bootstrapper for msp file
Don't know why this went into the from forum, so once again... Hi, How can I create a bootstrapper for a msp file file that calls msiexec like: msiexec /p product.msp REINSTALL=ALL REINSTALLMODE=omus I have a definition file like: < xml version="1.0" encoding="UTF-8" > <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> <Visible>True</Visible> <ProductName>Windows Installer 3.1</ProductName> <Install>True</Install> </BootstrapperPackage> </ItemGroup> <Target Name="MyProduct"> ...Show All
Microsoft ISV Community Center Forums Disable events in userform
Is there a way to disable Userform events within Userform code I am trying to dynamically set scrollbar.max without triggering the Scrollbar_Change event procedure. Hello Joe, I am using Excel 2003. I tried it again today and it is still working. In Tools - References There are the usual 4 Visual Basic for Applications Microsoft Excel 11.0 Objectr Library OLE Automation Microsoft Office 11.0 Object Library. There is one other: Microsoft Forms 2.0 Object Library Try referencing these and see if it helps Chas ...Show All
Visual C# Number Guessing Game
Hi, I am new to C#. I am originally a Visual Basic programmer and was wanting some help on a guessing game of my own. I was wanting to know how I would use the random function in my program to generate integer between 1 and 100. This program could either be a console app. or a Win app. However, I have no experience in Win app's in C#. Any help will be appreciated. pretty simple! use the Random class and give it a min and max value to generate a number with using the Next() method: Random theRandomGen = new Random(); int numberChosen = theRandomGen.Next( min, max ); in your case: Random theRandomGen = new Random(); int numberChosen = theRandomGen.Next( 1, 100 ); this will work for ...Show All
Visual Studio Express Editions How to compile C codes in VC++
I know till now what I can do is just to build a project, and program using c syntax, and then save as .c file. But it seems it doesnt work like this. Does it mean I didnt choose the right compiler The debugs come like this: 'test4.exe': Loaded 'D:\previous\My Documents\Visual Studio 2005\Projects\test4\debug\test4.exe', Symbols loaded. 'test4.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'test4.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded. 'test4.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', No symbols loaded. 'test4.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded. 'test4.exe': Loaded 'C:\WINDOWS\system3 ...Show All
Visual Studio 2008 (Pre-release) Vista Beta 2 IIS7 setup
I've just upgraded to the new Vista Beta 2 build 5384 and am unable to get any of the WCF samples provided with the SDK to run. I'm pretty sure it's just an IIS7 setup issue. From reading around i've seen a few sites recommending that i add a MIME type mapping for the .svc file... but i cant' work out how to do that. This ( http://www.iis.net/default.aspx tabid=2&subtabid=25&i=1032) suggests that there should be a MIME Types item in the list of things i can configure for the default web site in inetmgr ... but it's not there Here's what i have done so far. Installed... 1. Vista 2. IIS - added the windows feature 3. Windows SDK 4. WCF (en_windows_communication_foundation_beta2_x86) 5. Visual Studio 2005 6. vse ...Show All
Internet Explorer Development IE Interop
Hi, I've been trying to write a Custom Download Manager for IE using C#. I've found some information here: http://msdn.microsoft.com/library/default.asp url=/workshop/browser/ext/overview/downloadmgr.asp , but I can't figure out what CLSID I should refer to my managed library as, or if I need to register it or something. I don't have any experience in working with COM, so using a hybrid solution could be difficult for me. All suggestions are welcome. Reuben. Sorry if I was unclear, but I'm using C#, and all my code is managed, so there is no COM component for me to register. I registered my managed DLL (with the ComVisibleAttribute), and I know that IE is trying to load my library, be ...Show All
Software Development for Windows Vista Adding Custom ExternalDataExchangeService via web.config
Was really excited when I read the following in the "What's New" doc for the VS WF Extensions install.. 10.1.1.2 Host and Services Migration and Code Changes The host won’t need to manually add services to the ExternalDataExchangeService. All of this can be done via the Application or Web configuration files. So... while leaving the existing ExternalDataExchangeService line in my web.config file, I added the following line (eager with anticipation... :D) < add type= "custom.assembly.MyCustomServiceType, custom.assembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" /> But alas, as soon as I removed the code I had been using to "manually" add my custom service and restarted the app ...Show All
