Javfarary's Q&A profile
Visual Basic Clearing all TextBoxes on a TabPage
I want to write a small routine to clear all text boxes on the presently opened TabPage. Please help. I am using VB.NET 2003. Sorry I didn't read that it was in VS2003 (the code is for 2005). You should be able to use an ArrayList instead of a List(Of Control) and the error will go away (may have to add a cast as well) ...Show All
Visual Studio Express Editions Select/Open Tree Node
I have two ways of getting to data you can either click on it manually or use the tree of nodes to get to it. I'd like to be able to when I click on something I can have it open and select the correct tree node child. Any ideas Me . TreeView1 . HideSelection = False will make sure that the node stays highlighted when the treeview does not have focus... ...Show All
SQL Server Problem with package.Execute passing variables
I am having a problem with passing variables into my SSIS package from C#. The variable names match ("Variable1, ...), however they do not seem to be assigned the proper values once the package is executed. The package does run and returns a FALURE notice saying there is a problem with my expressions. When I added a new data flow, derived all the variables into columns and wrote their values to a flat file I noticed that the values still contain my default values from the SSIS package itself as though nothing was passed in from C#. I am hoping that it is a simple configuration/user error. Any ideas ---- C# ---- Reference to Microsoft.SQLServer.ManagedDTS using Microsoft.SqlServer.Dts.Runtime; Application ...Show All
Visual Basic Creating a text file with the landscape orientation with vb.net
In vb.net, I am creating a text file and I want it to have the landscape orientation. How do I do that So far I have: Dim fs As New FileStream(filename , FileMode.Create, FileAccess.Write) Dim s As New StreamWriter(fs) s.BaseStream.Seek(0, SeekOrigin.End) 'write all data to the file s.close Thanks for the help. Beski Text files don't have attributes like landscape... Are you just trying to open the file, and print it in landscape Or are you trying to make a MSWord file (.doc) You can write bytes to a file horizontally..... ...Show All
.NET Development Write to file that is in use
Hello I have a problem with file access. I have a service, that reads out an xml file every second. (It looks for changes) Now when I want to write something to this xml file with a simple C# application, I get the System.IO Exception "used by another process". When I edit the same Xml file with notepad, there is absolutely no problem! The service continues reading without any errors. Can anyone help me how to solve this The code of the reader: XmlDocument xDoc = new XmlDocument(); while (!stopWork) { xDoc.Load(path); xmlPorts = GetActualState(); if (xmlPorts != krPorts) { SetNewPorts(); //SerialPort (needs no xml file access) } System.Threading.Thread.Sleep(1000); ...Show All
Smart Device Development How to Format SD Card with FAT16
Hi guys, I want to develop a program to format SD Card with FAE16 in Wince5.0,VS2005. I've tried the following two methods: 1.OpenStore()->DismountStore()->FormatStore()->CreatePartitionEX(),the parameter bByteType is 0x04,which indicates FAT16.The result,File System is FAT32. 2.FormatVolume(),after include "Formatdisk.h" my complier sad the function "Formatdisk.h" is not founded. and then I use "Find" to find the file,and then found the file is not existed in my computer. Why does the msdn say the function is supported in Windows CE .NET 4.0 and later but I can't use it http://msdn.microsoft.com/library/default.asp url=/library/en-us/wcemain4/html/cmrefformatvolume.asp All suggestion is apprecia ...Show All
Visual Basic upgrade Format function VB6 to Vb.NET "short Time" ?!
s1=0.236057481305685 TextBox1.Text &= Format(s1, "Short Time") must be 5:10 am but dont wrk ehsan707 wrote: s1=0.236057481305685 TextBox1.Text &= Format(s1, "Short Time") must be 5:10 am but dont wrk Hi. Give this a try: Dim s1 As Double = 0.236057481305685 TextBox1.Text &= Format( Date .FromOADate(s1), "Short Time" ) ...Show All
Windows Forms WinForms Exchange Server Integration
I was curious if anybody could help me figure out how i could add exchange server functionality to my winforms application. I would like to add an email client, as well as calendar, tasks, and contacts to my winforms program. This way the user would not have to switch out of the application to view said features...but could have them easily displayed within the winforms application. Google searching has proven frutiless. Thanks in advance, Adam Yeah...i'm aware outlook handles all this...but it'd be nice to integrate all the features into one program, so as eliminating the need to switch to another program to check these features. thanks for your reply, Adam ...Show All
Visual C++ Catalan's Triangle
HI, can anybody help me to solve the Catalan's Triangle using C++ source. the details are The following is Catalan's Triangle: Here the entries are given by formula 1 1 1 Cnm =(n+m)!(n-m+1) 1 2 2 m!(n+1)! 1 3 5 5 1 4 9 14 14 1 5 14 28 42 42 For 0 < m < n 1 6 20 48 90 132 132 A characteristic of this triangle is that each element is equal to the element just above it plus the element to its left. T ...Show All
Visual Studio Team System Advice needed: delete old builds using a Task(?)
I have the following. A build type called "Nighly Build" that is scheduled to run every night. It will drop the output on a shared folder on a server in the following structure: \\server\drops\ProjectA\Nightly Builds\ However after a couple of weeks there will be a lot of nightly builds in this folder. I was wandering what would be a good practice to only keep the Nightly Builds of the last week and delete the ones older than one week Should I add this as a custom task to the "Nightly Build" Build Type Or should I use a batch file or script file and run it on scheduled intervals using the Windows Scheduler Any advice is appreciated or how do you guys deal with this Hello Jason, thanks for the fast reply. I w ...Show All
Visual Studio Tools for Office Create CommandBarButtons on an email using WordEditor.
Hello, When I create a custom toolbar in a new email window (just by clicking on the new email button and having the new inspector event trapped), I am having a problem when I am setting the .Picture property on the button. The code I have is as follows: m_btnCreateInProj = (Office. CommandBarButton )m_commandBar.Controls.Add(Office. MsoControlType .msoControlButton, System.Reflection. Missing .Value, System.Reflection. Missing .Value, System.Reflection. Missing .Value, System.Reflection. Missing .Value); m_btnCreateInProj.Caption = TeamlookRes .TL_Inspector_BTN_CreateInProject; m_btnCreateInProj.Visible = true ; m_btnCreateInProj.Enabled = true ; m_btnCreateInProj.TooltipText = TeamlookRes .TL_Inspector_BTN_CreateInProject_T ...Show All
Visual C# DllImport call using a struct as param throwing exception
Hello, I'm trying to call a C DLL, and having some issues building a struct that will pass through successfully. Here's an abbreviated version of the definitions in the C .h file: typedef struct { /* inputs */ char hist[ 4 ]; char site[ 5 ]; char behav; char grade; char age[3]; char size[3]; char ext[3]; /* display outputs */ char t[12]; char tdescr[4]; char n[12]; char ndescr[4]; char m[12]; char mdescr[4]; /* error messages */ unsigned long error; char messages[ 2000 ]; } datacard; #define CSTAGE_API __declspec(dllimport) CSTAGE_API int CStage_calculate( datacard *dc ); On the C# side, this is what I have so far: &nb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA without game studio
Hello, I have visual studio 2005 installed and I was wondering if I can use XNA alone with Visual Studio 2005 without installing c# express. If I can, how do I do it. thanks. Just reference the XNA assemblies and use it like any other library. Thing is, you won't be able to use the content pipeline as it integrates with C# Express. However I saw someone on here that made a standalone app that processed content - you might look at that for use in your toolchain. Also, you cannot deploy to the xbox unless you use the game studio express stuff. For windows-only stuff you're not limited to C# and C# express, it's just that you get to use some of the more convenient tools that the XNA guys made. ...Show All
Visual C# read from Cisco router
is it possible to read the configuration stored in cisco router using C# How i dont think so, unless there are API's or something, unlikely however. only way would be via telnet (or its own web config page) I guess if you are connecting to it via serial cable, use the SerialPorts class in .NET 2.0 to establish a connection, then read data from it using the DataRecieved Event or something. But in terms of reading the configuration, not really sure ...Show All
Visual Studio How catch the crash line?
An app does have a .PDB file created/updated each time when compiling the app. However when I start the app in Debug mode and an exception occurs, it leads to a popup that asks me to either using the current instance of Debugger of VisualStudio running or a new instance of VisualStudio. If selecting the former, it popped up a message say that "No symbols loaded..." and only showed disassembles available. If selecting the latter it displayed a message saying something like: Can not attach to the process (of VisualStudio with Debugger running in it). Does this indicate that JIT Debugger is not correctly installed on this PC How to make currently-running Debugger load the symbols of the app correctly when an exception occurs ...Show All
