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

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

A Barber

Member List

sridhar kumar.j
rabidrobot
Mateusz Rajca
JohnPrem
Hal4UK
montechristo
hlj16
DPMevents
Zadoras
MarcGBeauchamp
renealejandrov
Melvin McClurkin
Shahid Mahmood
kettch
Alexander_Monday
Antfor
Chris Marts
PaulBSteelerFan
stubs
jepptje
Only Title

A Barber's Q&A profile

  • Visual Studio Express Editions Using a VB acive X dll in Native C++

    Is it possible to call functions in a VB Dll i have tryed: loading it Dynamicly, with LoadLibrary etc... I have tryed loading it with "COM" I have tryed linking against the lib file that came with it. is it even possible to use a VB dll because i have try many websites and none work. when i tryed LoadLibrary i got the most results, but i got an error. here is the code i used for "LoadLibrary"; #include "stdafx.h" #include "windows.h" typedef void (*_POO)(void); int _tmain(int argc, _TCHAR* argv[]) { HINSTANCE dll; _POO poo; try { dll = LoadLibrary("poo.dll"); } catch(...) { printf("error with \"LoadLibrary\":%d", GetLastError()); Sleep(5000); return 0; } try { poo = ( ...Show All

  • .NET Development Workings with strings

    Hello, I'm quit new to visual c#, so don't mind this perhaps stupid question :) I'm trying to change the ReadOnly property of a certain column. The problem is that when I wanna do that it uses the property of fullColumnName and not the value of fullColumnName. Anyone who could help me Big thanks in advance. public void setReadOnly( String strColumnName) { String fullColumnName= strColumnName+"DataGridViewTextBoxColumn"; if (fullColumnName .ReadOnly == false ) { fullColumnName.ReadOnly = true ; } else { fullColumnName.ReadOnly = false ; } } You are attempting to access a property called ReadOnly on a string va ...Show All

  • Windows Forms Default value

    Good Morning: I have a data entry application being developed. I have default values on the input screen whenever the users clicks on the '+' to add a new record. This is currently working now, my defaults are on the SQL Server table, when you add a new record the default values populate the fields on the screen, this is fine. I added another column to the table, set its default value on the SQL Server table side, but when I add a new record, the default does not populate to the table. I think there is another place to set the default value, but I can't remember where or what is involved. Any help appreciated. Mike you can use the Datagridview event: dataGridView1.DefaultValuesNeeded +=new ...Show All

  • SQL Server How to: Data Source View diagram export as image?

    Hi, does anybody know if there is simple way in a VS2005 Analysis Services project to export a Data Source View diagram from the DSV designer as an image (.jpg, .png etc...) as can be done via right-click with the class designer I dug through the menu options/customization for this feature but cannot find it. Is this feature available Thanks, Jeff Hi Jeff, Unfortunately, I don't believe an export function exists. The best I've been able to come up with in the past is either using a tool like SnagIt to capture the image or printing it to a file using some sort of image-capture print utility... HTH, Dave Fackler ...Show All

  • Visual C++ how to printing contents of textbox?

    hi, how to printing contents of textbox pls This article : http://www.codeproject.com/printing/printmechanism.asp has code that shows how you can print a string to the printer. It's got sample code too. Please use that. ...Show All

  • Internet Explorer Development IE7 activeX Webbrowser control?

    How can I use the IE7 webbrowser control in my visual basic (6) applications I have had (in another progamming language) the same problem. In IE6 the Name is “Microsoft WebBroser”. In IE7 the Name is “Microsoft Web Broser”. Only 1 blank more. Perhaps it help you. Greetings. ...Show All

  • Windows Forms Two-way Databinding does not work with empty Datamember

    I have a List of Strings eg. List < string > myList = new List < string >(); myList.Add( "a" ); myList.Add( "b" ); foreach ( string value in myList) { TextBox tb = new TextBox (); tb.DataBindings.Add( "Text" , value, "" ); this .Controls.Add(tb); } This works fine to display the values of the list in the textboxes. But it does not work for writing back the values to the list. It seems there is a problem if the DataMember property of the DataBinding is empty. If I just use a string object to bind to the text property of a TextBox, it does not work. Only if I have a object where I can set the DataSource and the DataMember for Databinding it also work ...Show All

  • Software Development for Windows Vista DynamicPropertiesActivity and Designer Rehosting sample

    Hello, I am trying to host DynamicPropertiesActivity (the one available at http://blogs.msdn.com/ghenap/default.aspx ) inside the Designer Rehosting sample application (presented by Vihang Dalal). The problem I am experiencing is that added dynamic properties do not appear in the property grid. Anyone solved this issue Thanks in advance Edmundas I, too, am interested in a solution to this. I did notice that if you save to an xoml file and then load the file, the DynamicProperties do appear in the property grid. So I am focusing on the differences between adding elements to the collection via serialization and via the dialog. Glenn ...Show All

  • Visual Basic Installing VS 2005 keeps on asking ' Please insert the disk: Visual studio 2005'

    The installation process for Visual Studio 2005 prompts ' Please insert the disk: Visual Studio 2005' everytime when I try to install VS2005. This is what I did: * Downloaded VS 2005 from the MSDN members download site.    File name: en_vs_2005_pro_dvd.iso (size=2,825,748 KB) * Used MagicISO tool to unpack the files   * Used Nero 6 to write the extracted files to the DVD * Created a brand new Virtual PC with Windows XP + SP2 * Start the install process in the VPC by clicking on the setup.exe    in \vs on the dvd * Select the default installation options * Installation starts for a long time and then prompts:    Please insert the disk: Visual Studio 2005'    The screen show:   ...Show All

  • Visual Basic Manipulating records in dataset

    I am having difficulty trying to manipulate rows in a dataset. I want to assign various rows of a dataset into to 22 arrays. Then I need to total one value in each array and then sort the various arrays based on the totals. At that point I want to add another row to each array, retotal the 22 arrays, resort and add another row until all rows have been distributed to the various arrays. I am new to visual program and I am having trouble getting started. I haved written this program in Excel combined with Access and am trying to write a faster program. any help will be appreciated I am writting program to make teams of up to 176 players using Visual Studio Visual Basic 2005. That's why I was going to use 22 arrays-on ...Show All

  • Windows Forms Readonly databinding with a business object

    I tried to bind a property of a business object to a TextBox control. I used a BindingSource component to accomplish this task. So far so good :-) The property of the business object is a read only property. I thought that data binding recognize this and set the TextBox control to read only. I was wrong. But it's even worse. If I change the text in the TextBox control I can't leave the focus from the TextBox anymore. The focus is trapped in the TextBox control and the user doesn't get any error message. Is it possible that data binding recognize the read only property and set the bound control to read only Can I prevent the TextBox to trap the focus I think the usability for trapping the focus in a control if the validation ...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

  • Visual Studio 2008 (Pre-release) Suggestion: Can TextSearch be improved to support to search string of other language?

    Chinese seems not to be supported currently. Hope so. Chinese text are well supported, for instance: < Grid xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " > < ComboBox IsEditable = " true " > < TextBlock TextSearch.Text = " 中 " > People's Republic Of China </ TextBlock > < TextBlock TextSearch.Text = " 美 " > United States of America </ TextBlock > < TextBlock TextSearch.Text = " 英 " > United Kingdom of Great Britain and Northern Ireland </ TextBlock > </ ComboBox > </ Grid > last time when I had problem with WPF's support of Chinese is that I tried to read ...Show All

  • Visual Studio 2008 (Pre-release) Importing ZAM 3D model to Sparkles

    Hi I'm just a newbie who recently just started looking into WPF and Sparkles :) I've seen many resources online showing different ways of exporting a ZAM 3D model to Sparkles. One of the very interesting way of doing so is: "Edit > Copy XAML" in ZAM 3D then "Edit > Paste" in Sparkles. Does anyone actually manage to do that successfully I've tried myself but Sparkles wouldn't let me paste my ZAM 3D XAML :( Hi Andy, Please visit the Expression Blend (code name "Sparkle") newsgroup to ask questions about that product: http://www.microsoft.com/communities/newsgroups/en-us/default.aspx dg=microsoft.public.expression.interactivedesigner&cat=&lang=en th ...Show All

  • Windows Forms dll references

    Hi, I am trying to run a project that has some dll dependencies. I copied these dlls into the project folder and tried to run it but it would still show an error message saying it needs those dlls. I then removed the old references to these dlls and added the references again. Now it works. Do I have to go in the source code and refresh the references in order to run the project why not simply copying the dlls in the project folder is not enough for compilation and running Is there any way where I dont have to reresh the references to run the project Thanks, ...Show All

©2008 Software Development Network