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

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

cwlaualex

Member List

TheViewMaster
wei917
satan.miles
Nobbie
Emeraald
swingme
ace333
ZopoStyle
Mastan Oli
K_L
Gabriel Lozano-Moran
Rik78
Ravi Awasthi
Rgranada
ThomasD14
Fusion54
CodeGreen
Ravonies
Greg Seth
Marek Istvanek
Only Title

cwlaualex's Q&A profile

  • Visual Basic Detemining the "owner" of a ContextMenuStrip

    I'm working on a project that utilizes a TableLayoutPanel containing many controls. The controls can be one of three types, and each type has an associated ContextMenuStrip. I have it working where the ContextMenuStrip is applied to it's respective controls within the TLP, and can show and select items from the CMS, but need to be able to determine specifically what control was was right-clicked to show the CMS or the Point of that right click. Thanks for any help! Try this: For Each c As Control In Me .Controls If c.ContextMenuStrip.Name Is CType (sender, ToolStripMenuItem).Owner.Name Then 'Your code here Exit For End If Next ...Show All

  • Visual Studio Express Editions are methods called asynchronously in the same thread better than those called in another thread?

    i was just wondering since calling methods asynchronously in the same thread acts just like calling the method on another thread. so which is better or preferred by you programmers out there are methods called asynchronously in the same thread better than those called in another thread You are absolutely right :) It's qute easy to get the actual code written to perform a function (copy and paste, and voila: it works). Quite another to actually understand it, and the repercussions. There's more to programming than bashing out code - lots of decisions to make. We start out as coders, gain understanding to become programmers, and some of us eventually become actual software engineers - and actually become what that diploma says ...Show All

  • Visual Studio Express Editions Serial Port, Data Received does not work

    Hello there... For my diploma thesis I am developing a program that controls a measuring instrument via rs232. I am quite new in VB and programming but I am trying hard:) I was quite successfull in writing on the rs232 port, reading i working, too. My problem is the data_receved handle. this code works: Public Function Read() sRead = SerialPort.ReadByte() sRead = SerialPort.ReadExisting LB_Kom.Items.Add("RX: " + sRead) End Function But, I have to initiate this function manually. Ths is not exactly what my program should do, it should run automaticlly:) Thus I tried this: Public Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataRece ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Where in content pipeline does volume textures fail?

    Currently volume textures aren't supported in the Content Pipeline. So if I have a mesh that references a volume texture it will fail compiling. So, is it just a matter of writing a custom importer for volume dds files or is it all the way through the pipeline Will ContentManager.Load<Texture3d>(...) work if I just write the importer Say it is so...it is Christmas after all :-) I've read the samples and it looks easy enough for simple things such as the example with the pixel shader, but ModelContent and associated classes feels painfully undocumented though. A detailed description of the heirarchy and common opaqe data etc would be great for the docs. Thankfully it looks as if TextureContent ...Show All

  • .NET Development Performance: Passing large arrays from .NET to COM components

    Hi, I am working on a COM component in C++ that will be used by .NET clients. Clients frequently pass large arrays of points in Cartesian coordinates (i.e. XYZs) to the component. I'd like to know the most efficient way to do this. My tests show conformant arrays are ~7 times faster than safearrays. Safearrays were ~6 faster than sending the array's data one point at a time. So I'd like to use conformant arrays, but I want to make sure they are "safe." Here is my IDL struct Vec3 { double x; double y; double z; }; HRESULT SendData ( [ in ] int numPts, [ in , size_is (numPts)] struct Vec3 pts[]); And it is called from C# with code like this: GCHandle gcHandle = GCHandle ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Using reference rasterizer on virtualized windows/xna

    Hi. I'm running windows on a virtual machine on a intel Mac. As of now, there's now hardware D3D support from virtual machine manufacturer (Parallels). So, I'm forced to use reference rasterizer. Now, on a "normal" D3D, I know how to setup a device as a rasterizer device. On XNA framework (beta 2), I don't know how to do it. For one sample somewhere I got the idea of inheriting a new class ReferenceGraphicsDeviceManager from GraphicsDeviceManager, overriding RankDevices() and FindBestDevice() -methods and then basically stating the following inside FindBestDevice-block: protected override GraphicsDeviceInformation FindBestDevice(bool anySuitableDevice) { GraphicsDeviceInformation deviceInformation = new GraphicsDeviceInformation( ...Show All

  • Visual Studio Embedding shapes in v1

    Hi, First of all congratulations on getting v1 out. It's looking pretty cool! I have been trying to migrate a DSL I developed in the June CTP version, but I have run into some errors. A couple of examples are.. Error 23 A GeometryShape may not be parented on a GeometryShape. In the ShapeMap mapping State to StateShape, the parent element path leads to StateManager, whose mapped shape is StateManagerShape. Error 26 A ImageShape may not be parented on a GeometryShape. In the ShapeMap mapping EnterCommand to EnterCommandShape, the parent element path leads to State, whose mapped shape is StateShape. Basically my DSL is similar to UML statechart notation, but I want to be able to nest states inside one another hierarchically in ...Show All

  • Visual Basic how i can Run VB.Net Commands Under My Application

    Dear All I want to Make Application And when am run my application i want to but the vb.net Code in TextBox an run This Code if any body know this and can help me Thank For All Ayman_Hdaib, Since you would like to run the VB.NET code from your TextBox control input by the users, it seems that your project is a compiler. It makes me to imagine the command-line execution tools. However, the code is input to a TextBox control. According to your demand, I found an article in code project titled Compile and run VB.NET code using the CodeDom that demonstrates "run-time" compile and execute of VB.NET code, using the CodeDom. Please take a look at the following link and download t ...Show All

  • Visual Basic accessing information in an opend word document

    I am trying to create an application that will open a Microsoft Word document then be able to access what the user types in to it. I'm using visual studio 2005. I have opened the document in two different ways; using the shell method and creating a new variable as a process, but once the word document is open, I cannot figure out how to access it's information. If anyone knows how to make the ms word application save, copy/paste, or knows a way for my application to access its information let me know. I've created the application once using a RichTextBox built in to my application, but my client (I'm a college intern in over my head in software development) prefers to enter the data in MS Word. Any replies are appreciated ...Show All

  • Visual Basic Running isnumeric on array textbox (Help needed)

    hi, this is what i wrote : Private sub text1_change(index as integer) Dim A as boolean, b as boolean for index = 0 to 2 if a = true then msgbox "ok", vbok if b = true then a = true if isnumeric(text1(index).text) then b = false else : b = true End if if text1(index).text = "" then b = false End if Next index End sub My form has  3 textboxes in an array. The first box adhere to the above, i.e. when i type numbers in,it is okie, however any alphabets will result in error msg. 2nd and 3rd text boxes however displays an error msg wheneva i type anything in. Is there something wrong in what i have done thanks~!! Rather urgent The only problem with this si ...Show All

  • Visual Studio Debugging Native dll

    Hi, I am trying to create a COM addin for Word using Add-in Express module. I have a managed .exe file and a native .dll that I have written. The AddinModule is found in my .dll and this is where I configure my settings and load Word. My problem is that Visual Studio 2005 is only letting me debug and step through my .exe. I have a few configuration issues in my .dll but I cannot step through the code, instead I have to try and use lots of Message boxes! I have tried the walkthrough example 'Debugging a solution that includes both managed and native code' http://msdn2.microsoft.com/en-us/library/ms228818(VS.80).aspx This does exactly what I want it to do! The example is for a smart device and there are a few settings t ...Show All

  • SQL Server Checking for free disk space and getting mail when it falls below a certain limit

    Hello I have a script which checks the disk space and when it falls a certain size , it mails the dba mail box. I would like to know how I can change it , as a percentage calculation. For example when the free space is less than 20% of the total space on the drive I should be receiving a mail. The script I have is : declare @MB_Free int create table #FreeSpace( Drive char(1), MB_Free int) insert into #FreeSpace exec xp_fixeddrives -- Free Space on F drive Less than Threshold if @MB_Free < 4096 exec master.dbo.xp_sendmail @recipients =' dvaddi@domain.edu', @subject ='SERVER X - Fresh Space Issue on D Drive', @message = 'Free space on D Drive has dropped below 2 gig' drop table #freespace Thanks ...Show All

  • Visual Studio 2008 (Pre-release) Problem with MediaElement

    Hi, I am having WinFX June CTP installed in my system, as well i have two operating systems (Windows XP SP2, and Windows Vista Beta 2), at both of the OS i have installed the June cTP. Now the problems that i am facing are MediaElement tags don't play video, or audio, even if it's fairly simple code, which was running with my Feb CTP. The same code, if i compile and run in Vista Side, would show me the Media. The XAMLPAD doesn't work in my Vista OS, but i m being able to compile my code, run it, and even use the orcas, but back again my orcas is not letting me design... Regards Brij If you’re trying to use MediaElement in June CTP with an older version of WMP 11, this may not wor ...Show All

  • Visual Basic why my clickonce downloading not completed?

    I made publish for new version of my application, what happen is, One of my customer download 60% of my new version, and stop. what is the problem yes it is, and One of them mostly download at 100% or near of them and then show this message I don't know if swap connection (I mean bad connection goes high and goes low), appear this error !! ...Show All

  • Visual Studio Express Editions Making a static library to work across different solutions

    I’m trying to make a Solution that contains various functions and classes that I use regularly and compile it to a static lib file which could be then used in other projects and solutions. I got the example static lib project described in help working, but for that both the maker and user projects were in the same solution. He is the process I used to make it. Steps: Created a new console project in solution “Solution A” called LibMaker set as a static library set use no pre-compiled header create a new item called LibTest.h This class contained the code: void testFunction( int a, int b, double c); create a new item called LibTest.cpp This class contained the code: ...Show All

©2008 Software Development Network