Michael Tsai's Q&A profile
Visual Studio Express Editions Reading info from html doc
Is it possible to read info in a html doc and copy it to a textBox control. I would like to be able to open a webpage in a WebBrowser and copy the info inside of the webpage to a textBox in my application. absolutely. The webbrowser control has a "DocumentText" property which has the entire contents of the page in html code. So you can take this and copy it into the textbox... this.textBox1.Text = this.theWebBrowserControl.DocumentText; does this help is this what you are after ...Show All
.NET Development What is the easiest way to pass data from the results of a dataset to local tables?
Hello, I have populated a dataset and wish to pass the results of SQLDataset back to my local table, tblCustomer using the following code: myNetworkConnection = New SqlConnection("NETWORK_CONNECTION_STRING") myNetworkSqlDataAdapter = New SqlDataAdapter("Select * From tblCustomer", myNetworkConnection) 'Read in dataset from network table tblCustomer ConnectionString = NETWORK_CONNECTION_STRING 'establish network connection myNetworkSqlDataAdapter.Fill(SQLDataset) 'pass dataset to local tables I know I could use something like this: myDataRow( "Cust_Number1" ) = myNetworkDataSet.Tables( "tblCustomer" ).Rows(0).Item( "Cust_Number1" ) and then use: myNetworkSqlDataAdapter. ...Show All
SQL Server How to search for a Stored Procedure?
Hi, Could anybody please tell me how I can search for a stored procedure in SQL Server 2005 I know the name of the stored procedure and I want to find in which database that stored proc is located/stored and I want to see the code of it. (I have all the necessaary previleges.) Please tell me how I can I do this. Thanks in advance. Regards, Ram. Hi, you can check for existance of stored procedure as .. declare @name varchar (100) declare @spname varchar(100) declare cu1 cursor for select name from master..sysdatabases open cu1 fetch next from cu1 into @name while @@fetch_status =0 begin exec ('select * from ' + @name + '..sysobjects where xtype = ''P'' and name = ''' + @spname +'''') if @@rowcount> 0 begin select @name as ...Show All
Windows Forms Hi!! How can i make the background transparent of my bitmap..... i have loaded it as win form
well i m a bitmap of a racing car......but the car is in the center and outer portion is of white color and when i load it as form in C# vs 2005.....then the white background also...comes....with the bitmap...is there amny way that...the racing car only comes not the whole image with background... thank u... The background white color also comes with the bitmap image in C# application... In order to avoid this problem, change the background property of the bitmap image to transparent. This can be done using Adobe Photoshop....... ...Show All
Visual Studio Express Editions Trouble changing Label Text Permanently
I have two custom fields in my application. By default, they are labeled Custom and Custom2. From the main screen I have set up a Text Box and Button to allow the user to rename the fields (the label) for their own use. The code I am using for the Custom field is below: Private Sub Change_Button_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Change_Button.Click List_Screen.Player_InfoDataGridView.Columns(9).HeaderText = CustomChange.Text Filter_Form.Custom.Text = CustomChange.Text Filter_Form.Custom_2.Text = CustomChange.Text MsgBox( "Custom field has been changed to " & CustomChange.Text) CustomChange.Text = "" End Sub To explain some of the code I am using, List_Scree ...Show All
Software Development for Windows Vista How to start process in session before user logs on?
I have a need to start a process in a session before the user logons on. On XP I used a Windows Logon Notification Package to do this. When a new session was created, Winlogon.exe in that new session called my WLNP and it was able to start the process before the user logged on. The process is used to support smart card logons for that session. I'm trying to find out how to do something similar on Vista. I know logon notification packages are no longer supported. I know how to write a service to get session creation notification, but I don't know how to start a process in the new session before the user logs on. Is there a function I can use to start a process in another session If so, I could have my session tracking sevice start th ...Show All
Visual Studio Express Editions SImple Calculator problems
can anyone help me on how to make decimal point and to also perform the order of operations .. doing more then one problem at once such as 2+3*4 thank you SCott For operator precedence have a look at: http://msdn2.microsoft.com/en-us/library/fw84t893.aspx Not too sure what you mean by "how to make a decimal point". ...Show All
SQL Server ERROR IN SQL SERVER ENGINE
I have a problem starting my SQL Server engine. Its service has been stopped. It was working properly till evening “ December 8, 2006 ”. But when I came to office at 10:00 AM, it did not start. When I checked the service in “Services.msc”, it was stopped. So, I tried to start the service “ SQL Server (MSSQLSERVER) ”, but it failed with message “ Error 1069: The service did not start due to a logon failure ”. I opened “Event viewer” and looked the list in “Application” log to find out what had happened. There was an entry for “SQL Server” source with type “Failure Audit”. There was a message “ Login failed for user sa ”. What went wrong….Can someone help me Plz its urgent…. My company deals with many IT solutions li ...Show All
Software Development for Windows Vista Microsoft Security Center Registry-Related Operations
Hello All I don't know whether my question is related to this forum or not. Sorry, if it isn't. As I know, Microsoft Security Center, uses two different methods to report the status of Anti-Virus and Firewall programs: 1) Through WMI (Which requires that the program's manufacturer provides a WMI provider.) 2) Through the Registry (In the case that there is no WMI provider.) My question is about the latter case. How does Security Center get information about the Anti-Virus program when there is no WMI provider Where, in the Registry, does it check What entries are checked Is(are) there specific entry(ies) which all the Anti-Virus programs use Best Regards ...Show All
Visual Studio Express Editions Cannot install visual studio express in vista
When I try to run vcsetup.exe, I get up to setup is loading components and then get a message:"There is no disk in the drive." Vista then tells me that I have to download windowsXP Service Pack2. All efforts to download SP2 lead me to windows update, which tells me, that I don't need any updates. Please help, Gerhard I got a similar error. I'm running Vista Home Premium on my tablet, and every time i try to install VB.NET 2005 Express Edition which I downloaded off the Express Editions Site, Set-up tells me to download Windows XP Service Pack 2. No "no disk in drive" error though... VB.NET worked fine while I was running XP Tablet PC Edition, so it should be incompatibility with Vista. Anyone know w ...Show All
.NET Development serialport
I create a serialport and i add Datareceived event. When a call is coming i use readline function. I see only RING RING RING... I want to get the caller id. When i use HyperTerminal i write at,then at+vcid=1 and the number is displaed when a call is incomning. Also i receve OK when i write this strings in HyperTerminal. In my program i use the functions write and writeline whith the strings AT, AT+VCID=1 but i dont see any "OK" just the strings i wrote. I dont know if i use properly the "write" function to send strings to the com port or is something else that i do wrong. Can you help me with the caller id This is the code in c++ . No problem if you show me something in basic p ...Show All
SharePoint Products and Technologies can we debug sharepoint execution
when sharepoint is executing, like whenwe are creating a list, site or whatever that belongs originally to sharepoint, can we go and debug what s happening and put break points, trace....etc Thank you All the code behind is compiled into the Microsoft.SharePoint.*.dll s. All of them are installed to the GAC and are compiled in the released mode. You would need debug symbols for debugging. So you cannot debug Microsoft's code. ...Show All
Software Development for Windows Vista Repeat processing for multiple users in state machine
Document review workflow with one to many reviewers. Each reviewer can approve, reject, skip, submit comments, etc. (i.e. several possible events). I am looking for recommendations on how best to implement this facet of the state machine. One idea would be to have a starting workflow (sequential or state machine) with a replicator that is driven on the list of users. Then for each repitition, start a state machine for each of the users to do their part. Matt ...Show All
.NET Development Multiplatform (32bits/64bits/CE) & Interop
If I write a pure C# application, only using the standart public API, no interop, the same binary should work well on32 bit, 64 bits and perhaps on the compact framework as well if I link against it. Now how could I achieve the same thing if I do interop and I have a managed C++ API let say I have a managed C++ module compiled for 3 different target but with always the same interface: mycppmodule32.dll mycppmodule64.dll mycppmoduleCE.dll let say in the C# code I also do some interop internal class User32 // & CE ! { [DllImport("USER32")] public IntPtr GetHdc(IntPtr hWnd); // 4 byte IntPtr } internal class User64 // not sure it exists, but I assume.... { [DllImport("USER64")] pub ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Texturing problem
Hello, I'm writing my own content importer for my maps. At the moment, I'm able to load all triangles and draw the map but i have a problem with textures. In my importer i load texture like this (it's just a test) : BasicMaterialContent material = new BasicMaterialContent(); String texturePath = Path.GetDirectoryName(filename) + "\\Textures\\wall.jpg"; if (!System.IO.File.Exists(texturePath)) throw new Exception("Texture not found !"); material.Texture = new ExternalReference<TextureContent>(texturePath); Then I apply my texture to a mesh : builder.SetMaterial(material); When I deploy it on xbox360 or run it on my pc, my mesh have a color similar to my texture but it's just a color! I ca ...Show All
