r4nd0m's Q&A profile
Visual Basic convert graphic to bitmap
I have dawn a graph on a graphic and is need to convert this to a bitmap. How do I do this Next i need to disply the bitmap and draw more graphs on it. How is it done Any advise would be appreciated. Thanks in advance. Do you mean you've drawn onto a Graphics class, presumably in OnPaint Instead, create a Bitmap, create a Graphics instance from Graphics.FromBitmap, and then when you've drawn on your bitmap, draw that to the screen. To draw it to the screen, use the Graphics object passed to OnPaint, and one of the DrawImage overloads it has. If you make this bitmap a member variable, you can draw on it where-ever you like ...Show All
.NET Development Session + ArrayList + Few pages - problem - help me please!
So I've got simple global.asax file when I have: Global.asax: Sub Session_Start( ByVal sender As Object , ByVal e As EventArgs) Session( "Cart" ) = New ArrayList I have also Default.aspx when I have radiobuttonlist (id=rb) and simple code on click button: Dim myList As ArrayList = New ArrayList myList.Add("x") myList.Add("Y") myList.Add("z") Session.Add("Cart", myList) Response.Redirect("Default2.aspx") On PageLoad event I have: Dim myList As ArrayList = CType(Session("Cart"), ArrayList) rb.DataSource = myList rb.DataBind() So when I click the button, t ...Show All
.NET Development Simulate return data data from WS call
Hi there, Im consuming an Axis/Java web service, that returns an object that contains arrays of sub-objects. For example a persons details with an array of EmailAddresses. This all works fine, I manage to call it without any problems. What I want to do is stub out the call to the web service to give a client a prototype to use for their integration work (they wont have the java system in place yet!). I wanted to achieve this by giving them a sample xml document, that could be deserialized from the xml document into the generated w/s classes. The straightforward way would be to load an xml document and create these objects by hand, is there a ...Show All
Visual Studio Team System Help me please with WebTest
Hola, si por favor me pueden ayudar con las siguientes dudas: Es posible mostrar la ejecucion de un WebTest en un navegador aparte o solamente en el Web Brownser que aparece en el Visual Studio Que tengo que hacer para que aparezcan las ventanas pop-up de mi aplicacion en el WebTest, cabe indicar que yo abro estas ventanas con codigo de javascript Jorge, 1) No, no hay otra opcion para ver las paginas que en el Web Test Result Viewer. Cual problema(s) tienes con el seccion Web Browser alli 2) Son los pop-ups en el webtest Si el Web Test Recorder no los grabo, otra opcion es usar Fiddler ( www.fiddlertool.com ) que e ...Show All
Visual Studio Tools for Office Range.get_Information() is causing Application.XMLAfterInsert to be fired
Hi, I am getting some strange behaviour which I am having a hard time reproducing in a new project. I know that without being able to reproduce it I am not being very helpful, but I am running out of options and time. I will keep trying to reproduce it, but in the meantime any suggestions you might have would be greatly appreciated. I have a Word Template project and I am using XML tags to mark certain parts of the document that interest me. I then subscribe to the Application.XMLAfterInsert and Application.XMLBeforeDelete events so that different parts of the application can be alerted of changes made to the document. Everything wo ...Show All
SQL Server Certificate limitations in SQL Server 2005
I have a Web site that has a database backend, which stores user information. I would like to encrypt the user information in a granular way. My question: Is there a limitation to the number of certificates that can exist in SQL Server 2005 I would like to issue a certificate for each user of my Web site, whereby the certificate is protected by the user's password (which I will not have access to -- the password will be stored as a one-way hash in the database). The certificates will provide access to a symmetric key, which will decrypt row-level data pertaining only to a particular user. The certificat ...Show All
SQL Server Query Designer in SQL 2005 is total %#%!@
What happened to the Query Designer It's a modal window that doesn't allow you to drag tables from other databases into the query. SQL 2000's verion of Query Designer was so much better than 2005. What happened Are the developers at Microsoft completely retarded Also, why do I have to log into my database servers everytime I open "Server Management Studio" Who thought up that nice feature Probably the same brillant folks that redesigned Query Designer. Why would you want to have a forced login procedure for every database everytime the program is opened. Once again Micro ...Show All
Visual Basic The WebBrowser Control as an HTML Editor
We've seen several questions about using the DHTMLEdit control as an HTML editor. That's not needed. The WebBrowser control is quiet the good WYSIWYG HTML editor. Here's how to do it.... Public Class Form1 Protected m_EditMode As Boolean Protected Const HTMLSalutation As String = "<html><HEAD></HEAD><body>" Protected Const HTMLClose As String = "</body>" & "</html>" Protected Friend WithEvents doc As MSHTML.HTMLDocument Protected Friend WithEvents ctxmnu As New ContextMenuStrip Protected Friend WithEve ...Show All
Visual Basic Disabling specific controls
I used this code to disable all of the controls in a tab...Now I want it that only certain specific controls(e.g. textbox and datagridview) to be disabled...And one more thing, is there any way as how can I change the appearance of the disabled controls It seems that whatever color I use, nothing change..Plese enlighten me...thanks. For Each clsControl As Control In tabEditPatient.Controls clsControl.Enabled = False clsControl.ForeColor = Color.Green clsControl.BackColor = Color.AliceBlue Next Why cant you simply do something like the following Sub PartialDisable ...Show All
Visual Studio 2008 (Pre-release) What's the soure of this 3D rendering "bug"?
I've run into some "rendering" problems using Viewport3D. Sometimes pictures tell more (than a 1000 words) so here goes: This first image shows the rendered viewport with a blue "floor" and a red "wall". As you can see, the floor has "spilled" into the wall. http://home.comcast.net/~tlanglo/WinFX/Attachments/WallAndFloor_NotOk.png The second image shows the same wall and floor, but doesn't have the same problem (there's still some problems, though). http://home.comcast.net/~tlanglo/WinFX/Attachments/WallAndFloor_Ok.png And here's the XAML file I used in the example: http://home.comcast.net/~tlanglo/WinFX/Attachments/ ...Show All
.NET Development List files on ftp server
Hello all, i have created an ftp client in C# using Wininet and i am able to download upload files from and to my ftp server, what i would like is to have the list of files and directories on the ftp server using wininet. any help would be great. With WinInet you'll have to PInvoke FtpFindFirstFile and InternetFindNextFile . Just FYI: there is an FtpWebRequest class in 2.0 that can make some operations easier, but doesn't actually provide as detailed an API as WinInet. ...Show All
SQL Server SSIS Connection Object and Expressions
I have been writing a custom source adapter that uses a file connection within the connection manager. If I hard-code a specific file then the component works. However if I use a file connection that has an expression defined which updates the connection, for example when you have a for-each loop looping over a set files. The file connection doesn’t seem to re-evaluate expression each time you access the file connection via the code. Is there something that I am missing or is there a bug Where is the expression defined On the connection manager within the dataflow If so, it will only be evaluated once bef ...Show All
Visual C++ Code used to clear text boxes
im new to c++, and i would like to know the code that you need to use to clear text boxes. regthesk8r wrote: im new to c++, and i would like to know the code that you need to use to clear text boxes. SetWindowText can be used with an empty string. ...Show All
Visual Studio Express Editions SmtpClient MailMessage Preview
I'm converting an app from a Win32 Pascal to .NET 2.0 c# The old program used MAPI Calls, etc to login and send emails I am able to convert the mail send functionality fine, but is there a .NET equivalent to the MAPI_DIALOG flag to preview the email before it actually sends Thanks, David You might want to have a look at the networking and communications group to see if one of those guys might be able to help. http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=40&SiteID=1 ...Show All
Visual Studio install on same system as vs 2003?
install on same system as vs 2003 I have beta 2 installed on a Virtual PC 2004 virtual machine. Frankly, it is as slow as can be. I've given it 768 megs RAM. Every antivirus I've tried slows it down to a halt. Since a GO LIVE has be issued, I'd guess it is stable enough. In the virtual PC I had no trouble following the instructions and uninstalling previous versions. Is there anything with beta2 and sql server 2005 beta 2 that conflicts with vs 2003 and sql server 2000 dennist Virtual PC was a bust for me. However, I installed beta2 on my host with vs 2003. No problems. ...Show All
