|
Hello all,
I am working on an application that facilitates script/request movement between developers and DBAs (who must approve said items).
Basically, as a developer, we choose the source server/database from a bound combobox. The DBA then sees our choices and completes whatever the task may be. The problem is that as a developer, if I want the source server/database to be those that show up by default in my bound combobox, when the DBA sees this (their server/database list differs) they will see the default server/database from their list.
i.e. My list of databases: cowboy, drones
DBA list of databases: alldepts, boondocks, cowboy, drones
If I sent in a request for the cowboy database (I didn't touch the combo box), it will show up to our DBAs as the "alldepts" database, since that is their default choice.
I have tried to set the text in the combobox before allowing a save, then checking for the value of "---" (for example), but this will not register, and doing a quick test, the "cowboy" database is the actual combobox.selectedItem. I also tried to add a new item to the bound combobox, but this isn't working for obvious reasons. Basically, I want to FORCE the developer to choose a database from a bound combobox.
Has anyone run into this issue before?
Thanks for all the help in advance!
-Joe
-- modified at 12:27 Wednesday 6th June, 2007
|
|
|
|
|
JoeFid wrote: Has anyone run into this issue before?
It would appear that you using the index numbers of selected items instead of the selected items themselves.
|
|
|
|
|
I'm having problems because the use of Format function gives different results in VB6 and in VB.NET.
That line: format("80", "000")
results "80" in VB6, and "000" in VB.NET.
How can I solve that?
Regards,
Diego F.
|
|
|
|
|
I could solve that by adding String before format function. So:
Format("80", "000") returns "000"
String.Format("80", "000") returns "80"
Regards,
Diego F.
|
|
|
|
|
Diego F. wrote: String.Format("80", "000") returns "80"
That's because you are specifying a format string without any formatting what so ever. String.Format("80", "fubar") also returns "80".
What you want is:
80.ToString("000")
or
String.Format("{0:000}", 80)
---
single minded; short sighted; long gone;
|
|
|
|
|
It doesn't work because the "000" format specifier is for numeric values only. You passed in a string of characters ("80"). It will work if you do
Dim str As String = Format(80, "000")
returns "080".
|
|
|
|
|
Hello,
I made an application that automates SolidWorks 2006. I added references in my project to 2 type libraries from the SolidWorks 2006 folder.
The problem is the application only with 2006 version of SolidWorks; it does not work in 2004 or 2007. Is there a way to make the application independent of type library version?
I already tried late binding by removing the references to SolidWorks and using Objects type variables, but this gives me a run time error when trying to open a document:
Bad variable type. (Exception from HRESULT: 0x80020008 (DISP_E_BADVARTYPE))
-- modified at 14:07 Wednesday 6th June, 2007
|
|
|
|
|
There's no way to do version indendance if you use a reference to a COM object. The version number is part of the binding.
You might be able to do this with some type of proxy, or wrapper class, though. See this[^] for a description.
|
|
|
|
|
Hi All,
I created a new project and from the get go the default telli sense was turned off and it wouldn't show all project and other issues occured. I eventually got most of them down and I added a forgot username a password form to my project, however after developing the design of it when i go to double click on one of the command buttons on the page for example btnSumbit it won't open the code behind page.
When I did set this up i called the page ucForgot.aspx and the code behind file is called ucForgot.aspx.vb but the code with in it is follows
Partial Class includes_uc_security_ucForgot
Inherits System.Web.UI.UserControl
I did change the class name but that should cause the problem write?
Any ideas?
|
|
|
|
|
This question belongs in the ASP.NET Forum.
But, if you changed the class name in this file, then yes, you've caused a problem. A Partial class is a class that spans multiple files. If you change the name specified in the Partial Class line in one file, you MUST change it in the others that make up the rest of the class. Also, ANY references to this class name in ANY other files must also be changed to use the new name. A search and replace would probably be in order here.
|
|
|
|
|
Sorry Dave I taught I was in the write section.
I think I have changed all references to it. So here it is as follows:
ucForgot.ascx
<%@ Page AutoEventWireup="false" Codebehind="ucForgot.ascx.vb" Inherits="includes_uc_security_ucForgot" Language="vb" %>
Then in the ucForgot.ascx.vb
Partial Class includes_uc_security_ucForgot
Inherits System.Web.UI.UserControl
This is still not working, and out side of this all pages are blank except for a command button on the ucForgot.ascx page to try and get this working.
Then for some reason there is this other file called ucForgot.ascx.designer.vb that i have never used before or don't know what it is for. But it has the correct name and any time i change the name it changes as well automatically.
|
|
|
|
|
I have no idea. ASP.NET is something I haven't touched in 4 years. I'm going by my experience with Partial classes.
|
|
|
|
|
Hi Dave,
Sorry for the inconvience, I decided to recreate everything and no rename the classes, I will someone else worry about that if they really want it a different name to the design.
Thanks again
|
|
|
|
|
That's the easiest way to do it, I guess!
|
|
|
|
|
hello frnds,
how can i send a message to other computer in a same LAN
using vb.net
can i use IP address ???
the messagebox should be displayed on desired computer..
any code ???? Please help...
thankx in advance and regards,
koolprasad2003
If the answer is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
If you just want a simple messagebox displayed, you may type the following in command prompt, (or run command prompt with the following as argument
net send IP Message
this will display the Massage in IP computer if this access is not restricted in your domain.
If you want to do that by your own program, you should use client/server applications which should run on both computers.
|
|
|
|
|
Thankx a lot,
but i wamt to do it from my program,
if called "shell" from my program n run it
does server knows that, i send the message to BLABLA computer????
thankx and regards,
koolprasad2003
If the it is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Google for "VB.NET chat" and you'll find thousands of examples of the ubiquitous newbie project.
Seriously though. From your previous posts, this is beyond your current skill level. I suggest learning the basics of VB.NET and the .NET Framework before attempting to tackle a client/server app.
|
|
|
|
|
Is there any equivalent available of "GetShortPathName" API in VB.NET?
----------------------------
**** JOB23743 Submitted ****
|
|
|
|
|
You can call any windows API using p/invoke. Look it up at www.pinvoke.net[^]
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Like Christian said, call the function using P/Invoke, because there is no equivelent in the System.Io namespace in the .NET Framework.
|
|
|
|
|
Hi All!
I am getting this exception when trying to get call a dll method.
the application runs fine when i try to run the threads one at a time but, this exception comes up when i try to run them at the same time.
Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException
at JOpt.SDK.Implementation.CapacityResource.getWorkingHours(CapacityReso
urce.java:683)
at JOpt.SDK.Implementation.CapacityResource.getCurrentWorkingHours(Capac
ityResource.java:535)
at JOpt.SDK.Core.Population.fitness(Population.java:492)
at JOpt.SDK.Core.Population.createNextGeneration(Population.java:313)
at JOpt.SDK.Implementation.Optimization.run(Optimization.java:218)
at java.lang.VMThread.run(VMThread.java:51)
at java.lang.VMThread$1.Invoke(VMThread.java:301)
at cli.System.Threading.ThreadHelper.ThreadStart_Context(Unknown Source)
at cli.System.Threading.ExecutionContext.Run(Unknown Source)
at cli.System.Threading.ThreadHelper.ThreadStart(Unknown Source)
Regards
|
|
|
|
|
Well, somewhere in your code, it looks like you tried to access an array using an index value outside the bounds of the array.
With the lack of detail you've supplied in your question and not code sample where the error occurs, this is about the most anyone can tell you.
Oh, this looks like an ASP.NET app or something that was NOT written in VB.NET. True?
|
|
|
|
|
Thanks A lot!
Its and vb.net application..
Cant tell u the code since its coming(exception) out of dll.
I am using IKVM.GNU.Classpath.dll it seems its coming from there but cant figureout what to do......
Regards
|
|
|
|
|
Neither can I. I've never used, nor even heard of, that library.
Your best source of information is going to be the site that deals with that library specifically. But, I don't see a support forum on http://www.ikvm.net/[^]. Actually, I don't see much in the way of a support forum at all for it. About the best you're going to do is to post something on it's SourceForge page, here[^].
|
|
|
|