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

Software Development Network >> Ahmad Golzar's Q&A profile

Ahmad Golzar

Member List

BryanCaf
rwerner
Toan Phan
Kamii47
WolframW
project2n5e0o1
David Cowell
BSohante
dreameR.78
Jean-Pierre Fouche
Israel Brewster
Lee Brimelow
Joel Hensley
jbhatia
JonnyAJAX
thedewd
Wanty
clkdiv
kangalert
Corby111
Only Title

Ahmad Golzar's Q&A profile

  • Windows Forms Validating the input on DataGrid

    First, forgive me that my English is very poor.....(please don't laugh..... ) I have a database and a table (create by SQL Express) with 2 fields. First field is ProductID(Vachar, primary key), second fields is Qty(decimal). It's no problem when bounded to DataGrid (after add connection, add data source, and drag the data source to the form). But then I have some problem : 1. Add new record on DataGrid (by click the icon (+) in the bindingnavigator). when I type the ProductID that already exist, of course it will appears error message, but how can I design that it can displaying my messagebox.(If use Try catch, where must I put it). 2. How to validating the Qty field that just accept the range 0 to 80. 3. How to create a sea ...Show All

  • Visual Studio Express Editions Confuse/lost regarding displaying live stream text data

    Guys, I am somewhat confused as to how I can display the data I am capturing via a socket other than on a Console screen. What I would like to do is to provide a better looking means of displaying the activity of the capture in real time but I am not sure how best to achieve this. I am assuming I would need to create a Form and format it as I wish but how to get the data to list on the form is beyond my current knowledge of VB (I can do it in PHP but VB is new to me). The data should scroll down the screen moving the oldest entry off the screen. The size of the form could be fixed or not, doesn't matter. I have added the my current code below: Imports System.Net.Sockets Imports System.Net Imports System.IO Imports System.Text Class TCPCli ...Show All

  • Smart Device Development Cinternet Session MFC VS 2005 SP1 Beta- Strange behaviour

    Hi I recently upgraded to VS 2005 SP1 and is using the MFC CHttpConnection API. I had to compile the .exe program with a Static MFC lib as the current hardware device does not have the updated MFC libraries. OK. Here is how I am doing the tests. 1) Complete Hardreset of the winmobile 2005 device/emulator 2) copy the release version of the app to \ 3) perform the necessary setups 4) run the app. The App connects to the internet to download a file from my web server. Here are my observations: A) Using the emulator - No problem works immediately B) Using the HP Ipaq 6800 - Windows Mobile 5.1 - Works Immediately C) Using the HP Ipaq 69XX - Windows Mobile 5.1 - Need Workaround The App has a Cinternet Exception - "The ...Show All

  • Windows Forms ToolBarButton DialogResult

    I want to have a ToolBarButton close the dialog box and have ShowDialog() return DialogResult.OK Maybe you want something like this private void toolStripButton1_Click( object sender, EventArgs e) { this .DialogResult = DialogResult .OK; this .Close(); } Hope it helps. Best Regards. Ye ...Show All

  • Software Development for Windows Vista design time dialogs within custom activities, architecture

    Hello WF, I need to write several custom activities that can be placed on a state machine workflow. These activities will have two aspects: design time -- pop up a dialog to allow user configuration, and run time -- execute the configured action. Examples: (1) security activity . design-time: select roles & actors (from our security subsystem) that will be given chosen rights when a state is entered and exited run-time: executes the transfer of rights according to what was configured (2) signature policy activity . design-time: pop up a dialog to choose a signature policy that applies to a transition from one state to another. run-time: enforce the validity of the signature policy.  signature policies come from our database. Ca ...Show All

  • Visual C++ How to get full user name in C code ?

    I tried to use GetUserName() in XP, but this API cannot get full user name, any ideas Thanks in advance. #include <windows.h> #include <stdio.h> TCHAR* envVarStrings[] = { "OS = %OS%", "PATH = %PATH%", "HOMEPATH = %HOMEPATH%", "TEMP = %TEMP%" }; #define ENV_VAR_STRING_COUNT (sizeof(envVarStrings)/sizeof(TCHAR*)) #define INFO_BUFFER_SIZE 32767 void printError( TCHAR* msg ); void main( ) { DWORD i; TCHAR infoBuf[INFO_BUFFER_SIZE]; DWORD bufCharCount = INFO_BUFFER_SIZE; // Get and display the name of the computer. bufCharCount = INFO_BUFFER_SIZE; if( !GetComputerName( infoBuf, &bufCharCount ) ) printError( "GetComputerName" ); printf( ...Show All

  • Windows Forms Menu Titlebar

    Hi I want to put in titlebar of my windows a menu, I am using Windows Forms C++. Can I put it You can draw a button to a the non-client part of the window which open up a context-menu, but I don't think it will allow you to override the default context-menu of Windows' titlebar. ...Show All

  • Visual Studio Brace Matching and User Types color in VC++

    The new Fonts and Colors settings* in the code window in VS are great! For example red text for strings and a blueish color for User Types. (Brace Matching is invaluable!) But only some of the settings seems to apply to C++: User Types remains black whatever color I choose and Brace Matching won't work. * Tools/Options/Environment/Fonts and Colors/(Text Editor) Can you answer a couple of questions to help me understand the problem 1. Are using an Express version of VS (e.g. VC++ Express) or one of the other versions 2. Do the changes take effect after you shut down and restart the IDE, or are they simply ignored altogether Thanks! -Josh Stevens VS Core IDE team ...Show All

  • Visual C# What time format?

    I got this string (14 bytes) as an output from a demo C# code I am trying to incorporate into my app. DateTime=12102006222639 It is 10/12/2006 but the rest of the string represents time. Is it possible to figure out by just looking at it or applying an operator the exact time represented by the rest of the string (6 bytes: 222639) Reading it so far did not make much sense to me. The presumed time is constrained by day time hours between 9:30 AM and 4:00 PM EST. Thanks. Alex, It might be a UTC timestamp. EST is UTC - 5... actually New York is still in EDT, which is UTC - 4, so your time would become something like 6:26PM. And even though I'm not an expert, I think the trading continues up to 6:30PM in the after hour sessio ...Show All

  • Windows Forms Copying setup projects - can't use copy

    I have a fairly simple setup project (deploys a native C++ application and service). Currently it is written for English. Now I need to create packages for 10 other languages. I thought it would be as simple as copying the project to a new name, loading it into VS.NET and changing the language. I wish to preserve everything in my original project, including file names, registry modifications, setup UI pages, etc. All I want to do is change the language so the setup UI would show up in a new language. My original project was proj1-en. I copy it to proj1-de and add it to my vs solution. However when I try to compile proj1-de (regardless if I change the language to German or not) I get: ERROR: Unable to update the dependencies of the ...Show All

  • Smart Device Development Multi-XIP regions to minimize ROM

    I'm trying to use Multi-XIP regions to minimize the size of the nk.bin and leave more RAM for application program. To optimize the size, is it necessary to use multi-regions, instead of only using one region From my observation, I cant see any significant improvement of the Free RAM if I use only one region. You’ve mentioned you have NAND flash, is that correct AFAIK XIP is only possible with NOR flash. With NAND you have to load flash content into RAM so it can be executed. It probably can be paged but no XIP. ...Show All

  • Visual C++ Use Managed Extensions

    Hi, I'm trying to create a project in Visual Studio 2005 and I am following the instructions a friend gave me (as I want to recreate his project) but he is using Visual Studio 2003. I can't seem to find one of the instructions that he asked me to do: Goto: Project->Project Properties->General. Change "Use Managed Extensions" to No. Where can I find this in Visual Studio 2005 or what is its equivalent Thanks DAN ...Show All

  • Visual C# What is with all of the files for a simple program?

    I posted this in the IDE section but got no reply so I am trying it here. I am just learning C# and made a solution for a command line program. I would like to know what the heck all of these output files are for and can I somehow force them not to make subdirectories. I was able to remove the bin directory but not the obj\Debug etc. directory. Also don't understand the Test.vshost.exe file and the duplicated Test.exe and Test.pdb files. \---Test | Test.sln | \---Test | Program.cs - Main Program | Test.csproj - Project | +---bin | \---Debug | Test.exe - Executable | Test.pdb - program database for debugging | Test.vshost.exe - WHAT IS THIS FOR | +---obj | | Test. ...Show All

  • .NET Development CLR Hosting and controlling the running assembly

    Hi I am trying to implement a CLR host application in C++. I have it working fairly well so far, the assembly gets loaded into memory and it runs. But I have a requirement to need to be able to pause the running assembly to await user input from the host application. But I can't seem to get anything in the host to be reliably modal enough, and most of the time the assembly just carries on running regardless. The host uses _ApplicationDomain->Load_3->EntryPoint->Invoke_3 to launch the assembly after it's been loaded into memory. This function blocks, so I was using a timer in the host to call periodically into another function which needs to make the decision whether to allow the assembly to continue running or to pause it a ...Show All

  • .NET Development remote registry access

    i dont know whether it is right to post this here. Am in the process of developing a lan messenger in which there is no support of database.nor i should use server/client technology. All the info user enters is automatically stored in registry under HC\SOFTWARE\LANMESSENGER tab. Am able to store this locally.Now the problem arises when i scan remote computers registry to get his username.The development platform is c#.net.I searched many articles,googling.but no use.The main problem is the registry key access.No permissions.I have to give permissions using c#.Please tell me how to program it. See http://msdn2.microsoft.com/en-us/library/system.security.accesscontrol.registryaccessrule.aspx ...Show All

©2008 Software Development Network