djshades2004's Q&A profile
Visual C# how can i snatch the html code within the id authentication?
some application can snatch the html code that the webserver returns,for example: Uri myUri =new Uri("http://10.138.229.47/foxconn"); HttpWebRequest request= (HttpWebRequest)WebRequest.Create(myUri); HttpWebResponse webresponse= (HttpWebResponse)request.GetResponse(); StreamReader streamReader = new StreamReader(webresponse.GetResponseStream(),Encoding.GetEncoding("big5")); but my question is :if i can get the code within my id authentication .(in origin the authentication info may be in the cookies or the session),for example.in campus,i want to check my info in school website,i must sign in first..i know the username and password, so i can get my information (namely the html code that theserver returns) ...Show All
Visual Studio Express Editions Still got problem with Openfiledialog1
Hello. Sorry to botther you again. am still having problems with OpenFileDialog1 when i open a file in RichTextBox, the file opens ok, but the problem is with Rich Text Files. when I open a Rich Text file i get garbage in the file as well, like this: {\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fprq1\fcharset0 Courier New;}{\f1\fswiss\fcharset0 Arial;}} {\colortbl ;\red192\green192\blue192;\red0\green0\blue255;} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\highlight1\f0\fs20 \cf2 Private\cf0 \cf2 Sub\cf0 comboBox1_KeyPress(\cf2 ByVal\cf0 sender \cf2 As\cf0 System.Object, \cf2 ByVal\cf0 e \cf2 As\cf0 System.Windows.Forms.KeyPressEventArgs) \cf2 Handles\cf0 ComboBox1.KeyPress\par \cf2 ...Show All
Windows Forms PerformClick stopped working
I have the code below that worked for a long time and I made some simple code changes, like adding a msgbox stmt, and now none of my PerformClicks work. Anyone know why Here is the code: Private Sub frm_ARExport_Shown( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Shown MsgBox( "AutoStart=" & AutoStart.ToString) If AutoStart Then MsgBox( "Before btnLogin.PerformClick()" ) 'fires btnLogin.PerformClick() 'does not fire MsgBox( "After btnLogin.PerformClick()" ) 'fires btnDoFile.PerformClick() 'does not fire 'Me.Close() End If End Sub Private Sub btnLogin_Click( ByVal sender As System.Object, ByVal e As Syste ...Show All
Visual Studio field VALUE from report
Visual Studio 2005 Crystal 10 How can I get the value from a field in a report. No the text of a formala but the actual results of a formula I have no idea, but if you find out please eamil me with what you find --> millera@lcba.com I have been frustrated by this all day. ...Show All
SQL Server The SQL Server service failed to start
I have mentioned this problem before but it has not been resolved. I am installing MS SQL Server Express Advanced i.e. using SQLEXPR_ADV.EXE. During the initial checks, i get a warning about hardware requirements and I have read the posts about the install failing if the CPU does not support prefetching but I am running a P4 3.0GHz (twin core) CPU with 512MB RAM on Windows XP Pro SP2. The installation fails at SQL Server Database Services during "Configuring Microsoft SQL Server": "Starting SQL Service: MSSQL$SQLEXPRESS" If I click the Retry button, the system goes away and then comes back with the same message. If I click cancel, various roll-back actions are performed and the install fails Is this the d ...Show All
.NET Development parameter Array in Stored Procedure
Hi, my english not so god, so i try to explain. OI, I know that is impossivel to order an ARRAY like parameter for a STORED PROCEDURE. I am reading on CLR STORED PROCEDURES and I would like to know if it works if i create a CLR STORED PROCEDURE receiving an Array like parameter And , this Stored Procedure can be called an application JAVA Something like: let us say that the CLR STored Procedure receives one parameter ARRAY and I in JAVA it orders to execute to be STORED PROCEDURE passing an Array of JAVA. Thank’s It won't work that easily. SqlClr stored procedures only map a limited number of clr types (the core CLR value types + the SqlTypes) to corresponding Sql Server types. Arrays of chars and bytes are supported, m ...Show All
Software Development for Windows Vista Problem with SetTokenInformation (cannot set session id information)
Hi, I have a service that works fine under XP and that needs to launch a process in a given session (not necessarily 0). No communication needed, I just have to launch (inject) the process in the user's session. This is done as follows: OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY | TOKEN_ADJUST_PRIVILEGES | TOKEN_ADJUST_SESSIONID | TOKEN_ADJUST_DEFAULT | TOKEN_ASSIGN_PRIMARY | TOKEN_DUPLICATE, &hToken)) LookupPrivilegeValue(NULL, SE_TCB_NAME, &tp.Privileges[0].Luid)) AdjustTokenPrivileges(hToken, FALSE, &tp, 0, NULL, 0) SetTokenInformation(hToken, TokenSessionId, &m_dwActiveSession, sizeof(DWORD)) CreateProcessAsUser(hToken,... Under Vista, everything works fine except SetTokenInformation that ret ...Show All
Visual Studio Express Editions open new outlook email window in program
Can anyone point me in the right direction on how to click a button and open and MSOutlook new email window. I would also like to program to add an attachment as well. Thanks For some reason I get an error message: ')' expected when i use the could given two posts ago. theStringBuilder.Append("&attach=" + C:\myfile.ext) They want me to insert a ) after the c ...Show All
Software Development for Windows Vista Programatically enabling File and Printer Sharing on Vista RC2 Firewall
My installation needs to enable File and Print Sharing (if authorised by the user), however the function on Vista is: hr = sipFwPolicy2->EnableRuleGroup( NET_FW_PROFILE2_ALL, "File and Printer Sharing", TRUE ); This works fine on English Vista, but run the same program on French Vista and it fails to enable because FPS is called "Partage de fichiers et d'imprimantes" (I think ). Following this logic German, Japanese etc will be called something else. How is it best to implement this feature without having to contain translations for all languages I see from the docs you can pass a resource instead of a Group name but have been unable to locate the correct resource necessary I have be ...Show All
Software Development for Windows Vista Expanded Memory in Vista for DOS Applications
A DOS application which requires expanded memory (EMS) is required to be run on Vista. In earlier releases the expanded memory could be set to auto using the command.com->properties->memory tab. Vista does not allow to change this settings due to security reasons. Is there a way of increasing the expanded memory to allow a huge DOS application to run in the Vista environment I wasn't able to edit the "_default.pif" either. I was able to change ownership of it, and give myself write permission, but that didn't help. Maybe booting into safe mode will help, but I have too many program open right now to try that. I'll see later. Tor. ...Show All
Smart Device Development How to connect to GPRS network from code?
When Internet Explorer is ran on my mobile phone it automatically connects to Orange GPRS network and I see a popup/hint on top of the screen saying "Connecting to GPRS...". I want to do the same in my application. Detect somehow that the network if available and just connect to it. I've looked in settings and iI think this is somehow connnected to modem connections but still I dont know how to start them from code. Any help/link will be appreciated. When Internet Explorer is ran on my mobile phone it automatically connects to Orange GPRS network and I see a popup/hint on top of the screen saying "Connecting to GPRS..." ...Show All
Microsoft ISV Community Center Forums Access 2002 Error 2455 - invalid reference to the property Form/Report
How can I refer to ControlSource property of textbox control of a subreport The reference below ended with the error 2455 - invalid reference to the property Form/Report. It was written in Report_Open event of the main report. or, cannt we refer to the control in a subreport Reports![report_name]![subreport_name].Report![textbox control_name].ControlSource Original object was to set ControlSource of a textbox in a subreport at runtime . When I tried to set ControlSource in Report_Open event procesure of sub report, I received "2191" error - you cannot set the control source property in print preview or after printing has started. Where and when could I set this property Yuko I'll ...Show All
Windows Live Developer Forums Popups for pushpins have wrong Y coord in Firefox
Not doing anything fancy - just supplying some text to popup for a bunch of pushpins. Location of popup is fine in IE, but in Firefox the y coord discrepancy gets worse the larger the y-pixel value of the pushpin is in the map. Anyone know of a workaround Hi John, Thank you again for your post. I used the code that you posted here: http://viavirtualearth.com/Wiki/PopupContentonDemand.ashx I believe it implements the changes you suggested to me above. When I use this code, I still encounter the issue in both IE 6 & 7. Do you have any other thoughts Thanks, John ...Show All
Visual C++ Memory leaks during using dll functions
Hi there, i am using memory management functions of a dll. All I have are the header files for this dll. So, when i use for example dll_alloc_picture(X) and then forgett to use dll_free_Picture(X) the normal CLR memory leak functions don't help. Does someone have a suggestion how to cope with that, and maybe someone could give me a hint to the state of the art software for solving such problems. Thx in advance A.Gallus There are some tools like Numega Dev Partner Studio and Intel vTune Performance Analysers dealing with profiling stuffs. ...Show All
Windows Forms drag the panel
how can i drag the panel with form by mouse Try something like this: Private mMousePos As Point Private mPanelPos As Point Private mDragging As Boolean Private Sub Panel1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseDown mDragging = True mMousePos = Me.Panel1.PointToScreen(e.Location) mPanelPos = Me.Panel1.Location End Sub Private Sub Panel1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseUp mDragging = False End Sub Private Sub Panel1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseMove I ...Show All
