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

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

deGame

Member List

asalcedo
hallscreations
wandasoozq
Esp_99
Pankaj11
mobigital
Randy Galliano
Francesco De Vittori
Steve Hempen
furjaw
luca82
K::ot???ter
Davids Learning
shax
ananth prasad
andrewds17
csalsa
Shobha69358
XTend
Renaud Martinon
Only Title

deGame's Q&A profile

  • Visual Basic Object reference not set to an instance of an object.

    Hi, I wrote a function and when i'm calling it i keep getting this error. Null reference exception was unhandled. Object reference not set to an instance of an object. Here is the code: -------------------------------------- Function myReplace( ByVal mytxtCtrl As TextBox) As String If Not IsNothing(mytxtCtrl) Then Dim vartxt As String = Replace(mytxtCtrl.Text, "%" , "" ) myReplace = Replace(vartxt, "£" , "" ) Return myReplace Else MsgBox(mytxtCtrl.Name) mytxtCtrl.Text = "" Dim vartxt As String = Replace(mytxtCtrl.Text, "%" , "" ) myReplace = Replace(vartxt, "£" , "" ) ...Show All

  • SQL Server Anchoring textbox to a page.

    Hi, In our project I have a matrix report. In that I need to anchor a textbox to the right end of the page, so that the textbox will always be at the right end of the report/page. I also need to place the textbox at the page header. (but I am also open to solution / workarounds which does not include page header!!) Thanks in advance Arun. within the properties page of the matrix control you have an option to grow content right to left or left to right, the default is left to right so change this and it may give you what you are looking for, Otherwise you would have to code the position based on screen width less size of control but this is another task all together, ...Show All

  • Visual Studio Express Editions Send A E-mail Form With Standard Labels

    Hi, i want to how i can send information of a desinged form with vb 2005 Express Edition. Thanks, Niels do you mean sending an email from your WinForms application If so, take a look at the System.Net.Mail class. There are a few discussions about this so here are a few links that I hope i will get your started: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=607601&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=611749&SiteID=1 Does this help ...Show All

  • .NET Development Sockets or TCPListener/TCPClient?

    i really am curious and since im really really new to .NET networking, i just want to ask which is better in networking. or should i say which is easier. the use of sockets or tcplistener/tcpclient i already know how to request and accept connections. i can use either sockets or tcplistener/tcpclient. so since the other can be used than the other, which is easier to use in vb6, it is so very much easy to program networking apps. in .NET it really is totally different. i remember Winsock used in vb6. hhhmmm...maybe i should rather ask which is close enough to Winsock, sockets or tcplistener/tcpclient thanks in advance! TcpClient and TcpListener are easier to use. If you need to access the socket both classes offer a property that r ...Show All

  • Architecture Typed Dataset or Custom Classes

    Hey friends, I am a VB developer, soon I am going to start a new project. It will be a client application, I will use a SQL server database. I am used to use custom classes, I create my onw variables properties, events and methods. I am aware of the Typed Data Set and thinking about using it on my new project. The problem is that  I have never used it,  I do not know the minuses and plusses of the Typed dataset. Now, my boss and me on the desicion phase, we want to implement the most efficient and easy maintainable one. If you ask me , I'm quite happy with custom classes :)) My opinion is that the custom class is better for performance purposses, because I  create properties and meth ...Show All

  • Visual C# P/Invoke call to external DLL

    I am stuck trying to get a P/Invoke correctly done to a 3rd party DLL. The DLL is called DNA.DLL. I have other P/Invoke calls working to it, but this one just doesn't want to. The problem is that it returns a string via a buffer. Whatever I try to declare as buffer (ref string, out string, ref StringBuilder, out StringBuilder) ends up causing a System.AccessViolationException in .NET 2 (C#, VS 2005). Here is the info I have about this call: Delphi: function DNA_Param(param,value:pChar; value_size:integer):integer; stdcall; VBasic6: Public Function DNA_Param(ByVal param As String, ByRef value As String, ByVal value_size As Integer) As Integer C++: int __stdcall DNA_Param(char *param,char *value,int value_size); Request to the DNA Clie ...Show All

  • Visual Basic Set a timer from a combo selection

    I am trying to figure out how to set a timer interval from a string that was stored from a collection of a combobox that is stored in My.Settings What the combobox has is a range of numbers from 1 to 60, representing one minute to 60 minutes. what I am wanting to do is something like this but, I havent learned my math yet, so dont laugh, Private t As New System.Timers.Timer(2000) I know this represents 2 seconds, but I am wanting to use the the string values to set the timer interval like, Private t As New System.Timers.Timer(My.Settings.MyTime * 60000) I know the above line is not correct, what do I need to do to get the desired results Davids Learning Before I didnt have ...Show All

  • Visual Basic Resize windowform1

    hi, i am new to VB.net(Windows application) how to dynamically increase/decrease control size when form size is increased/decreased by user i tried using tablelayoutpanel/Anchor/docking.i find it using very diffcult to use.(I think i dont know how to use it ) is there material available in online about how to use tablelayoutpanel/anchor/docking Thanks in advance Your welcome, but seriously, listen to what the others are saying... SJ is dead-right. I'll give you the code to adjust all the controls on your form, but be warned - with too many controls it could take too long to execute and get very ugly. You should really look at anchoring and the various container controls available. Also keep in mind that just because ...Show All

  • .NET Development who to get datatype of a specific field in a data row?

    Hi! I would like to get and check wheteher a given field is with type DateTime or not in the dataview DataView dv = gResultsView(); Would you mind helping me in having a sample code for this Thank you in advance. refer back to the datarows table and the tables columns collection. The columns collection has a datatype property: DataRow . Table . Columns (0). DataType () ...Show All

  • Visual Studio two configurations, two target conditions

    Hi, In my application I have two configurations: Release PRODUCTIV Release TEST Now I want to be able to run different targets for for the two configurations. My csproj-file looks like that: < Target Name = " BeforeBuild " Condition = " '$(Configuration)'=='Release PRODUCTIV' " > < Exec Command = " cvs update web.config " /> < Exec Command = " cvs update web.config.customer.prod " /> < Exec Command = " xcopy web.config.customer.prod web.config /Y " /> </ Target > < Target Name = " BeforeBuild " Condition = " '$(Configuration)'=='Release TEST' " > < Exec Command = " cvs update web.config " /&g ...Show All

  • .NET Development Datasets and SQL Server

    I'm currently working on a application in VB.NET 2003, with a SQL Server backend. I was asked to make an import function that would allow a user to import an Excel worksheet into SQL Server. I'm aware you can do it from Excel directly to SQL Server, but the clients would like something that wouldn't involve the users of this application touching the SQL Server. I'm using an OLEDB for the Excel connection, and a ODBC connection for the SQL Server connection. Next, I have a button event that would open up a OpenFileDialog window, and a user can choose an Excel sheet. If the Excel sheet is valid, it would go on extracting the data into a dataset: ds = New DataSet ds.Clear() strSQL = "Select HEAT, Practice, C, Mn, P, S, Si, Cu, ...Show All

  • Visual Studio Can I install VS.NET 2003 on a computer having VS.NET 2005 already installed

    Hi, I would like to know if it is possible to install Visual Studio.NET 2003 on my Windows XP Professional SP2 computer having Visual Studio.NEt 2005 already installed Will both IDE work properly Grateful for answers /M Your welcome. Mark the post as the answer, so when others search the forums, they might be more inclined to look at a successful post than a non successful one... in the search results the Answered posts are bubbled to the top before the unanswered . ...Show All

  • Visual C++ About Destruction...

    Hi everyone, I have a question about destoying objects in C++: let's s suppose we have: void main() { Foo* foo = new Foo(); delete foo; } class Foo { private: Goo* goo; public: Foo() {goo = new Goo();} // constructor }; So, when I call delete foo in main , even the Goo object is destroyed Or I have to write "delete goo" explicitly to delete it Thank you! ps: is there any difference between Foo* foo and Foo^ foo When you say "garbage collected" you mean like Java So I do not need to explicitly delete it to free memory And if I want to use the "hat" I only have to write "ref class Foo" at the beginning of that class Anyway, ...Show All

  • Visual C++ How does code find correct VTBL?

    I know there are so many questions about virtual funcion.And sorry for this question but i really don't understand how code finds correct VTable(not function) I read here : http://www.parashift.com/c++-faq-lite/virtual-functions.html#faq-20.4 t says:"The idea is to change each Der object's v-pointer so it points at its class's v-table. (This is not a second v-pointer; it's the same v-pointer that was defined in the base class, Base; remember, the compiler does not repeat step #2 in class Der" I confused here. How many are vtables created amount of base+derived class.One VTABLE for each.But all of them has one VPTR.IS this right So if there is a VTABLE for each class but one VPTR; How can code find the ...Show All

  • Software Development for Windows Vista Video camera capture resolution - setting using directshow?

    Hi, Does anyone know of a method to set the camera capture resolution using directshow I'm writing a windows mobile app processing live frames from the mobile's built in camera. Having implemented a simple 'capture live frames and display them' directshow graph, I find the capture resolution to be very low and wonder if maybe the camera is defaulting to a lower resolution than its full capabilities. Apologies if this mobile related topic is out of context (my first MSDN post), but hopefully changing the resolution of a video capture device is something people generally need in directshow development and so someone reading this might be able to point me in the right direction ( ) Thanks in advance! John ...Show All

©2008 Software Development Network