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

Software Development Network >> CalinMac's Q&A profile

CalinMac

Member List

Alex Merchant
jamil
ZopoStyle
Nerick
ksona
Pretpal
rodmanovic
nhaas
NetPochi
Jason D. Camp
John Oliver (UK)MSP, VSIP
Utkarsh Shigihalli
David Leibowitz
jhassing
nextpaco
Eric F Crist
Rich Steck
&#169&#59; Ţĩмό Şąļσмāĸ
Knudde
Azriel Cross
Only Title

CalinMac's Q&A profile

  • Windows Forms Unhandled Exception in NumericUpDown Event Handler

    The NumericUpDown control throws a NullReferenceException if Application.DoEvents() is called in the ValueChanged event with some additional processing and the up or down button is pressed rapidly. The exception can also occur if the event handler takes a while to return. To reproduce, add an event handler for the ValueChanged event on a NumericUpDown and insert the following code into the event handler: for(int i = 0; i < 10; i++) { Application.DoEvents(); Thread.Sleep(50); } Run the project and hold the up or down arrow for a few seconds. The following exception occurs: System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.UpDownBase.UpDownButtons.TimerHandler(Object source, ...Show All

  • Visual Studio Web browser + crystal xi

    Please tell me, how to use web browser control to display crystal report Take the crystalreportviewer control and put on a webform. Then in the code do something like: ReportDocument myReport = new ReportDocument(); myReport.Load(@"C:\myReport.rpt"); crystalreportviewer1.reportsource = myReport; ...Show All

  • Visual Studio Express Editions TextBox which is Masked by Code

    Hello Every1 I want to have a textbox that allows only numbers and then allows only 4 digits. Is it better to use a Masked TextBox control or a TextBox which is masked by our code The code bellow is not working because when the textbox fills with 4 digits, it will be selected all and then it does`nt allow any number, Please Help me on this problem : Private Sub txtCode_KeyPress( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtCode.KeyPress     Static Dim sintCodeLen As Integer     If Len( Me .txtCode.Text) > 4 AndAlso sintCodeLen = 4 Then         e.Handled = True  &nbs ...Show All

  • Visual Studio 2008 (Pre-release) Getting an error for setting UserNamePassword Token setting for WCF Service on IIS usin basicHTTPBinding.

    I am getting the following error when I browse the Service.SVC file: Could not find a base address that matches scheme https for the endpoint with binding BasicHttpBinding. Registered base address schemes are [http]. I have done following step, can you please tell me what am I missing 1. I created a seperate website on IIS with port 90. 2. I ran the following command to install the SSL certificate. C:\Program Files\Support Tools>httpcfg set ssl -I 0.0.0.0:90 -h a586fc83bd30d288 d2c08067c03ca51258c94e32 HttpSetServiceConfiguration completed with 0. C:\Program Files\Support Tools>httpcfg query ssl localhost:80 IP : 0.0.0.0:90 Hash : a586fc83bd30d288d2c08067c03ca51258c94e32 ...Show All

  • Visual Studio Team System How to copy changed files only

    I work on a very large public website. Before Team Foundation server, we had a build process in place that would run a build and then copy changed files, remove deleted files, etc out to the QA server. I dont see anyway to do this with Team Build. Whenever Team Build gets the source for a build from Team Source Control, the file Date/Time is the date that the file was retrieved from source control. So If I deploy(copy) the site to QA, every file is replaced on the QA server. This is bad but not as bad as the problem I run into when I have to replace files on Production. We are talking about a huge public site here. I cant just replace every single file. I only need to move files over that have been modified. Is there anyway to have team ...Show All

  • SQL Server article row filter - 2 parameters

    hello, i need to filter an article based on a user-supplied datetime filter (the datetime parameter is specified by the subscriber just before replication). at the same time i need to filter again by user (different subscribers get different rows). i already did the user-based filter using HOST_NAME( ). but the difficulty here (al least i think so) lies in passing 2 parameters to the filter. i cannot rely on using SUSER_SNAME to pass the user filter, because no one will want to create 500 user accounts. so i guess the only solution here is to pass both parameters using only HOST_NAME( ) and then write 2 splitting functions which uses HOST_NAME( ) as its parameter. am i right publisher/distributor is sql server 2005, all subscribe ...Show All

  • Software Development for Windows Vista DecCTP_5270_32bit_Main_DVD Installation Problem

      Hi!!! I downloaded the latest beta2 (DecCTP_5270_32bit_Main_DVD) but when I tried to install it on my laptop (TOSHIBA Satellite M45-S265  after the 1st step when restarting and trying to boot again it stops on the Longhorn progress bar screen and no thing happen I tried to boot in safe mode but the same loop I cant get to the next installation step, any idea I have the same problem - and I am on a desktop! I try to install from my existing Windows XP OS, then after it restarts - just the black screen. When I try safe mode - it keeps loading different drivers - then after loading disk.sys - it just freezes - no more activity. I also noticed that whenever the computer hangs, the hard ...Show All

  • Windows Forms .NET WebBrowser control under load testing

    Hi, I have written a library that takes a URL as an input and returns the HTML for the url. I have used the .NET webbrowser control inside a form to achieve the same. Now the problem is the .NET web browser control is not scaling up when the number of concurent user of the library increases. The response time (to get the HTML) increases drastically if a step load up to 500 users is applied. Also note that i am launching the webbrowser control in a separate STA thread as soon as a request comes. Are their any guidelines on how to use the webbrowser control so that it scales up well I will really appreciate any help regarding this. Thanks, Yash By rendering you mean the page is using some javascript to change the con ...Show All

  • Windows Forms C# context menu

    Hi, all, Can I use context menu without mainMenu For example, i append this context menu on one button. When I click the button, the context menu will show on the button for me to choose one option. When i choose the option, the menu will disappear and the option i choose will show on the button text. If i can't do this, any suggestion about this. Thanks in advance. : ) Andrej Tozon wrote: Hi, yes you can do that. Try the following steps: 1. From your ToolBox, drag a ContextMenu Stripcomponent on your form - it will appear in the component area bellow the form. 2. Select it. Among its properties, select Items and click on the dotted button appearing on the right - the menu items collection ed ...Show All

  • Software Development for Windows Vista What are .xoml files ?

    Using .Net Framework 3.0 (dotnetfx3.exe package). I created Task 1 'Creating the Sequential Workflow' from Windows SDK. When I try to build it using MSBUILD command in the SDK command prompt I get message 'No files found with .xoml extension in the set of input files'. What file .xoml would I create Anatoly, Good to hear that. Also remember to make this thread answered. Enjoy the WF. 8-) Andy Ho ...Show All

  • SQL Server DB Script

    hello I need to script my Db, tables and storedprocedures. so i can create another same DB Dim con As New SqlConnection(DBClass.Config.DBString) Dim cmdName As String = File.OpenText("pro.sql").ReadToEnd() Dim cmd As New SqlCommand(cmdName, con) cmd.CommandType = CommandType.Text con.Open() Try cmd.ExecuteNonQuery() MessageBox.Show("DB Created") Catch ex As Exception MessageBox.Show(ex.Message) End Try con.Close() Any suggestions plzzzzzzzzzzz If SMO is used (liek in SSMS) There is some more information needed than this which is queried fromt he SQl Server. I would suggest using the SMO namespace for creating your script. SMO is the successor of DMO and has a de ...Show All

  • Silverlight (formerly WPF/E) XAMLPad

    Hi, is there any tool where I can use XML (XAML) syntax to write objects and see it in a preview window Michael I'd recommend XAMLPad. You can even use the Cider designer for Visual Studio 2005. However, remember that both tools were designed for WPF XAML and not WPF/E, so you may want to have a copy of the SDK documentation for WPF/E on hand while using them, to make sure that your XAML is correct when running it in WPF/E. ...Show All

  • Visual Studio Express Editions reading numeric data from excel sheet

    Hi All , I am trying to read data from the excel sheet but i am facing problem when there is any numeric data is cell it gets Null value. Can some one please help me how can i read the numeric value from the excel sheets. If the same cell is having some other kind of data it is reading that data. Thanls Avinash Kundal HI , Thanks a lot i am able to solve this with your help.I am really very greatfull. If i can help you somewhere i will be really happy. My id is avinashkundal@gmail.com you can contact me here. If i get any issue i will mail back. Thanks ...Show All

  • Visual C++ Depricated Functions

    Hello I have just now ported my VC 6.0 to Visual Studio 2005. I am facing with some crashes in my application. The place where i am finding this is the depricated functions,specifically now i am facing an error with strcpy. I dont know y it is crashing..can anyone please help me on how do i work with the depricated functions. Thanks & Regards, Ravi Kanth Your problem is most likely that pszText doesn't point to a buffer large enough to contain the string from TabTitle. Try something similar to this: size_t nStrSize = strlen(TabTitle); if(nStrSize > 0) { char* pszText = new char[nStrSize]; strncpy_s(pszText, nStrSize, TabTitle, nStrSize); // do something with the buffer delete[] pszText; } ...Show All

  • Smart Device Development WM 5 tray icon & USB communication

    Hello I have two questions: 1 - How do I put an icon on WM5 tray And how do I make it clickable.. Eventually I'd like to show a menu when a user clicks the icon but, at first, I'd just like to know how do I capture the event (and how to show the icon) 2 - What's the best way to comunicate to the Desktop I was considering using the USB connection bettween the PPC and the desktop but I have no ideia how that is donne... I know that when a connection is established both the PC and the PPC have an IP to connect to each other. Can this connection be used using sockets Or is there any way to use the USB connection Thanking in advance First of all, sorry for asking 2 questions on the same post. That usally happ ...Show All

©2008 Software Development Network