m3rLinEz's Q&A profile
.NET Development Cannot update form
GoodDay I have put a database onto a form designed in vb 2005 express. When I work on the form it sometimes cannot update with new data and leaves a message JIT debugging problem . How can I set the JIT debugging so that I can work on my data and update the form live. Thanks in advance Rob I don't know. This issue was raised in the following link. http://support.microsoft.com:80/default.aspx/kb/922214 and does not seem to resolve the problem. Still the same JIT debugger message. Maybe relook. this problem only occurs when I have a sql data base in my vb program . and to make it intresting , not all my programs which have the sql server in them. Only the more recent ones. Rgds Rob ...Show All
Visual Basic Get the character from textbox.text
A textbox for user input say for example, Hello! How can i get the character from textbox.text I want to get the character one by one like H, e ,l , l , o ,! and store it in an byte array(6) Please help, many thanks Hi Jason, You can use the following code segment; here I am assuming that you have a TextBox with the name "TextBox1" Dim ByteArray() As Byte = New Byte (TextBox1.Text.Length) {} Dim Index As Integer For Index = 0 To TextBox1.Text.Length - 1 Step Index + 1 ByteArray(Index) = Convert.ToByte(TextBox1.Text(Index)) Next OR you can also use byte [] ByteArray = System.Text. ASCIIEncoding .ASCII.GetBytes(TextBox1.Text); ...Show All
.NET Development Multiple elements in a configuration section
Hello All, I would like to know whether it is possible to have multiple configuration elements with the same name within a custom section. Changing the element name to say "operation1" instead of "operation" (see sample file below) seems to work but i would like to use the same element name. I think i have to set something like maxOccurs=unbounded but not sure where to do it inside my custom classes. I have already implemented custom classes inherting from ConfigurationSection,ConfigurationElement and ConfigurationElementCollection to implement the stuff below. Am i missing something Currently if i add multiple elements with the same name within the section i see the following error "The element <opera ...Show All
SQL Server List of Table Name that not supported by SQL Database ???
Is anyone know about waht type of table or database name that not supported or will have error during execution of SQL statement in SQL or MS Access database. For my, I know only two , i.) cannot put table name that same as the the database name ii.) cannot put database name like "RETURN", "POSITION",etc. Is there any reference site that show out a list of table about the table or database name Thank You ... :) Yes, it's true that with square brackets you can have something named [1234] even though that is an illegal name according to the naming rules for identifiers. I'm not too keen on using this 'backdoor' just to do stuff that you shouldn't do in the first place, so I never mention it. =; ...Show All
Visual C# how do i compare string formats?!
on the client side i send a string in this format: Object xyData = xco.ToString("000") + "%" + yco.ToString("000") + "%"; byte[] xybyData = System.Text.Encoding.UTF8.GetBytes(xyData.ToString()); if (m_clientSocket != null) { m_clientSocket.Send(xybyData); } and on the server side i receive it like this: if (szData.Contains("%")) { richTextRxMessage.Text = szData; xyData = szData.Split('%'); x = Convert.ToInt32(xyData[0]); y = Convert.ToInt32(xyData[1]); } the problem is somtimes another client send some other data containing so ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Error Loading Pipeline assembly DirectInputSupport.dll!!
Error Loading Pipeline assembly "c:\......XNA Game Studio Expres\v1.0\referemces\windows\x86\DirectInputSupport.dll" XNA dont compile :( If you want to use the assembly, please check that it exists on your computer. If you don't want to use that assembly, remove it from the XNA Framework Content Pipeline assemblies. You can check the XNA Framework Content pipeline asseblies by right-clicking on you project in the Solution Explorer and choose Properties. On the properties page, select the Content Pipeline tab. Hope that'll sort it out for you. ...Show All
Visual C++ How to set version number for a Visual C++ 6.0 MFC Application
How to set version number for a Visual C++ 6.0 MFC Application. ======================Suresh Yes Ayman, I know that. But, IMHO the simple fact that OP mentions "VC6.0" is not a reason to categorize it off-topic as long as the problem can be applied to newer VC versions as well. Respectfully. Ovidiu PS. It's just my thought. Sorry for these off-topic remarks. ...Show All
Windows Networking Development Wireless LAN - RSSI
Unfortunately, this is not the right forum for this question. This forum is for network QoS technology related questions. I suggest you post this question on a forum for wireless LANs. ...Show All
Visual C# difference between out and ref keywords
plz does anyone can tell me difference between out and ref keywords Hi, in addition to Muhammad: out and ref parameters can be treated quite differently in cross process or cross app domain calls. out params need not to be marshalled to the called method, only when the method returns the out param is marshalled to its caller. ref params need to be marshalled in both directions. -- SvenC ...Show All
Visual Studio Express Editions How To Create Processes
I created a simple program and I want to put it into the processes on the Task Manager, How can I do it I really don't an idea about this thing, I hope anybody here can help about this. All I want to do is I want my program can be seen on the Task Manager "Processess" not on the "Applications" tab. Help :( Hi Just changes the property ShowInTaskbar of the form object and it will not be appeared in the Application Tab not it in the Taskbar. this. ShowInTaskbar = false; or Me. ShowInTaskbar = False ...Show All
Windows Forms Remove blank lines from a textbox
Blank lines in a textbox can be: A series of spaces followed by a carriage return OR A carriage return OR A line filled with tabs How can I remove all blank lines from the text entered in my textbox Easy to do with Regular Expressions: // Remove trailing blanks textBox1.Text = Regex.Replace(textBox1.Text, "\\s+\r\n", "\r\n"); // Remove duplicate end-of-lines textBox1.Text = Regex.Replace(textBox1.Text, "\r\n\r\n", "\r\n"); The 1st one replaces one or more (+) white space characters (\s) followed by a end-of-line (\r\n) by end-of line. The 2nd one replaces a double end-of-line with a single end-of-line. ...Show All
Visual C++ how to build a Windows XP application???
I created a new Windows Application and am ready to compile and build so I can run on my XP PC. What are the instructions for this I need to know how to create the "install" and "uninstall". Thank you in advance. WCIS - Michelle From a previous post Peter Ritchie wrote: There's some really good walkthroughs in MSDN with regard to deployment: Deployment Walkthrough List . In particular, you'll probably find Walkthrough: Deploying a Windows-based Application the most applicable. With this walkthrough, you can obviously ignore the first step: creating a Windows application. ...Show All
Windows Forms DataGridView and C#
Hi, Does anyone know if when an item in a DataGrid Cell is altered that this action can call a separate method in my code... Though I have looked I can't find an answer - perhaps I have not looked well enough... Thanks in advance... Andrew The datagridview has a CellValidating event which fires when ever you change a value. ...Show All
SQL Server SQl Query: How can i get only one record for each customer?
i have a database with a list of customers and goods that they have ordered. I want to send one email to each customer regardless of the number of products he has ordered. eg. Userid, product id, createddate 1034 2000788 2006-09-01 14:50:19.880 1034 383002 7 2005-09-07 20:50:19.880 1034 4493903 2006-09-01 20:00:19.880 I am therefore making a query for getting the data.How can i get only one record for each customer Sincerely wan. Hi, you didn't give the table name so I took Orders SELECT DISTINCT Userid FROM Orders The above returns a list of Userids use that to query a table where you have their email adresses stored in. -- SvenC ...Show All
Visual Studio Team System Version History
Coming from a VSS background, I am used to seeing version numbers and labels in the history of any item. In Team Foundation, the history only show the Changeset number and the comments. Is there a way I can find out what labels are applied to a version of an item Is there a way to see the version number How does one compare two previous versions of an item where neither version is the latest Thanks for the info, the developers are used to using VSS history and compare two different versions based on the labels on them. Can this be done in TF then - if I want to compare two different versions from say, from two previous labeled builds ...Show All
