Software Development Network Logo
  • Microsoft ISV
  • Visual Basic
  • Visual FoxPro
  • Visual C++
  • Visual C#
  • Game Technologies
  • Audio and Video
  • Windows Forms
  • SQL Server
  • Windows Vista
  • Smart Devicet
  • SharePoint Products
  • Visual Studio
  • VS Team System
  • IE Development

Software Development Network >> jim rozak's Q&A profile

jim rozak

Member List

Anna Vanyukova
MAwais
FM2
Stephen S1
Adam Plocher
PoorSQLGuy
Ludo-R
markzollo
Lee John
Troy Lundin
ponoy
Buddhist
erinselena
Mickey G
jchau
The Kelvinater127
John123
SnavsDK
Anu Beniwal
Michell Cronberg
Only Title

jim rozak's Q&A profile

  • Visual Basic convert image to binary

    hi to all i wat to convert image in to binary but in specefic hight and width convert image in to binry and binary to image if any one have it so please send with code pleas help me Chirag vm, According to your demand, I suggest you to use the BinaryMessageFormatter class that serializes or deserializes an object, or an entire graph of connected objects, to or from the body of a Message Queuing message, using a binary format. For further information, please take a look at the msdn about this class: http://msdn2.microsoft.com/en-us/library/system.messaging.binarymessageformatter(VS.80).aspx There is also a sample project in code project titled Binary streaming of large images from Database that explains how to ...Show All

  • Visual C++ Automatically setting focus to edit box in a dialog box

    I have a modeless dialog box that has an edit box and a button on it. A command is typed into the dialog box and then the user clicks the button (or just hits the enter key) to dispatch the command. The program has several other windows running, but when the program starts, and after each command, the focus is properly set back to the dialog box. The problem is, you must still click with your mouse inside the edit box to get the cursor there and be able to type the command. Is there a way to make it so that when the focus goes to my dialog box, the text box is already active so that I can just start typing without having to use my mouse to click in the text box In case it is relevant, I am working in VC++ 6.0. ...Show All

  • Windows Forms Text invisible in textbox

    I have a text box to which I'm sending strings to output, but I notice that the text box displays blank and all the text is invisible. How do I make the strings visible / Its pretty straightforward. Function disp() will be called from Form1 when user clicks a button. // test.cpp : main project file. #include "stdafx.h" #include "Form1.h" #include "string.h" #include "stdio.h" using namespace test; void disp(); [STAThreadAttribute] int main( array <System::String ^> ^args) { // Enabling Windows XP visual effects before any controls are created Application::EnableVisualStyles(); Application::SetCom ...Show All

  • SQL Server is SSIS wonderful?

    Hi guys, I'm using sql 2000 now but eventually will upgrade existing server to sql 2005. currently we only have OLTP dbs. I would like to set up data warehouse & OLAP functionality to drive reporting from the system, is SSIS the product I need can you please give me the suggestions regards I've been using SSIS for a couple of months now and have grown to like it. I'm using it for exactly what you mention -- importing data from (multiple) OLTP databases into a relational data warehouse. The visual designer is very useful since you can easily see how the data is flowing while running the package. And data viewers are a terrific debugging tool since you can see the data at diffe ...Show All

  • Windows Forms Open Adobe Reader in a form?

    Hi, I was just wondering if anyone knew how to open a .pdf file in a form. I'm trying to use VBExpress to make a reader for a group of about 60 .pdf books. Does anyone have any ideas I was wondering if I could open it in the WebBrowser form but am unsure how to do so. Thanks very much, Gage Hello Gage. Just add a WebBrowser to your form and you can pass the URLs of your pdf files to it as follows: Me .WebBrowser1.Navigate("c:\pdf\book1.pdf") ...Show All

  • Visual Studio 2008 (Pre-release) Authorization Policy crash

    I don't know if this is worth mentioning but inserting the following code into MyAuthorizationPolicy.cs of the SDK Authorization Policy sample creates an infinite loop that causes the service to crash with a stackOverflowException. I initially did this out of ignorance, but maybe an exception should be thrown earlier on ... public bool Evaluate( EvaluationContext evaluationContext, ref object state) { ServiceSecurityContext ctx = ServiceSecurityContext .Current; System.Security.Principal. IIdentity identity; if (ctx != null && ctx.PrimaryIdentity != null ) identity = ctx.PrimaryIdentity; // Sample code ... } No it is not resolved; it isn't really a problem. ...Show All

  • Visual Studio Express Editions build vs compile

    Should I build everytime a change the code Do I need to compile if I have built How do I run it Ctrl + F5 Compiling just compiles the current source file. Building compiles all the files in the project and then links them together to build a runnable executable. You can run via F5 to run in debugger, or Ctrl+F5 to run without debugger. -Reza ...Show All

  • .NET Development CDOSYS ASP.NET authenticated email script

    Hi! Anybody know CDOSYS ASP.NET authenticated script for sending emails I have got a script which is shown below. Anybody please let me know if there is any error in this. The script is not working. ============================================== / using System.Web.Mail; eMail = new MailMessage(); // eMail.BodyFormat = MailFormat.Text; // eMail.From = _SendFrom; eMail.Fields[http://schemas.microsoft.com/cdo/configuration/smtsperver] = "localhost"; eMail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverport"] = 25; eMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"] = 1; // if (SMTPUser != null && SMTPPassword != null) // { eMail.Fields[ ...Show All

  • Visual Studio Express Editions Making A Panel Move?

    I have a Panel who's "Location" starts off at (12, 317). When the up button is pressed, I want the Panel to move up an interval of 50. For example, if the "up" button is pressed once, then the new location would be (12, 267). If it ws pressed again, then the location would be (12, 217). Here is the code I am using: Private Sub Form1_KeyDown( ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me .KeyDown If Keys.Up Then <What do I Put Here to Make Panel Move Up > End If Thanks, both of your suggestions are helpful. Also, how would I go about boundary checking That sounds really important in what I'm am doing. Would it be something ...Show All

  • Windows Forms Error Handling - Application level

    I know that .NET provides a default run-time error dialog that let's you review an error and then either continue or quit an application. Is it possible to replace this dialog with my own error handling routine I would like to write just one routine that will handle all errors at the application level. I tried to wrap Application .Run( new Form1 ()); in the Try Catch block, and it does work with the exception that I cannot do the Continue action similar to how .NET does it in its error-handling dialog. How can I write code to continue processing Thank you very much for your help! Evgueni The problem is, you don't necessarily want the user to be able to choose to continue. Its entirely possible that the excepti ...Show All

  • Windows Forms datagridviewcomboboxcell selectedindexchanged problem

    i have a datacomboboxcolumn in a datagridview which looks something like this: ---------------------------------------------------------------------------------------------- ELEM VALOR UNIDAD ----------------------------------------------------------------------------------------------- Cu 5.6 "GR" / MT / OZ Cu 64.2 "GR" / MT / OZ Cu 1.2 "GR" / MT / OZ Ag 0.4 "MT" / OZ Ag 50.3 "MT" / OZ Ag 7.5 "MT" / OZ Sn ...Show All

  • SQL Server Merge 2 columns from the same table

    Hi *, I have a table with 2 columns A1 and Firm. A1 holds "dirty data" and there are no NULL values. Firm holds "clean data" for some of the rows in A1 but not for all. So there are quite a few NULL values in this column. I want to replace the value in A1 if there is any data in Firm (value <> NULL). Rigth now, I solve this issue with a simple VB.NET script: Public Class ScriptMain Inherits UserComponent Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer) ' If Row.Firm_IsNull Then Row.Standard = Row.A1 Else Row.Standard = Row.Firm End If ' End Sub End Class Any ideas how to solve this issue without custome code Thanks! It sounds to me like you can use Derived Co ...Show All

  • .NET Development save as dialog

    Hello. I asked this at an ASP.Net forum and was told that I cannot/shouldn't change try to change this, but I wanted to double check this. I am making a web application with c# and am using this code to save a file: Response.ContentType = "application/x-excel"; Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(" ") + ".csv"); Encoding encoding = Encoding.GetEncoding("Shift-JIS"); Response.BinaryWrite(encoding.GetBytes(csvStr)); Response.End(); It works fine..the data gets saved nicely to an excel file. The user pushes the button to download the file and then a security dialog box pops up that asks if they want to save or cancel. If the use ...Show All

  • Visual C# Writing to specific position in file

    I'm wondering how I can write to a specific part of a file I have already created a function that searches for a string in the file and returns the line number containing that string. I'd like to be able to begin writing to the file from this position: String fname = "test.htm"; FileStream fs = new FileStream(fname, ....); StreamWriter sw = new StreamWriter(fs, ....); String search_str = "Test"; int num = getPosInFile(fname, search_str); // begin from position num and do: sw.WriteLine("Hello"); Any help is appreciated. Thanks very much. I had to change sw.WriteLine("Hello",...) to sw.WriteLine(charArray, ...) to get it to work. Now it complains that the offset and length wer ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Setting a Clipping region

    I need to make a clipping region like the mini-map on need for speed. What I plan on doing is this. Draw the map on a texture, then creat a clipping region and just show whats in the map circle, clipping off whats on the outside. Does anyone know how to do this or links to achieve this Thanks, Nick nick5454 wrote: Is there any plan to simply this at all It seems overly complicated to do something so simple. Yes and no. No because there is no simple way to say "Render this here in this shape" in XNA/C#/DirectX. You have to build that functionality, or grab someone else's component that does. Yes it is easy because you could just render a RenderTar ...Show All

©2008 Software Development Network